From 6cdfba79f735ecbe23cc972e3113b8978dad3ac0 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 27 Mar 2024 11:27:31 -0500 Subject: [PATCH 01/56] initial migration of coordinates to their own table --- .../graphql/types/entities/coordinate_type.rb | 8 --- .../types/entities/gene_coordinate_type.rb | 12 +++++ .../types/variants/gene_variant_type.rb | 50 ++----------------- server/app/models/variant.rb | 6 +++ server/app/models/variant_coordinate.rb | 26 ++++++++++ server/app/models/variants/factor_variant.rb | 6 +++ server/app/models/variants/gene_variant.rb | 30 +++++++---- server/app/validators/coordinate_validator.rb | 22 ++++++++ ...0327150519_add_variant_coordinate_table.rb | 21 ++++++++ server/db/schema.rb | 26 +++++++++- .../fusions/backfill_gene_variant_coords.rb | 18 +++++++ 11 files changed, 158 insertions(+), 67 deletions(-) delete mode 100644 server/app/graphql/types/entities/coordinate_type.rb create mode 100644 server/app/graphql/types/entities/gene_coordinate_type.rb create mode 100644 server/app/models/variant_coordinate.rb create mode 100644 server/app/validators/coordinate_validator.rb create mode 100644 server/db/migrate/20240327150519_add_variant_coordinate_table.rb create mode 100644 server/misc_scripts/fusions/backfill_gene_variant_coords.rb diff --git a/server/app/graphql/types/entities/coordinate_type.rb b/server/app/graphql/types/entities/coordinate_type.rb deleted file mode 100644 index 969e3612f..000000000 --- a/server/app/graphql/types/entities/coordinate_type.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Types::Entities - class CoordinateType < Types::BaseObject - field :representative_transcript, String, null: true - field :chromosome, String, null: true - field :start, Int, null: true - field :stop, Int, null: true - end -end diff --git a/server/app/graphql/types/entities/gene_coordinate_type.rb b/server/app/graphql/types/entities/gene_coordinate_type.rb new file mode 100644 index 000000000..d4f55d004 --- /dev/null +++ b/server/app/graphql/types/entities/gene_coordinate_type.rb @@ -0,0 +1,12 @@ +module Types::Entities + class GeneCoordinateType < Types::BaseObject + field :representative_transcript, String, null: true + field :chromosome, String, null: true + field :start, Int, null: true + field :stop, Int, null: true + field :reference_build, Types::ReferenceBuildType, null: true + field :ensembl_version, Int, null: true + field :reference_bases, String, null: true + field :variant_bases, String, null: true + end +end diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index ebe1645cc..ea87a1030 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,12 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :reference_build, Types::ReferenceBuildType, null: true - field :ensembl_version, Int, null: true - field :primary_coordinates, Types::Entities::CoordinateType, null: true - field :secondary_coordinates, Types::Entities::CoordinateType, null: true - field :reference_bases, String, null: true - field :variant_bases, String, null: true + field :coordinates, Types::Entities::GeneCoordinateType, null: true field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false @@ -14,47 +9,8 @@ class GeneVariantType < Types::Entities::VariantType field :mane_select_transcript, String, null: true field :open_cravat_url, String, null: true - - def primary_coordinates - if (object.representative_transcript.blank? && object.chromosome.blank? && object.start.blank? && object.stop.blank?) - return nil - else - return { - representative_transcript: object.representative_transcript, - chromosome: object.chromosome, - start: object.start, - stop: object.stop, - } - end - end - - def secondary_coordinates - if (object.representative_transcript2.blank? && object.chromosome2.blank? && object.start2.blank? && object.stop2.blank?) - return nil - else - return { - representative_transcript: object.representative_transcript2, - chromosome: object.chromosome2, - start: object.start2, - stop: object.stop2, - } - end - end - - def variant_bases - if (object.variant_bases.blank?) - return nil - else - return object.variant_bases - end - end - - def reference_bases - if (object.reference_bases.blank?) - return nil - else - return object.reference_bases - end + def coordinates + Loaders::AssociationLoader.for(Variants::GeneVariant, :variant_coordinate).load(object) end def clinvar_ids diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index a4cc30892..f1f7467b0 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -6,6 +6,7 @@ class Variant < ApplicationRecord include WithTimepointCounts belongs_to :feature + has_many :variant_coordinates, foreign_key: 'variant_id' has_and_belongs_to_many :molecular_profiles has_many :variant_group_variants @@ -51,6 +52,7 @@ class Variant < ApplicationRecord validate :unique_name_in_context validate :feature_type_matches_variant_type + validate :correct_coordinate_type validates_with VariantFieldsValidator searchkick highlight: [:name, :aliases], callbacks: :async @@ -104,6 +106,10 @@ def update_single_variant_mp_aliases svmp.molecular_profile_aliases = mp_aliases end + def correct_coordinate_type + raise StandardError.new("Implement validation in subclass") + end + def unique_name_in_context base_query = self.class.where( deprecated: false, diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb new file mode 100644 index 000000000..d286d87c6 --- /dev/null +++ b/server/app/models/variant_coordinate.rb @@ -0,0 +1,26 @@ +class VariantCoordinate < ApplicationRecord + belongs_to :variant, touch: true + + enum reference_build: [:GRCh38, :GRCh37, :NCBI36] + + validates :reference_bases, format: { + with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, + message: "only allows A,C,T,G or /" + }, allow_nil: true + + validates :variant_bases, format: { + with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, + message: "only allows A,C,T,G or /" + }, allow_nil: true + + validates :coordinate_type, presence: true + validates :coordinate_type, inclusion: { + in: [ + 'Gene Variant Coordinate' + ], + message: "%{value} is not a valid coordinate type" + } + + validates_with CoordinateValidator + +end diff --git a/server/app/models/variants/factor_variant.rb b/server/app/models/variants/factor_variant.rb index 7b946a8ac..2f3f942a7 100644 --- a/server/app/models/variants/factor_variant.rb +++ b/server/app/models/variants/factor_variant.rb @@ -9,5 +9,11 @@ def unique_editable_fields def required_fields [] end + + def correct_coordinate_type + if variant_coordinates.size > 0 + errors.add(:variant_coordinates, "Factor Variants may not have coordinates") + end + end end end diff --git a/server/app/models/variants/gene_variant.rb b/server/app/models/variants/gene_variant.rb index 8d9d33f04..153e4f7d8 100644 --- a/server/app/models/variants/gene_variant.rb +++ b/server/app/models/variants/gene_variant.rb @@ -1,22 +1,18 @@ module Variants class GeneVariant < Variant belongs_to :gene, class_name: 'Features::Gene', optional: true + + has_one :variant_coordinate, + ->() { where(coordinate_type: 'Gene Variant Coordinate') }, + foreign_key: 'variant_id', + class_name: 'VariantCoordinate' - #not used in V2, delete when Fusions added? + #TODO not used in V2, delete when Fusions added? #belongs_to :secondary_gene, class_name: 'Features::Gene', optional: true + #TODO remove after backfill/when columns removed enum reference_build: [:GRCh38, :GRCh37, :NCBI36] - validates :reference_bases, format: { - with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, - message: "only allows A,C,T,G or /" - }, allow_nil: true - - validates :variant_bases, format: { - with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, - message: "only allows A,C,T,G or /" - }, allow_nil: true - def unique_editable_fields [ :hgvs_description_ids, @@ -39,5 +35,17 @@ def unique_editable_fields def required_fields [] end + + def correct_coordinate_type + if variant_coordinates.size > 1 + errors.add(:variant_coordinates, "Gene Variants can only have one coordinate object specified") + end + + if coord = variant_coordinates.first + if coord.coordinate_type != 'Gene Variant Coordinate' + errors.add(:variant_coordinates, "Incorrect coordinate type #{coord.coordinate_type} for a Gene Variant") + end + end + end end end diff --git a/server/app/validators/coordinate_validator.rb b/server/app/validators/coordinate_validator.rb new file mode 100644 index 000000000..28625b821 --- /dev/null +++ b/server/app/validators/coordinate_validator.rb @@ -0,0 +1,22 @@ +class CoordinateValidator < ActiveModel::Validator + def validate(record) + case record.coordinate_type + when 'Gene Variant Coordinate' + validate_gene_variant_coordinates(record) + else + raise StandardError.new("Unsupported coordinate type: #{record.coordinate_type}") + end + end + + private + def validate_gene_variant_coordinates(record) + validate_not_present(record, :exon_boundary) + validate_not_present(record, :exon_offset) + end + + def validate_not_present(record, field) + if record.send(field).present? + record.errors.add(field, "#{field} is not allowed on #{record.coordinate_type}") + end + end +end diff --git a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb new file mode 100644 index 000000000..1412cb537 --- /dev/null +++ b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb @@ -0,0 +1,21 @@ +class AddVariantCoordinateTable < ActiveRecord::Migration[7.1] + def change + create_table :variant_coordinates do |t| + t.text :chromosome, index: true, null: false + t.bigint :start, index: true, null: false + t.bigint :stop, index: true, null: false + t.text :reference_bases, null: true + t.text :variant_bases, null: true + t.integer :exon_boundary, null: true + t.integer :exon_offset, null: true + t.integer :ensembl_version, null: true + t.text :representative_transcript, index: true, null: false + t.integer :reference_build, null: false, index: true + t.references :variant, null: false, index: true + t.text :coordinate_type, null: false + t.timestamps + end + + add_foreign_key :variant_coordinates, :variants + end +end diff --git a/server/db/schema.rb b/server/db/schema.rb index e5131831a..a924d8fdf 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_03_22_145804) do +ActiveRecord::Schema[7.1].define(version: 2024_03_27_150519) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -862,6 +862,29 @@ t.index ["variant_id"], name: "index_variant_aliases_variants_on_variant_id" end + create_table "variant_coordinates", force: :cascade do |t| + t.text "chromosome", null: false + t.bigint "start", null: false + t.bigint "stop", null: false + t.text "reference_bases" + t.text "variant_bases" + t.integer "exon_boundary" + t.integer "exon_offset" + t.integer "ensembl_version" + t.text "representative_transcript", null: false + t.integer "reference_build", null: false + t.bigint "variant_id", null: false + t.text "coordinate_type", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["chromosome"], name: "index_variant_coordinates_on_chromosome" + t.index ["reference_build"], name: "index_variant_coordinates_on_reference_build" + t.index ["representative_transcript"], name: "index_variant_coordinates_on_representative_transcript" + t.index ["start"], name: "index_variant_coordinates_on_start" + t.index ["stop"], name: "index_variant_coordinates_on_stop" + t.index ["variant_id"], name: "index_variant_coordinates_on_variant_id" + end + create_table "variant_group_variants", id: false, force: :cascade do |t| t.integer "variant_id", null: false t.integer "variant_group_id", null: false @@ -1030,6 +1053,7 @@ add_foreign_key "users", "organizations", column: "most_recent_organization_id" add_foreign_key "variant_aliases_variants", "variant_aliases" add_foreign_key "variant_aliases_variants", "variants" + add_foreign_key "variant_coordinates", "variants" add_foreign_key "variant_group_variants", "variant_groups" add_foreign_key "variant_group_variants", "variants" add_foreign_key "variants", "comments", column: "deprecation_comment_id" diff --git a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb new file mode 100644 index 000000000..5c5c219b6 --- /dev/null +++ b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb @@ -0,0 +1,18 @@ +Variants::GeneVariant.find_each do |variant| + next if variant.start2.present? + next if variant.variant_types.where(name: 'transcript_fusion').exists? + next unless variant.start.present? + + coord = VariantCoordinate.create!( + variant: variant, + reference_build: variant.reference_build, + coordinate_type: "Gene Variant Coordinate", + chromosome: variant.chromosome, + start: variant.start, + stop: variant.stop, + reference_bases: variant.reference_bases, + variant_bases: variant.variant_bases, + representative_transcript: variant.representative_transcript, + ensembl_version: variant.ensembl_version + ) +end From c31c997c6a275926654f9fc43b9861aa6557d707 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Thu, 28 Mar 2024 09:19:05 -0500 Subject: [PATCH 02/56] update gql queries to match new coordinate schema --- .../coordinates-card.component.html | 189 +++--- .../coordinates-card.query.gql | 17 +- .../gene-variant-summary.page.html | 2 +- .../gene-variant-revise.query.gql | 15 +- .../forms/models/gene-variant-fields.model.ts | 3 - .../utilities/gene-variant-to-model-fields.ts | 35 +- .../input-formatters/variant-revise.ts | 42 +- .../src/app/generated/civic.apollo-helpers.ts | 35 +- client/src/app/generated/civic.apollo.ts | 166 ++--- client/src/app/generated/server.model.graphql | 106 ++-- client/src/app/generated/server.schema.json | 573 ++++++++---------- .../variants-summary.query.gql | 17 +- ...ype.rb => gene_variant_coordinate_type.rb} | 2 +- .../types/revisions/coordinate_input_type.rb | 12 - .../gene_variant_coordinate_input_type.rb | 20 + .../types/revisions/gene_variant_fields.rb | 14 +- .../types/variants/gene_variant_type.rb | 2 +- .../models/activities/suggest_revision_set.rb | 2 + ...0327150519_add_variant_coordinate_table.rb | 8 +- server/db/schema.rb | 8 +- 20 files changed, 520 insertions(+), 748 deletions(-) rename server/app/graphql/types/entities/{gene_coordinate_type.rb => gene_variant_coordinate_type.rb} (88%) delete mode 100644 server/app/graphql/types/revisions/coordinate_input_type.rb create mode 100644 server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html index 6b419a870..0a008fa9f 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html @@ -1,26 +1,31 @@ - @if(variant.__typename == "GeneVariant") { - - + @if (variant.__typename == 'GeneVariant') { + + } - - + @if (this.cvcCoordinates.__typename == 'GeneVariant') { + + + } + let-coords> - + - {{ variant.referenceBuild }} + {{ coords.referenceBuild }} - {{ variant.ensemblVersion }} + {{ coords.ensemblVersion }} - - - - - - {{ coords.chromosome }} - - - - - {{ coords.start }} - - - - - {{ coords.stop }} - - - - - - {{ variant.referenceBases | ifEmpty : '--' }} - - - - - {{ variant.variantBases | ifEmpty : '--' }} - - + + + + {{ coords.chromosome }} + - - - - {{ coords.representativeTranscript }} - - - -- - - - - + + + {{ coords.start }} + - - - - - - {{ coords.chromosome }} - + + + {{ coords.stop }} + - + + - {{ coords.start }} + {{ coords.referenceBases | ifEmpty: '--' }} - + - {{ coords.stop }} + {{ coords.variantBases | ifEmpty: '--' }} + - - - - {{ coords.representativeTranscript }} - - - -- - - - - + + + + {{ coords.representativeTranscript }} + + + -- + + + diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql index cd2fea9ad..0fb7f1244 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql @@ -8,21 +8,8 @@ fragment CoordinatesCardFields on VariantInterface { id name ... on GeneVariant { - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases } } diff --git a/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html b/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html index a37d1a06a..926f68e7f 100644 --- a/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html +++ b/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html @@ -104,7 +104,7 @@ + [cvcCoordinates]="variant"> diff --git a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql index 5de1293ca..215a233f7 100644 --- a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql +++ b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql @@ -16,29 +16,26 @@ fragment RevisableGeneVariantFields on GeneVariant { variantAliases alleleRegistryId clinvarIds - ensemblVersion hgvsDescriptions - referenceBuild variantTypes { id name soid } - primaryCoordinates { + coordinates { ...CoordinateFields } - secondaryCoordinates { - ...CoordinateFields - } - referenceBases - variantBases } -fragment CoordinateFields on Coordinate { +fragment CoordinateFields on GeneVariantCoordinate { + referenceBuild + ensemblVersion chromosome representativeTranscript start stop + referenceBases + variantBases } mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { diff --git a/client/src/app/forms/models/gene-variant-fields.model.ts b/client/src/app/forms/models/gene-variant-fields.model.ts index e4dcbd54a..46ba066cd 100644 --- a/client/src/app/forms/models/gene-variant-fields.model.ts +++ b/client/src/app/forms/models/gene-variant-fields.model.ts @@ -12,9 +12,6 @@ export type GeneVariantFields = { start?: number stop?: number representativeTranscript?: string - chromosome2?: string - start2?: number - stop2?: number representativeTranscript2?: string featureId?: number referenceBases?: string diff --git a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts index 91901b3bf..d1775098e 100644 --- a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts +++ b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts @@ -17,21 +17,8 @@ export function geneVariantToModelFields( hgvsDescriptions: variant.hgvsDescriptions, clinvarIds: variant.clinvarIds, variantTypeIds: variant.variantTypes.map((vt) => vt.id), - referenceBuild: variant.referenceBuild, - ensemblVersion: variant.ensemblVersion, - chromosome: variant.primaryCoordinates?.chromosome, - start: variant.primaryCoordinates?.start, - stop: variant.primaryCoordinates?.stop, - representativeTranscript: - variant.primaryCoordinates?.representativeTranscript, - chromosome2: variant.secondaryCoordinates?.chromosome, - start2: variant.secondaryCoordinates?.start, - stop2: variant.secondaryCoordinates?.stop, - representativeTranscript2: - variant.secondaryCoordinates?.representativeTranscript, + coordinates: variant.coordinates, featureId: variant.feature.id, - referenceBases: variant.referenceBases, - variantBases: variant.variantBases, } } @@ -52,25 +39,19 @@ export function geneVariantFormModelToReviseInput( hgvsDescriptions: fields.hgvsDescriptions || [], clinvarIds: clinvarHelper(fields.clinvarIds || []), variantTypeIds: fields.variantTypeIds || [], - referenceBuild: fmt.toNullableInput(fields.referenceBuild), - ensemblVersion: fmt.toNullableInput( - fields.ensemblVersion ? +fields.ensemblVersion : undefined - ), - primaryCoordinates: { + coordinates: { chromosome: fields.chromosome, start: fields.start ? +fields.start : undefined, stop: fields.stop ? +fields.stop : undefined, representativeTranscript: fields.representativeTranscript, - }, - secondaryCoordinates: { - chromosome: fields.chromosome2, - start: fields.start2 ? +fields.start2 : undefined, - stop: fields.stop2 ? +fields.stop2 : undefined, - representativeTranscript: fields.representativeTranscript2, + ensemblVersion: fmt.toNullableInput( + fields.ensemblVersion ? +fields.ensemblVersion : undefined + ), + referenceBuild: fmt.toNullableInput(fields.referenceBuild), + referenceBases: fmt.toNullableString(fields.referenceBases), + variantBases: fmt.toNullableString(fields.variantBases), }, featureId: fields.featureId, - referenceBases: fmt.toNullableString(fields.referenceBases), - variantBases: fmt.toNullableString(fields.variantBases), }, organizationId: model.organizationId, comment: model.comment!, diff --git a/client/src/app/forms/utilities/input-formatters/variant-revise.ts b/client/src/app/forms/utilities/input-formatters/variant-revise.ts index b198f5241..3a347f89a 100644 --- a/client/src/app/forms/utilities/input-formatters/variant-revise.ts +++ b/client/src/app/forms/utilities/input-formatters/variant-revise.ts @@ -1,11 +1,11 @@ import { ClinvarInput, - Coordinate, - CoordinateInput, + GeneVariantCoordinate, + GeneVariantCoordinateInput, Maybe, - NullableReferenceBuildTypeInput, ReferenceBuild, } from '@app/generated/civic.apollo' +import * as fmt from '@app/forms/utilities/input-formatters' export enum ClinvarOptions { NotApplicable, @@ -41,7 +41,9 @@ export function toClinvarInput( } } -export function toCoordinateInput(coord: Maybe): CoordinateInput { +export function toCoordinateInput( + coord: Maybe +): GeneVariantCoordinateInput { if (coord) { return { chromosome: undefinedIfEmpty(coord.chromosome), @@ -50,6 +52,10 @@ export function toCoordinateInput(coord: Maybe): CoordinateInput { ), start: coord.start ? +coord.start : undefined, stop: coord.stop ? +coord.stop : undefined, + referenceBases: fmt.toNullableString(coord.referenceBases), + variantBases: fmt.toNullableString(coord.variantBases), + referenceBuild: coord.referenceBuild + ensemblVersion: coord.ensemblVersion } } else { return { @@ -61,20 +67,20 @@ export function toCoordinateInput(coord: Maybe): CoordinateInput { } } -export function toNullableReferenceBuildInput( - build: Maybe -): NullableReferenceBuildTypeInput { - let nRefBuild: NullableReferenceBuildTypeInput = { - value: undefined, - unset: undefined, - } - if (build) { - nRefBuild.value = build - } else { - nRefBuild.unset = true - } - return nRefBuild -} +//export function toNullableReferenceBuildInput( +//build: Maybe +//): NullableReferenceBuildTypeInput { +//let nRefBuild: NullableReferenceBuildTypeInput = { +//value: undefined, +//unset: undefined, +//} +//if (build) { +//nRefBuild.value = build +//} else { +//nRefBuild.unset = true +//} +//return nRefBuild +//} export function undefinedIfEmpty(inVal: Maybe): Maybe { let outVal: Maybe diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 457a3aa10..60fb3579a 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -541,13 +541,6 @@ export type ContributionFieldPolicy = { action?: FieldPolicy | FieldReadFunction, count?: FieldPolicy | FieldReadFunction }; -export type CoordinateKeySpecifier = ('chromosome' | 'representativeTranscript' | 'start' | 'stop' | CoordinateKeySpecifier)[]; -export type CoordinateFieldPolicy = { - chromosome?: FieldPolicy | FieldReadFunction, - representativeTranscript?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; export type CountryKeySpecifier = ('id' | 'iso' | 'name' | CountryKeySpecifier)[]; export type CountryFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -1010,16 +1003,16 @@ export type GeneEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'ensemblVersion' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'primaryCoordinates' | 'referenceBases' | 'referenceBuild' | 'revisions' | 'secondaryCoordinates' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantBases' | 'variantTypes' | GeneVariantKeySpecifier)[]; +export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'coordinates' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | GeneVariantKeySpecifier)[]; export type GeneVariantFieldPolicy = { alleleRegistryId?: FieldPolicy | FieldReadFunction, clinvarIds?: FieldPolicy | FieldReadFunction, comments?: FieldPolicy | FieldReadFunction, + coordinates?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, deprecated?: FieldPolicy | FieldReadFunction, deprecationActivity?: FieldPolicy | FieldReadFunction, deprecationReason?: FieldPolicy | FieldReadFunction, - ensemblVersion?: FieldPolicy | FieldReadFunction, events?: FieldPolicy | FieldReadFunction, feature?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, @@ -1035,17 +1028,23 @@ export type GeneVariantFieldPolicy = { myVariantInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, openCravatUrl?: FieldPolicy | FieldReadFunction, - primaryCoordinates?: FieldPolicy | FieldReadFunction, - referenceBases?: FieldPolicy | FieldReadFunction, - referenceBuild?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, - secondaryCoordinates?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, variantAliases?: FieldPolicy | FieldReadFunction, - variantBases?: FieldPolicy | FieldReadFunction, variantTypes?: FieldPolicy | FieldReadFunction }; +export type GeneVariantCoordinateKeySpecifier = ('chromosome' | 'ensemblVersion' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | GeneVariantCoordinateKeySpecifier)[]; +export type GeneVariantCoordinateFieldPolicy = { + chromosome?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + referenceBases?: FieldPolicy | FieldReadFunction, + referenceBuild?: FieldPolicy | FieldReadFunction, + representativeTranscript?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction, + stop?: FieldPolicy | FieldReadFunction, + variantBases?: FieldPolicy | FieldReadFunction +}; export type LeaderboardOrganizationKeySpecifier = ('actionCount' | 'description' | 'eventCount' | 'events' | 'id' | 'memberCount' | 'members' | 'mostRecentActivityTimestamp' | 'name' | 'orgAndSuborgsStatsHash' | 'orgStatsHash' | 'profileImagePath' | 'rank' | 'ranks' | 'subGroups' | 'url' | LeaderboardOrganizationKeySpecifier)[]; export type LeaderboardOrganizationFieldPolicy = { actionCount?: FieldPolicy | FieldReadFunction, @@ -2450,10 +2449,6 @@ export type StrictTypedTypePolicies = { keyFields?: false | ContributionKeySpecifier | (() => undefined | ContributionKeySpecifier), fields?: ContributionFieldPolicy, }, - Coordinate?: Omit & { - keyFields?: false | CoordinateKeySpecifier | (() => undefined | CoordinateKeySpecifier), - fields?: CoordinateFieldPolicy, - }, Country?: Omit & { keyFields?: false | CountryKeySpecifier | (() => undefined | CountryKeySpecifier), fields?: CountryFieldPolicy, @@ -2634,6 +2629,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | GeneVariantKeySpecifier | (() => undefined | GeneVariantKeySpecifier), fields?: GeneVariantFieldPolicy, }, + GeneVariantCoordinate?: Omit & { + keyFields?: false | GeneVariantCoordinateKeySpecifier | (() => undefined | GeneVariantCoordinateKeySpecifier), + fields?: GeneVariantCoordinateFieldPolicy, + }, LeaderboardOrganization?: Omit & { keyFields?: false | LeaderboardOrganizationKeySpecifier | (() => undefined | LeaderboardOrganizationKeySpecifier), fields?: LeaderboardOrganizationFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 3554e1a5d..2182de9ec 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -1149,21 +1149,6 @@ export type Contribution = { count: Scalars['Int']; }; -export type Coordinate = { - __typename: 'Coordinate'; - chromosome?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - stop?: Maybe; -}; - -export type CoordinateInput = { - chromosome?: InputMaybe; - representativeTranscript?: InputMaybe; - start?: InputMaybe; - stop?: InputMaybe; -}; - export type Country = { __typename: 'Country'; id: Scalars['Int']; @@ -2595,11 +2580,11 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; + coordinates?: Maybe; creationActivity?: Maybe; deprecated: Scalars['Boolean']; deprecationActivity?: Maybe; deprecationReason?: Maybe; - ensemblVersion?: Maybe; /** List and filter events for an object */ events: EventConnection; feature: Feature; @@ -2617,16 +2602,11 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg myVariantInfo?: Maybe; name: Scalars['String']; openCravatUrl?: Maybe; - primaryCoordinates?: Maybe; - referenceBases?: Maybe; - referenceBuild?: Maybe; /** List and filter revisions. */ revisions: RevisionConnection; - secondaryCoordinates?: Maybe; singleVariantMolecularProfile: MolecularProfile; singleVariantMolecularProfileId: Scalars['Int']; variantAliases: Array; - variantBases?: Maybe; variantTypes: Array; }; @@ -2688,30 +2668,47 @@ export type GeneVariantRevisionsArgs = { status?: InputMaybe; }; +export type GeneVariantCoordinate = { + __typename: 'GeneVariantCoordinate'; + chromosome?: Maybe; + ensemblVersion?: Maybe; + referenceBases?: Maybe; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + start?: Maybe; + stop?: Maybe; + variantBases?: Maybe; +}; + +export type GeneVariantCoordinateInput = { + chromosome?: InputMaybe; + /** The Ensembl database version. */ + ensemblVersion: Scalars['Int']; + /** Reference bases for this variant */ + referenceBases: NullableStringInput; + /** The reference build for the genomic coordinates of this Variant. */ + referenceBuild: ReferenceBuild; + representativeTranscript?: InputMaybe; + start?: InputMaybe; + stop?: InputMaybe; + /** Variant bases for this variant */ + variantBases: NullableStringInput; +}; + /** Fields on a GeneVariant that curators may propose revisions to. */ export type GeneVariantFields = { /** List of aliases or alternate names for the Variant. */ aliases: Array; /** List of ClinVar IDs for the Variant. */ clinvarIds: ClinvarInput; - /** The Ensembl database version. */ - ensemblVersion: NullableIntInput; + /** The genomic coordinates for this Variant. */ + coordinates: GeneVariantCoordinateInput; /** The ID of the Feature this Variant corresponds to. */ featureId: Scalars['Int']; /** List of HGVS descriptions for the Variant. */ hgvsDescriptions: Array; /** The Variant's name. */ name: Scalars['String']; - /** The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner. */ - primaryCoordinates: CoordinateInput; - /** Reference bases for this variant */ - referenceBases: NullableStringInput; - /** The reference build for the genomic coordinates of this Variant. */ - referenceBuild: NullableReferenceBuildTypeInput; - /** In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null. */ - secondaryCoordinates: CoordinateInput; - /** Variant bases for this variant */ - variantBases: NullableStringInput; /** List of IDs for the variant types for this Variant */ variantTypeIds: Array; }; @@ -3770,19 +3767,6 @@ export type NullableIntInput = { value?: InputMaybe; }; -/** - * An input object that represents a field value that can be "unset" or changed to null. - * To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. - * This is to work around two issues with the GraphQL spec: lack of support for unions in input types - * and the inability to have an input object argument be both required _and_ nullable at the same time. - */ -export type NullableReferenceBuildTypeInput = { - /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; - /** The desired value for the field. Mutually exclusive with unset. */ - value?: InputMaybe; -}; - /** * An input object that represents a field value that can be "unset" or changed to null. * To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. @@ -7427,11 +7411,11 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, id: number, name: string, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, id: number, name: string, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -7779,11 +7763,11 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, ensemblVersion?: number | undefined, hgvsDescriptions: Array, referenceBuild?: ReferenceBuild | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, primaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, ensemblVersion?: number | undefined, hgvsDescriptions: Array, referenceBuild?: ReferenceBuild | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, primaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; -export type CoordinateFieldsFragment = { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined }; +export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; export type SuggestGeneVariantRevisionMutationVariables = Exact<{ input: SuggestGeneVariantRevisionInput; @@ -8320,9 +8304,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8334,7 +8318,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8523,11 +8507,11 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8535,7 +8519,7 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; @@ -9680,30 +9664,29 @@ export const VariantTypeBrowseTableRowFieldsFragmentDoc = gql` link } `; +export const CoordinateFieldsFragmentDoc = gql` + fragment CoordinateFields on GeneVariantCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + referenceBases + variantBases +} + `; export const CoordinatesCardFieldsFragmentDoc = gql` fragment CoordinatesCardFields on VariantInterface { id name ... on GeneVariant { - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases } } - `; + ${CoordinateFieldsFragmentDoc}`; export const VariantPopoverFieldsFragmentDoc = gql` fragment variantPopoverFields on VariantInterface { id @@ -9994,14 +9977,6 @@ export const RevisableGeneFieldsFragmentDoc = gql` } } `; -export const CoordinateFieldsFragmentDoc = gql` - fragment CoordinateFields on Coordinate { - chromosome - representativeTranscript - start - stop -} - `; export const RevisableGeneVariantFieldsFragmentDoc = gql` fragment RevisableGeneVariantFields on GeneVariant { name @@ -10012,22 +9987,15 @@ export const RevisableGeneVariantFieldsFragmentDoc = gql` variantAliases alleleRegistryId clinvarIds - ensemblVersion hgvsDescriptions - referenceBuild variantTypes { id name soid } - primaryCoordinates { - ...CoordinateFields - } - secondaryCoordinates { + coordinates { ...CoordinateFields } - referenceBases - variantBases } ${CoordinateFieldsFragmentDoc}`; export const RevisableMolecularProfileFieldsFragmentDoc = gql` @@ -10829,27 +10797,15 @@ export const GeneVariantSummaryFieldsFragmentDoc = gql` maneSelectTranscript hgvsDescriptions clinvarIds - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - referenceBases - variantBases myVariantInfo { ...MyVariantInfoFields } } - ${MyVariantInfoFieldsFragmentDoc}`; + ${CoordinateFieldsFragmentDoc} +${MyVariantInfoFieldsFragmentDoc}`; export const FactorVariantSummaryFieldsFragmentDoc = gql` fragment FactorVariantSummaryFields on FactorVariant { ncitId diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 193dbcd93..c31c4dfbd 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -1826,20 +1826,6 @@ type Contribution { count: Int! } -type Coordinate { - chromosome: String - representativeTranscript: String - start: Int - stop: Int -} - -input CoordinateInput { - chromosome: String - representativeTranscript: String - start: Int - stop: Int -} - type Country { id: Int! iso: String! @@ -4453,11 +4439,11 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ sortBy: DateSort ): CommentConnection! + coordinates: GeneVariantCoordinate creationActivity: CreateVariantActivity deprecated: Boolean! deprecationActivity: DeprecateVariantActivity deprecationReason: VariantDeprecationReason - ensemblVersion: Int """ List and filter events for an object @@ -4569,9 +4555,6 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla myVariantInfo: MyVariantInfo name: String! openCravatUrl: String - primaryCoordinates: Coordinate - referenceBases: String - referenceBuild: ReferenceBuild """ List and filter revisions. @@ -4622,14 +4605,50 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ status: RevisionStatus ): RevisionConnection! - secondaryCoordinates: Coordinate singleVariantMolecularProfile: MolecularProfile! singleVariantMolecularProfileId: Int! variantAliases: [String!]! - variantBases: String variantTypes: [VariantType!]! } +type GeneVariantCoordinate { + chromosome: String + ensemblVersion: Int + referenceBases: String + referenceBuild: ReferenceBuild + representativeTranscript: String + start: Int + stop: Int + variantBases: String +} + +input GeneVariantCoordinateInput { + chromosome: String + + """ + The Ensembl database version. + """ + ensemblVersion: Int! + + """ + Reference bases for this variant + """ + referenceBases: NullableStringInput! + + """ + The reference build for the genomic coordinates of this Variant. + """ + referenceBuild: ReferenceBuild! + representativeTranscript: String + start: Int + stop: Int + + """ + Variant bases for this variant + """ + variantBases: NullableStringInput! +} + """ Fields on a GeneVariant that curators may propose revisions to. """ @@ -4645,9 +4664,9 @@ input GeneVariantFields { clinvarIds: ClinvarInput! """ - The Ensembl database version. + The genomic coordinates for this Variant. """ - ensemblVersion: NullableIntInput! + coordinates: GeneVariantCoordinateInput! """ The ID of the Feature this Variant corresponds to. @@ -4664,31 +4683,6 @@ input GeneVariantFields { """ name: String! - """ - The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner. - """ - primaryCoordinates: CoordinateInput! - - """ - Reference bases for this variant - """ - referenceBases: NullableStringInput! - - """ - The reference build for the genomic coordinates of this Variant. - """ - referenceBuild: NullableReferenceBuildTypeInput! - - """ - In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null. - """ - secondaryCoordinates: CoordinateInput! - - """ - Variant bases for this variant - """ - variantBases: NullableStringInput! - """ List of IDs for the variant types for this Variant """ @@ -6256,24 +6250,6 @@ input NullableIntInput { value: Int } -""" -An input object that represents a field value that can be "unset" or changed to null. -To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. -This is to work around two issues with the GraphQL spec: lack of support for unions in input types -and the inability to have an input object argument be both required _and_ nullable at the same time. -""" -input NullableReferenceBuildTypeInput { - """ - Set to true if you wish to set the field's value to null. - """ - unset: Boolean - - """ - The desired value for the field. Mutually exclusive with unset. - """ - value: ReferenceBuild -} - """ An input object that represents a field value that can be "unset" or changed to null. To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 92fcef24b..8a70f4136 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -9267,124 +9267,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "Coordinate", - "description": null, - "fields": [ - { - "name": "chromosome", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "representativeTranscript", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CoordinateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "representativeTranscript", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chromosome", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "Country", @@ -20900,6 +20782,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "coordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "GeneVariantCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "creationActivity", "description": null, @@ -20952,18 +20846,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "ensemblVersion", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "events", "description": "List and filter events for an object", @@ -21431,42 +21313,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "primaryCoordinates", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Coordinate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBases", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBuild", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "revisions", "description": "List and filter revisions.", @@ -21592,18 +21438,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "secondaryCoordinates", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Coordinate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "singleVariantMolecularProfile", "description": null, @@ -21660,18 +21494,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "variantBases", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "variantTypes", "description": null, @@ -21739,84 +21561,175 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "GeneVariantFields", - "description": "Fields on a GeneVariant that curators may propose revisions to.", - "fields": null, - "inputFields": [ + "kind": "OBJECT", + "name": "GeneVariantCoordinate", + "description": null, + "fields": [ { - "name": "name", - "description": "The Variant's name.", + "name": "chromosome", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "aliases", - "description": "List of aliases or alternate names for the Variant.", + "name": "ensemblVersion", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "hgvsDescriptions", - "description": "List of HGVS descriptions for the Variant.", + "name": "referenceBases", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "representativeTranscript", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantBases", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "GeneVariantCoordinateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "representativeTranscript", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "clinvarIds", - "description": "List of ClinVar IDs for the Variant.", + "name": "chromosome", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": "The reference build for the genomic coordinates of this Variant.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "ClinvarInput", + "kind": "ENUM", + "name": "ReferenceBuild", "ofType": null } }, @@ -21825,23 +21738,15 @@ "deprecationReason": null }, { - "name": "variantTypeIds", - "description": "List of IDs for the variant types for this Variant", + "name": "ensemblVersion", + "description": "The Ensembl database version.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } + "kind": "SCALAR", + "name": "Int", + "ofType": null } }, "defaultValue": null, @@ -21849,14 +21754,14 @@ "deprecationReason": null }, { - "name": "referenceBuild", - "description": "The reference build for the genomic coordinates of this Variant.", + "name": "referenceBases", + "description": "Reference bases for this variant", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "NullableReferenceBuildTypeInput", + "name": "NullableStringInput", "ofType": null } }, @@ -21865,30 +21770,41 @@ "deprecationReason": null }, { - "name": "ensemblVersion", - "description": "The Ensembl database version.", + "name": "variantBases", + "description": "Variant bases for this variant", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "NullableIntInput", + "name": "NullableStringInput", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "GeneVariantFields", + "description": "Fields on a GeneVariant that curators may propose revisions to.", + "fields": null, + "inputFields": [ { - "name": "secondaryCoordinates", - "description": "In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null.", + "name": "name", + "description": "The Variant's name.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "CoordinateInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -21897,14 +21813,62 @@ "deprecationReason": null }, { - "name": "primaryCoordinates", - "description": "The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner.", + "name": "aliases", + "description": "List of aliases or alternate names for the Variant.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hgvsDescriptions", + "description": "List of HGVS descriptions for the Variant.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "clinvarIds", + "description": "List of ClinVar IDs for the Variant.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CoordinateInput", + "name": "ClinvarInput", "ofType": null } }, @@ -21913,15 +21877,23 @@ "deprecationReason": null }, { - "name": "featureId", - "description": "The ID of the Feature this Variant corresponds to.", + "name": "variantTypeIds", + "description": "List of IDs for the variant types for this Variant", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } } }, "defaultValue": null, @@ -21929,14 +21901,14 @@ "deprecationReason": null }, { - "name": "referenceBases", - "description": "Reference bases for this variant", + "name": "coordinates", + "description": "The genomic coordinates for this Variant.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "NullableStringInput", + "name": "GeneVariantCoordinateInput", "ofType": null } }, @@ -21945,14 +21917,14 @@ "deprecationReason": null }, { - "name": "variantBases", - "description": "Variant bases for this variant", + "name": "featureId", + "description": "The ID of the Feature this Variant corresponds to.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableStringInput", + "kind": "SCALAR", + "name": "Int", "ofType": null } }, @@ -29574,41 +29546,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "INPUT_OBJECT", - "name": "NullableReferenceBuildTypeInput", - "description": "An input object that represents a field value that can be \"unset\" or changed to null.\nTo change the field's value to null, pass unset as true, otherwise pass in the desired value as value.\nThis is to work around two issues with the GraphQL spec: lack of support for unions in input types\nand the inability to have an input object argument be both required _and_ nullable at the same time.", - "fields": null, - "inputFields": [ - { - "name": "unset", - "description": "Set to true if you wish to set the field's value to null.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "The desired value for the field. Mutually exclusive with unset.", - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "NullableStringInput", diff --git a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql index deecef86a..2ae626d2a 100644 --- a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql +++ b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql @@ -85,22 +85,9 @@ fragment GeneVariantSummaryFields on GeneVariant { maneSelectTranscript hgvsDescriptions clinvarIds - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases myVariantInfo { ...MyVariantInfoFields } diff --git a/server/app/graphql/types/entities/gene_coordinate_type.rb b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb similarity index 88% rename from server/app/graphql/types/entities/gene_coordinate_type.rb rename to server/app/graphql/types/entities/gene_variant_coordinate_type.rb index d4f55d004..504af783d 100644 --- a/server/app/graphql/types/entities/gene_coordinate_type.rb +++ b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb @@ -1,5 +1,5 @@ module Types::Entities - class GeneCoordinateType < Types::BaseObject + class GeneVariantCoordinateType < Types::BaseObject field :representative_transcript, String, null: true field :chromosome, String, null: true field :start, Int, null: true diff --git a/server/app/graphql/types/revisions/coordinate_input_type.rb b/server/app/graphql/types/revisions/coordinate_input_type.rb deleted file mode 100644 index 2ea33eb91..000000000 --- a/server/app/graphql/types/revisions/coordinate_input_type.rb +++ /dev/null @@ -1,12 +0,0 @@ -module Types::Revisions - class CoordinateInputType < Types::BaseInputObject - argument :representative_transcript, String, required: false - argument :chromosome, String, required: false, - validates: { inclusion: { allow_null: true, in: [ - '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', - '14', '15', '16', '17', '18', '19', '20', '21', '22', 'X', 'Y', 'MT'] - }} - argument :start, Int, required: false - argument :stop, Int, required: false - end -end diff --git a/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb new file mode 100644 index 000000000..e0279ccac --- /dev/null +++ b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb @@ -0,0 +1,20 @@ +module Types::Revisions + class GeneVariantCoordinateInputType < Types::BaseInputObject + argument :representative_transcript, String, required: false + argument :chromosome, String, required: false, + validates: { inclusion: { allow_null: true, in: [ + '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', + '14', '15', '16', '17', '18', '19', '20', '21', '22', 'X', 'Y', 'MT'] + }} + argument :start, Int, required: false + argument :stop, Int, required: false + argument :reference_build, Types::ReferenceBuildType, required: true, + description: 'The reference build for the genomic coordinates of this Variant.' + argument :ensembl_version, GraphQL::Types::Int, required: true, + description: 'The Ensembl database version.' + argument :reference_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, + description: 'Reference bases for this variant' + argument :variant_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, + description: 'Variant bases for this variant' + end +end diff --git a/server/app/graphql/types/revisions/gene_variant_fields.rb b/server/app/graphql/types/revisions/gene_variant_fields.rb index 221254f0b..56dd7cd0a 100644 --- a/server/app/graphql/types/revisions/gene_variant_fields.rb +++ b/server/app/graphql/types/revisions/gene_variant_fields.rb @@ -11,20 +11,10 @@ class GeneVariantFields < Types::BaseInputObject description: 'List of ClinVar IDs for the Variant.' argument :variant_type_ids, [Int], required: true, description: 'List of IDs for the variant types for this Variant' - argument :reference_build, Types::NullableValueInputType.for(Types::ReferenceBuildType), required: true, - description: 'The reference build for the genomic coordinates of this Variant.' - argument :ensembl_version, Types::NullableValueInputType.for(GraphQL::Types::Int), required: true, - description: 'The Ensembl database version.' - argument :secondary_coordinates, Types::Revisions::CoordinateInputType, required: true, - description: "In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null." - argument :primary_coordinates, Types::Revisions::CoordinateInputType, required: true, - description: "The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner." + argument :coordinates, Types::Revisions::GeneVariantCoordinateInputType, required: true, + description: "The genomic coordinates for this Variant." argument :feature_id, Int, required: true, description: 'The ID of the Feature this Variant corresponds to.' - argument :reference_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, - description: 'Reference bases for this variant' - argument :variant_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, - description: 'Variant bases for this variant' end end diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index ea87a1030..1709ea397 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,7 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :coordinates, Types::Entities::GeneCoordinateType, null: true + field :coordinates, Types::Entities::GeneVariantCoordinateType, null: true field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false diff --git a/server/app/models/activities/suggest_revision_set.rb b/server/app/models/activities/suggest_revision_set.rb index e009e176a..a2f1986ab 100644 --- a/server/app/models/activities/suggest_revision_set.rb +++ b/server/app/models/activities/suggest_revision_set.rb @@ -1,4 +1,6 @@ module Activities + RevisedObjectPair = Data.define(:existing_obj, :updated_obj) + class SuggestRevisionSet < Base attr_reader :revision_set, :revisions, :revision_results, :existing_obj, :updated_obj diff --git a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb index 1412cb537..6fc64ef9d 100644 --- a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb +++ b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb @@ -1,15 +1,15 @@ class AddVariantCoordinateTable < ActiveRecord::Migration[7.1] def change create_table :variant_coordinates do |t| - t.text :chromosome, index: true, null: false - t.bigint :start, index: true, null: false - t.bigint :stop, index: true, null: false + t.text :chromosome, index: true, null: true + t.bigint :start, index: true, null: true + t.bigint :stop, index: true, null: true t.text :reference_bases, null: true t.text :variant_bases, null: true t.integer :exon_boundary, null: true t.integer :exon_offset, null: true t.integer :ensembl_version, null: true - t.text :representative_transcript, index: true, null: false + t.text :representative_transcript, index: true, null: true t.integer :reference_build, null: false, index: true t.references :variant, null: false, index: true t.text :coordinate_type, null: false diff --git a/server/db/schema.rb b/server/db/schema.rb index a924d8fdf..a80bf70da 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -863,15 +863,15 @@ end create_table "variant_coordinates", force: :cascade do |t| - t.text "chromosome", null: false - t.bigint "start", null: false - t.bigint "stop", null: false + t.text "chromosome" + t.bigint "start" + t.bigint "stop" t.text "reference_bases" t.text "variant_bases" t.integer "exon_boundary" t.integer "exon_offset" t.integer "ensembl_version" - t.text "representative_transcript", null: false + t.text "representative_transcript" t.integer "reference_build", null: false t.bigint "variant_id", null: false t.text "coordinate_type", null: false From 527e34a8267541a52c9b7f34e30dc68983cc40e0 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Fri, 29 Mar 2024 12:39:07 -0500 Subject: [PATCH 03/56] get coordinate display and form model working with new schema --- .../empty-revisable.component.html | 22 +- .../empty-revisable.component.ts | 1 + .../coordinates-card.component.html | 194 ++++++++++-------- .../coordinates-card.module.ts | 3 + .../gene-variant-revise.form.config.ts | 76 +------ .../forms/models/gene-variant-fields.model.ts | 1 - .../forms/models/gene-variant-revise.model.ts | 4 - .../utilities/gene-variant-to-model-fields.ts | 17 +- .../input-formatters/variant-revise.ts | 51 +++-- client/src/app/generated/civic.apollo.ts | 26 +-- client/src/app/generated/server.model.graphql | 6 +- client/src/app/generated/server.schema.json | 30 ++- .../gene_variant_coordinate_input_type.rb | 4 +- .../types/variants/gene_variant_type.rb | 2 +- ...0327150519_add_variant_coordinate_table.rb | 4 +- server/db/schema.rb | 4 +- .../fusions/backfill_gene_variant_coords.rb | 9 +- 17 files changed, 214 insertions(+), 240 deletions(-) diff --git a/client/src/app/components/shared/empty-revisable/empty-revisable.component.html b/client/src/app/components/shared/empty-revisable/empty-revisable.component.html index 0c98eb6e0..1499196be 100644 --- a/client/src/app/components/shared/empty-revisable/empty-revisable.component.html +++ b/client/src/app/components/shared/empty-revisable/empty-revisable.component.html @@ -13,9 +13,21 @@ Not specified - + @if (reviseFormPath) { + + + + } @else { + + } diff --git a/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts b/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts index fea55def8..09c9f4c8d 100644 --- a/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts +++ b/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts @@ -8,6 +8,7 @@ import { Maybe } from '@app/generated/civic.apollo' }) export class CvcEmptyRevisableComponent implements OnInit { @Input() notification: Maybe + @Input() reviseFormPath: Maybe constructor() {} diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html index 0a008fa9f..100dcda72 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html @@ -1,10 +1,7 @@ @if (variant.__typename == 'GeneVariant') { + *ngTemplateOutlet="coordinateCard; context: { $implicit: variant }"> } @@ -13,101 +10,136 @@ } + + + None specified + + + - - - - - - - {{ coords.referenceBuild }} - - - - {{ coords.ensemblVersion }} - - - - - - - {{ coords.chromosome }} - + let-variant> + + + + + + + + + {{ coords.referenceBuild }} + + - - - {{ coords.start }} - + + + {{ coords.ensemblVersion }} + + + - - - {{ coords.stop }} - + + + + + {{ coords.chromosome }} + + - - + - {{ coords.referenceBases | ifEmpty: '--' }} + + {{ coords.start }} + - + - {{ coords.variantBases | ifEmpty: '--' }} + + {{ coords.stop }} + - - - - - {{ coords.representativeTranscript }} - - - -- + + + + + {{ coords.referenceBases | ifEmpty: '--' }} + + + + + + + {{ coords.variantBases | ifEmpty: '--' }} + + - - - - - - - - - + + + + {{ coords.representativeTranscript }} + + + + + + + + + + + + diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts index e2516a660..fb22843a2 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts @@ -7,6 +7,7 @@ import { CvcLinkTagModule } from '@app/components/shared/link-tag/link-tag.modul import { CvcEmptyRevisableModule } from '@app/components/shared/empty-revisable/empty-revisable.module' import { LetDirective, PushPipe } from '@ngrx/component' import { CvcPipesModule } from '@app/core/pipes/pipes.module' +import { NzTypographyModule } from 'ng-zorro-antd/typography' @NgModule({ declarations: [CvcCoordinatesCard], @@ -14,8 +15,10 @@ import { CvcPipesModule } from '@app/core/pipes/pipes.module' CommonModule, LetDirective, PushPipe, + LetDirective, NzCardModule, NzDescriptionsModule, + NzTypographyModule, CvcPipesModule, CvcLinkTagModule, CvcEmptyRevisableModule, diff --git a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts index 2eedb98dc..32ca0a939 100644 --- a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts +++ b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts @@ -123,7 +123,7 @@ const formFieldConfig: FormlyFieldConfig[] = [ wrappers: ['form-card'], props: { formCardOptions: { - title: `Primary (5') Coordinates`, + title: `Coordinates`, size: 'small', }, }, @@ -248,80 +248,6 @@ const formFieldConfig: FormlyFieldConfig[] = [ }, ], }, - { - wrappers: ['form-card'], - props: { - formCardOptions: { - title: `Secondary (3') Coordinates`, - size: 'small', - }, - }, - fieldGroup: [ - { - wrappers: ['form-row'], - props: { - formRowOptions: { - responsive: { xs: 24, md: 12, lg: 8, xxl: 6 }, - }, - }, - fieldGroup: [ - { - key: 'chromosome2', - type: 'base-select', - props: { - label: 'Chromosome', - options: Chromosomes, - description: - 'If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner.', - }, - }, - { - key: 'start2', - type: 'base-input', - validators: { - isNumeric: { - expression: (c: AbstractControl) => - c.value ? /^\d+$/.test(c.value) : true, - message: (_: any, field: FormlyFieldConfig) => - 'Start coordinate must be numeric', - }, - }, - props: { - label: 'Start', - description: - 'Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build.', - }, - }, - { - key: 'stop2', - type: 'base-input', - validators: { - isNumeric: { - expression: (c: AbstractControl) => - c.value ? /^\d+$/.test(c.value) : true, - message: (_: any, field: FormlyFieldConfig) => - 'Stop coordinate must be numeric', - }, - }, - props: { - label: 'Stop', - description: - 'Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build.', - }, - }, - { - key: 'representativeTranscript2', - type: 'base-input', - props: { - label: 'Representative Transcript', - description: - 'Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl).', - }, - }, - ], - }, - ], - }, ], }, ], diff --git a/client/src/app/forms/models/gene-variant-fields.model.ts b/client/src/app/forms/models/gene-variant-fields.model.ts index 46ba066cd..6e2c38c3c 100644 --- a/client/src/app/forms/models/gene-variant-fields.model.ts +++ b/client/src/app/forms/models/gene-variant-fields.model.ts @@ -12,7 +12,6 @@ export type GeneVariantFields = { start?: number stop?: number representativeTranscript?: string - representativeTranscript2?: string featureId?: number referenceBases?: string variantBases?: string diff --git a/client/src/app/forms/models/gene-variant-revise.model.ts b/client/src/app/forms/models/gene-variant-revise.model.ts index 3a650b383..6aa4aa367 100644 --- a/client/src/app/forms/models/gene-variant-revise.model.ts +++ b/client/src/app/forms/models/gene-variant-revise.model.ts @@ -17,10 +17,6 @@ export const geneVariantReviseFieldsDefaults: GeneVariantFields = { start: undefined, stop: undefined, representativeTranscript: undefined, - chromosome2: undefined, - start2: undefined, - stop2: undefined, - representativeTranscript2: undefined, featureId: undefined, referenceBases: undefined, variantBases: undefined, diff --git a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts index d1775098e..8af6693ef 100644 --- a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts +++ b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts @@ -17,7 +17,14 @@ export function geneVariantToModelFields( hgvsDescriptions: variant.hgvsDescriptions, clinvarIds: variant.clinvarIds, variantTypeIds: variant.variantTypes.map((vt) => vt.id), - coordinates: variant.coordinates, + referenceBuild: variant.coordinates.referenceBuild, + ensemblVersion: variant.coordinates.ensemblVersion, + chromosome: variant.coordinates.chromosome, + start: variant.coordinates.start, + stop: variant.coordinates.stop, + referenceBases: variant.coordinates.referenceBases, + variantBases: variant.coordinates.variantBases, + representativeTranscript: variant.coordinates.representativeTranscript, featureId: variant.feature.id, } } @@ -44,10 +51,10 @@ export function geneVariantFormModelToReviseInput( start: fields.start ? +fields.start : undefined, stop: fields.stop ? +fields.stop : undefined, representativeTranscript: fields.representativeTranscript, - ensemblVersion: fmt.toNullableInput( - fields.ensemblVersion ? +fields.ensemblVersion : undefined - ), - referenceBuild: fmt.toNullableInput(fields.referenceBuild), + ensemblVersion: fields.ensemblVersion + ? +fields.ensemblVersion + : undefined, + referenceBuild: fields.referenceBuild, referenceBases: fmt.toNullableString(fields.referenceBases), variantBases: fmt.toNullableString(fields.variantBases), }, diff --git a/client/src/app/forms/utilities/input-formatters/variant-revise.ts b/client/src/app/forms/utilities/input-formatters/variant-revise.ts index 3a347f89a..1f81decc1 100644 --- a/client/src/app/forms/utilities/input-formatters/variant-revise.ts +++ b/client/src/app/forms/utilities/input-formatters/variant-revise.ts @@ -3,7 +3,6 @@ import { GeneVariantCoordinate, GeneVariantCoordinateInput, Maybe, - ReferenceBuild, } from '@app/generated/civic.apollo' import * as fmt from '@app/forms/utilities/input-formatters' @@ -41,31 +40,31 @@ export function toClinvarInput( } } -export function toCoordinateInput( - coord: Maybe -): GeneVariantCoordinateInput { - if (coord) { - return { - chromosome: undefinedIfEmpty(coord.chromosome), - representativeTranscript: undefinedIfEmpty( - coord.representativeTranscript - ), - start: coord.start ? +coord.start : undefined, - stop: coord.stop ? +coord.stop : undefined, - referenceBases: fmt.toNullableString(coord.referenceBases), - variantBases: fmt.toNullableString(coord.variantBases), - referenceBuild: coord.referenceBuild - ensemblVersion: coord.ensemblVersion - } - } else { - return { - chromosome: undefined, - representativeTranscript: undefined, - start: undefined, - stop: undefined, - } - } -} +//export function toCoordinateInput( +//coord: Maybe +//): GeneVariantCoordinateInput { +//if (coord) { +//return { +//chromosome: undefinedIfEmpty(coord.chromosome), +//representativeTranscript: undefinedIfEmpty( +//coord.representativeTranscript +//), +//start: coord.start ? +coord.start : undefined, +//stop: coord.stop ? +coord.stop : undefined, +//referenceBases: fmt.toNullableString(coord.referenceBases), +//variantBases: fmt.toNullableString(coord.variantBases), +//referenceBuild: coord.referenceBuild, +//ensemblVersion: coord.ensemblVersion, +//} +//} else { +//return { +//chromosome: undefined, +//representativeTranscript: undefined, +//start: undefined, +//stop: undefined, +//} +//} +//} //export function toNullableReferenceBuildInput( //build: Maybe diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index f95e1dc9b..2eead8fda 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2580,7 +2580,7 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; - coordinates?: Maybe; + coordinates: GeneVariantCoordinate; creationActivity?: Maybe; deprecated: Scalars['Boolean']; deprecationActivity?: Maybe; @@ -2683,11 +2683,11 @@ export type GeneVariantCoordinate = { export type GeneVariantCoordinateInput = { chromosome?: InputMaybe; /** The Ensembl database version. */ - ensemblVersion: Scalars['Int']; + ensemblVersion?: InputMaybe; /** Reference bases for this variant */ referenceBases: NullableStringInput; /** The reference build for the genomic coordinates of this Variant. */ - referenceBuild: ReferenceBuild; + referenceBuild?: InputMaybe; representativeTranscript?: InputMaybe; start?: InputMaybe; stop?: InputMaybe; @@ -7442,11 +7442,11 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -7794,9 +7794,9 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; @@ -8335,9 +8335,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8349,7 +8349,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8538,11 +8538,11 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8550,7 +8550,7 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 76583c4e2..46ae0831c 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4439,7 +4439,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ sortBy: DateSort ): CommentConnection! - coordinates: GeneVariantCoordinate + coordinates: GeneVariantCoordinate! creationActivity: CreateVariantActivity deprecated: Boolean! deprecationActivity: DeprecateVariantActivity @@ -4628,7 +4628,7 @@ input GeneVariantCoordinateInput { """ The Ensembl database version. """ - ensemblVersion: Int! + ensemblVersion: Int """ Reference bases for this variant @@ -4638,7 +4638,7 @@ input GeneVariantCoordinateInput { """ The reference build for the genomic coordinates of this Variant. """ - referenceBuild: ReferenceBuild! + referenceBuild: ReferenceBuild representativeTranscript: String start: Int stop: Int diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 751fb0f6e..96a6ee6e0 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -20787,9 +20787,13 @@ "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "GeneVariantCoordinate", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GeneVariantCoordinate", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -21725,13 +21729,9 @@ "name": "referenceBuild", "description": "The reference build for the genomic coordinates of this Variant.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - } + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -21741,13 +21741,9 @@ "name": "ensemblVersion", "description": "The Ensembl database version.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "defaultValue": null, "isDeprecated": false, diff --git a/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb index e0279ccac..2cb7fb100 100644 --- a/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb +++ b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb @@ -8,9 +8,9 @@ class GeneVariantCoordinateInputType < Types::BaseInputObject }} argument :start, Int, required: false argument :stop, Int, required: false - argument :reference_build, Types::ReferenceBuildType, required: true, + argument :reference_build, Types::ReferenceBuildType, required: false, description: 'The reference build for the genomic coordinates of this Variant.' - argument :ensembl_version, GraphQL::Types::Int, required: true, + argument :ensembl_version, GraphQL::Types::Int, required: false, description: 'The Ensembl database version.' argument :reference_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, description: 'Reference bases for this variant' diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index 1709ea397..f761a73bc 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,7 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :coordinates, Types::Entities::GeneVariantCoordinateType, null: true + field :coordinates, Types::Entities::GeneVariantCoordinateType, null: false field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false diff --git a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb index 6fc64ef9d..76246e0d4 100644 --- a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb +++ b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb @@ -10,8 +10,8 @@ def change t.integer :exon_offset, null: true t.integer :ensembl_version, null: true t.text :representative_transcript, index: true, null: true - t.integer :reference_build, null: false, index: true - t.references :variant, null: false, index: true + t.integer :reference_build, null: true, index: true + t.references :variant, null: true, index: true t.text :coordinate_type, null: false t.timestamps end diff --git a/server/db/schema.rb b/server/db/schema.rb index a80bf70da..dbde32aec 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -872,8 +872,8 @@ t.integer "exon_offset" t.integer "ensembl_version" t.text "representative_transcript" - t.integer "reference_build", null: false - t.bigint "variant_id", null: false + t.integer "reference_build" + t.bigint "variant_id" t.text "coordinate_type", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false diff --git a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb index 5c5c219b6..c7498abd4 100644 --- a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb +++ b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb @@ -1,7 +1,10 @@ +# run order: 1 + Variants::GeneVariant.find_each do |variant| - next if variant.start2.present? - next if variant.variant_types.where(name: 'transcript_fusion').exists? - next unless variant.start.present? + #maybe_fusion = [ + #variant.start2.present?, + #variant.variant_types.where(name: 'transcript_fusion').exists? + #].all? coord = VariantCoordinate.create!( variant: variant, From afc99c33f780088efe07ee8dbc579343e044a18c Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 27 Mar 2024 11:27:31 -0500 Subject: [PATCH 04/56] initial migration of coordinates to their own table --- .../graphql/types/entities/coordinate_type.rb | 8 --- .../types/entities/gene_coordinate_type.rb | 12 +++++ .../types/variants/gene_variant_type.rb | 50 ++----------------- server/app/models/variant.rb | 6 +++ server/app/models/variant_coordinate.rb | 26 ++++++++++ server/app/models/variants/factor_variant.rb | 6 +++ server/app/models/variants/gene_variant.rb | 30 +++++++---- server/app/validators/coordinate_validator.rb | 22 ++++++++ ...0327150519_add_variant_coordinate_table.rb | 21 ++++++++ server/db/schema.rb | 26 +++++++++- .../fusions/backfill_gene_variant_coords.rb | 18 +++++++ 11 files changed, 158 insertions(+), 67 deletions(-) delete mode 100644 server/app/graphql/types/entities/coordinate_type.rb create mode 100644 server/app/graphql/types/entities/gene_coordinate_type.rb create mode 100644 server/app/models/variant_coordinate.rb create mode 100644 server/app/validators/coordinate_validator.rb create mode 100644 server/db/migrate/20240327150519_add_variant_coordinate_table.rb create mode 100644 server/misc_scripts/fusions/backfill_gene_variant_coords.rb diff --git a/server/app/graphql/types/entities/coordinate_type.rb b/server/app/graphql/types/entities/coordinate_type.rb deleted file mode 100644 index 969e3612f..000000000 --- a/server/app/graphql/types/entities/coordinate_type.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Types::Entities - class CoordinateType < Types::BaseObject - field :representative_transcript, String, null: true - field :chromosome, String, null: true - field :start, Int, null: true - field :stop, Int, null: true - end -end diff --git a/server/app/graphql/types/entities/gene_coordinate_type.rb b/server/app/graphql/types/entities/gene_coordinate_type.rb new file mode 100644 index 000000000..d4f55d004 --- /dev/null +++ b/server/app/graphql/types/entities/gene_coordinate_type.rb @@ -0,0 +1,12 @@ +module Types::Entities + class GeneCoordinateType < Types::BaseObject + field :representative_transcript, String, null: true + field :chromosome, String, null: true + field :start, Int, null: true + field :stop, Int, null: true + field :reference_build, Types::ReferenceBuildType, null: true + field :ensembl_version, Int, null: true + field :reference_bases, String, null: true + field :variant_bases, String, null: true + end +end diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index ebe1645cc..ea87a1030 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,12 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :reference_build, Types::ReferenceBuildType, null: true - field :ensembl_version, Int, null: true - field :primary_coordinates, Types::Entities::CoordinateType, null: true - field :secondary_coordinates, Types::Entities::CoordinateType, null: true - field :reference_bases, String, null: true - field :variant_bases, String, null: true + field :coordinates, Types::Entities::GeneCoordinateType, null: true field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false @@ -14,47 +9,8 @@ class GeneVariantType < Types::Entities::VariantType field :mane_select_transcript, String, null: true field :open_cravat_url, String, null: true - - def primary_coordinates - if (object.representative_transcript.blank? && object.chromosome.blank? && object.start.blank? && object.stop.blank?) - return nil - else - return { - representative_transcript: object.representative_transcript, - chromosome: object.chromosome, - start: object.start, - stop: object.stop, - } - end - end - - def secondary_coordinates - if (object.representative_transcript2.blank? && object.chromosome2.blank? && object.start2.blank? && object.stop2.blank?) - return nil - else - return { - representative_transcript: object.representative_transcript2, - chromosome: object.chromosome2, - start: object.start2, - stop: object.stop2, - } - end - end - - def variant_bases - if (object.variant_bases.blank?) - return nil - else - return object.variant_bases - end - end - - def reference_bases - if (object.reference_bases.blank?) - return nil - else - return object.reference_bases - end + def coordinates + Loaders::AssociationLoader.for(Variants::GeneVariant, :variant_coordinate).load(object) end def clinvar_ids diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index a4cc30892..f1f7467b0 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -6,6 +6,7 @@ class Variant < ApplicationRecord include WithTimepointCounts belongs_to :feature + has_many :variant_coordinates, foreign_key: 'variant_id' has_and_belongs_to_many :molecular_profiles has_many :variant_group_variants @@ -51,6 +52,7 @@ class Variant < ApplicationRecord validate :unique_name_in_context validate :feature_type_matches_variant_type + validate :correct_coordinate_type validates_with VariantFieldsValidator searchkick highlight: [:name, :aliases], callbacks: :async @@ -104,6 +106,10 @@ def update_single_variant_mp_aliases svmp.molecular_profile_aliases = mp_aliases end + def correct_coordinate_type + raise StandardError.new("Implement validation in subclass") + end + def unique_name_in_context base_query = self.class.where( deprecated: false, diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb new file mode 100644 index 000000000..d286d87c6 --- /dev/null +++ b/server/app/models/variant_coordinate.rb @@ -0,0 +1,26 @@ +class VariantCoordinate < ApplicationRecord + belongs_to :variant, touch: true + + enum reference_build: [:GRCh38, :GRCh37, :NCBI36] + + validates :reference_bases, format: { + with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, + message: "only allows A,C,T,G or /" + }, allow_nil: true + + validates :variant_bases, format: { + with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, + message: "only allows A,C,T,G or /" + }, allow_nil: true + + validates :coordinate_type, presence: true + validates :coordinate_type, inclusion: { + in: [ + 'Gene Variant Coordinate' + ], + message: "%{value} is not a valid coordinate type" + } + + validates_with CoordinateValidator + +end diff --git a/server/app/models/variants/factor_variant.rb b/server/app/models/variants/factor_variant.rb index 7b946a8ac..2f3f942a7 100644 --- a/server/app/models/variants/factor_variant.rb +++ b/server/app/models/variants/factor_variant.rb @@ -9,5 +9,11 @@ def unique_editable_fields def required_fields [] end + + def correct_coordinate_type + if variant_coordinates.size > 0 + errors.add(:variant_coordinates, "Factor Variants may not have coordinates") + end + end end end diff --git a/server/app/models/variants/gene_variant.rb b/server/app/models/variants/gene_variant.rb index 8d9d33f04..153e4f7d8 100644 --- a/server/app/models/variants/gene_variant.rb +++ b/server/app/models/variants/gene_variant.rb @@ -1,22 +1,18 @@ module Variants class GeneVariant < Variant belongs_to :gene, class_name: 'Features::Gene', optional: true + + has_one :variant_coordinate, + ->() { where(coordinate_type: 'Gene Variant Coordinate') }, + foreign_key: 'variant_id', + class_name: 'VariantCoordinate' - #not used in V2, delete when Fusions added? + #TODO not used in V2, delete when Fusions added? #belongs_to :secondary_gene, class_name: 'Features::Gene', optional: true + #TODO remove after backfill/when columns removed enum reference_build: [:GRCh38, :GRCh37, :NCBI36] - validates :reference_bases, format: { - with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, - message: "only allows A,C,T,G or /" - }, allow_nil: true - - validates :variant_bases, format: { - with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, - message: "only allows A,C,T,G or /" - }, allow_nil: true - def unique_editable_fields [ :hgvs_description_ids, @@ -39,5 +35,17 @@ def unique_editable_fields def required_fields [] end + + def correct_coordinate_type + if variant_coordinates.size > 1 + errors.add(:variant_coordinates, "Gene Variants can only have one coordinate object specified") + end + + if coord = variant_coordinates.first + if coord.coordinate_type != 'Gene Variant Coordinate' + errors.add(:variant_coordinates, "Incorrect coordinate type #{coord.coordinate_type} for a Gene Variant") + end + end + end end end diff --git a/server/app/validators/coordinate_validator.rb b/server/app/validators/coordinate_validator.rb new file mode 100644 index 000000000..28625b821 --- /dev/null +++ b/server/app/validators/coordinate_validator.rb @@ -0,0 +1,22 @@ +class CoordinateValidator < ActiveModel::Validator + def validate(record) + case record.coordinate_type + when 'Gene Variant Coordinate' + validate_gene_variant_coordinates(record) + else + raise StandardError.new("Unsupported coordinate type: #{record.coordinate_type}") + end + end + + private + def validate_gene_variant_coordinates(record) + validate_not_present(record, :exon_boundary) + validate_not_present(record, :exon_offset) + end + + def validate_not_present(record, field) + if record.send(field).present? + record.errors.add(field, "#{field} is not allowed on #{record.coordinate_type}") + end + end +end diff --git a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb new file mode 100644 index 000000000..1412cb537 --- /dev/null +++ b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb @@ -0,0 +1,21 @@ +class AddVariantCoordinateTable < ActiveRecord::Migration[7.1] + def change + create_table :variant_coordinates do |t| + t.text :chromosome, index: true, null: false + t.bigint :start, index: true, null: false + t.bigint :stop, index: true, null: false + t.text :reference_bases, null: true + t.text :variant_bases, null: true + t.integer :exon_boundary, null: true + t.integer :exon_offset, null: true + t.integer :ensembl_version, null: true + t.text :representative_transcript, index: true, null: false + t.integer :reference_build, null: false, index: true + t.references :variant, null: false, index: true + t.text :coordinate_type, null: false + t.timestamps + end + + add_foreign_key :variant_coordinates, :variants + end +end diff --git a/server/db/schema.rb b/server/db/schema.rb index e5131831a..a924d8fdf 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_03_22_145804) do +ActiveRecord::Schema[7.1].define(version: 2024_03_27_150519) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -862,6 +862,29 @@ t.index ["variant_id"], name: "index_variant_aliases_variants_on_variant_id" end + create_table "variant_coordinates", force: :cascade do |t| + t.text "chromosome", null: false + t.bigint "start", null: false + t.bigint "stop", null: false + t.text "reference_bases" + t.text "variant_bases" + t.integer "exon_boundary" + t.integer "exon_offset" + t.integer "ensembl_version" + t.text "representative_transcript", null: false + t.integer "reference_build", null: false + t.bigint "variant_id", null: false + t.text "coordinate_type", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["chromosome"], name: "index_variant_coordinates_on_chromosome" + t.index ["reference_build"], name: "index_variant_coordinates_on_reference_build" + t.index ["representative_transcript"], name: "index_variant_coordinates_on_representative_transcript" + t.index ["start"], name: "index_variant_coordinates_on_start" + t.index ["stop"], name: "index_variant_coordinates_on_stop" + t.index ["variant_id"], name: "index_variant_coordinates_on_variant_id" + end + create_table "variant_group_variants", id: false, force: :cascade do |t| t.integer "variant_id", null: false t.integer "variant_group_id", null: false @@ -1030,6 +1053,7 @@ add_foreign_key "users", "organizations", column: "most_recent_organization_id" add_foreign_key "variant_aliases_variants", "variant_aliases" add_foreign_key "variant_aliases_variants", "variants" + add_foreign_key "variant_coordinates", "variants" add_foreign_key "variant_group_variants", "variant_groups" add_foreign_key "variant_group_variants", "variants" add_foreign_key "variants", "comments", column: "deprecation_comment_id" diff --git a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb new file mode 100644 index 000000000..5c5c219b6 --- /dev/null +++ b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb @@ -0,0 +1,18 @@ +Variants::GeneVariant.find_each do |variant| + next if variant.start2.present? + next if variant.variant_types.where(name: 'transcript_fusion').exists? + next unless variant.start.present? + + coord = VariantCoordinate.create!( + variant: variant, + reference_build: variant.reference_build, + coordinate_type: "Gene Variant Coordinate", + chromosome: variant.chromosome, + start: variant.start, + stop: variant.stop, + reference_bases: variant.reference_bases, + variant_bases: variant.variant_bases, + representative_transcript: variant.representative_transcript, + ensembl_version: variant.ensembl_version + ) +end From 63cf210e67fe14ba72fc3568a794803f5ecc023d Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Thu, 28 Mar 2024 09:19:05 -0500 Subject: [PATCH 05/56] update gql queries to match new coordinate schema --- .../coordinates-card.component.html | 189 +++--- .../coordinates-card.query.gql | 17 +- .../gene-variant-summary.page.html | 2 +- .../gene-variant-revise.query.gql | 15 +- .../forms/models/gene-variant-fields.model.ts | 3 - .../utilities/gene-variant-to-model-fields.ts | 35 +- .../input-formatters/variant-revise.ts | 42 +- .../src/app/generated/civic.apollo-helpers.ts | 35 +- client/src/app/generated/civic.apollo.ts | 166 ++--- client/src/app/generated/server.model.graphql | 106 ++-- client/src/app/generated/server.schema.json | 573 ++++++++---------- .../variants-summary.query.gql | 17 +- ...ype.rb => gene_variant_coordinate_type.rb} | 2 +- .../types/revisions/coordinate_input_type.rb | 12 - .../gene_variant_coordinate_input_type.rb | 20 + .../types/revisions/gene_variant_fields.rb | 14 +- .../types/variants/gene_variant_type.rb | 2 +- .../models/activities/suggest_revision_set.rb | 2 + ...0327150519_add_variant_coordinate_table.rb | 8 +- server/db/schema.rb | 8 +- 20 files changed, 520 insertions(+), 748 deletions(-) rename server/app/graphql/types/entities/{gene_coordinate_type.rb => gene_variant_coordinate_type.rb} (88%) delete mode 100644 server/app/graphql/types/revisions/coordinate_input_type.rb create mode 100644 server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html index 6b419a870..0a008fa9f 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html @@ -1,26 +1,31 @@ - @if(variant.__typename == "GeneVariant") { - - + @if (variant.__typename == 'GeneVariant') { + + } - - + @if (this.cvcCoordinates.__typename == 'GeneVariant') { + + + } + let-coords> - + - {{ variant.referenceBuild }} + {{ coords.referenceBuild }} - {{ variant.ensemblVersion }} + {{ coords.ensemblVersion }} - - - - - - {{ coords.chromosome }} - - - - - {{ coords.start }} - - - - - {{ coords.stop }} - - - - - - {{ variant.referenceBases | ifEmpty : '--' }} - - - - - {{ variant.variantBases | ifEmpty : '--' }} - - + + + + {{ coords.chromosome }} + - - - - {{ coords.representativeTranscript }} - - - -- - - - - + + + {{ coords.start }} + - - - - - - {{ coords.chromosome }} - + + + {{ coords.stop }} + - + + - {{ coords.start }} + {{ coords.referenceBases | ifEmpty: '--' }} - + - {{ coords.stop }} + {{ coords.variantBases | ifEmpty: '--' }} + - - - - {{ coords.representativeTranscript }} - - - -- - - - - + + + + {{ coords.representativeTranscript }} + + + -- + + + diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql index cd2fea9ad..0fb7f1244 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql @@ -8,21 +8,8 @@ fragment CoordinatesCardFields on VariantInterface { id name ... on GeneVariant { - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases } } diff --git a/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html b/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html index a37d1a06a..926f68e7f 100644 --- a/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html +++ b/client/src/app/components/variants/gene-variant-summary/gene-variant-summary.page.html @@ -104,7 +104,7 @@ + [cvcCoordinates]="variant"> diff --git a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql index 5de1293ca..215a233f7 100644 --- a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql +++ b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql @@ -16,29 +16,26 @@ fragment RevisableGeneVariantFields on GeneVariant { variantAliases alleleRegistryId clinvarIds - ensemblVersion hgvsDescriptions - referenceBuild variantTypes { id name soid } - primaryCoordinates { + coordinates { ...CoordinateFields } - secondaryCoordinates { - ...CoordinateFields - } - referenceBases - variantBases } -fragment CoordinateFields on Coordinate { +fragment CoordinateFields on GeneVariantCoordinate { + referenceBuild + ensemblVersion chromosome representativeTranscript start stop + referenceBases + variantBases } mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { diff --git a/client/src/app/forms/models/gene-variant-fields.model.ts b/client/src/app/forms/models/gene-variant-fields.model.ts index e4dcbd54a..46ba066cd 100644 --- a/client/src/app/forms/models/gene-variant-fields.model.ts +++ b/client/src/app/forms/models/gene-variant-fields.model.ts @@ -12,9 +12,6 @@ export type GeneVariantFields = { start?: number stop?: number representativeTranscript?: string - chromosome2?: string - start2?: number - stop2?: number representativeTranscript2?: string featureId?: number referenceBases?: string diff --git a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts index 91901b3bf..d1775098e 100644 --- a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts +++ b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts @@ -17,21 +17,8 @@ export function geneVariantToModelFields( hgvsDescriptions: variant.hgvsDescriptions, clinvarIds: variant.clinvarIds, variantTypeIds: variant.variantTypes.map((vt) => vt.id), - referenceBuild: variant.referenceBuild, - ensemblVersion: variant.ensemblVersion, - chromosome: variant.primaryCoordinates?.chromosome, - start: variant.primaryCoordinates?.start, - stop: variant.primaryCoordinates?.stop, - representativeTranscript: - variant.primaryCoordinates?.representativeTranscript, - chromosome2: variant.secondaryCoordinates?.chromosome, - start2: variant.secondaryCoordinates?.start, - stop2: variant.secondaryCoordinates?.stop, - representativeTranscript2: - variant.secondaryCoordinates?.representativeTranscript, + coordinates: variant.coordinates, featureId: variant.feature.id, - referenceBases: variant.referenceBases, - variantBases: variant.variantBases, } } @@ -52,25 +39,19 @@ export function geneVariantFormModelToReviseInput( hgvsDescriptions: fields.hgvsDescriptions || [], clinvarIds: clinvarHelper(fields.clinvarIds || []), variantTypeIds: fields.variantTypeIds || [], - referenceBuild: fmt.toNullableInput(fields.referenceBuild), - ensemblVersion: fmt.toNullableInput( - fields.ensemblVersion ? +fields.ensemblVersion : undefined - ), - primaryCoordinates: { + coordinates: { chromosome: fields.chromosome, start: fields.start ? +fields.start : undefined, stop: fields.stop ? +fields.stop : undefined, representativeTranscript: fields.representativeTranscript, - }, - secondaryCoordinates: { - chromosome: fields.chromosome2, - start: fields.start2 ? +fields.start2 : undefined, - stop: fields.stop2 ? +fields.stop2 : undefined, - representativeTranscript: fields.representativeTranscript2, + ensemblVersion: fmt.toNullableInput( + fields.ensemblVersion ? +fields.ensemblVersion : undefined + ), + referenceBuild: fmt.toNullableInput(fields.referenceBuild), + referenceBases: fmt.toNullableString(fields.referenceBases), + variantBases: fmt.toNullableString(fields.variantBases), }, featureId: fields.featureId, - referenceBases: fmt.toNullableString(fields.referenceBases), - variantBases: fmt.toNullableString(fields.variantBases), }, organizationId: model.organizationId, comment: model.comment!, diff --git a/client/src/app/forms/utilities/input-formatters/variant-revise.ts b/client/src/app/forms/utilities/input-formatters/variant-revise.ts index b198f5241..3a347f89a 100644 --- a/client/src/app/forms/utilities/input-formatters/variant-revise.ts +++ b/client/src/app/forms/utilities/input-formatters/variant-revise.ts @@ -1,11 +1,11 @@ import { ClinvarInput, - Coordinate, - CoordinateInput, + GeneVariantCoordinate, + GeneVariantCoordinateInput, Maybe, - NullableReferenceBuildTypeInput, ReferenceBuild, } from '@app/generated/civic.apollo' +import * as fmt from '@app/forms/utilities/input-formatters' export enum ClinvarOptions { NotApplicable, @@ -41,7 +41,9 @@ export function toClinvarInput( } } -export function toCoordinateInput(coord: Maybe): CoordinateInput { +export function toCoordinateInput( + coord: Maybe +): GeneVariantCoordinateInput { if (coord) { return { chromosome: undefinedIfEmpty(coord.chromosome), @@ -50,6 +52,10 @@ export function toCoordinateInput(coord: Maybe): CoordinateInput { ), start: coord.start ? +coord.start : undefined, stop: coord.stop ? +coord.stop : undefined, + referenceBases: fmt.toNullableString(coord.referenceBases), + variantBases: fmt.toNullableString(coord.variantBases), + referenceBuild: coord.referenceBuild + ensemblVersion: coord.ensemblVersion } } else { return { @@ -61,20 +67,20 @@ export function toCoordinateInput(coord: Maybe): CoordinateInput { } } -export function toNullableReferenceBuildInput( - build: Maybe -): NullableReferenceBuildTypeInput { - let nRefBuild: NullableReferenceBuildTypeInput = { - value: undefined, - unset: undefined, - } - if (build) { - nRefBuild.value = build - } else { - nRefBuild.unset = true - } - return nRefBuild -} +//export function toNullableReferenceBuildInput( +//build: Maybe +//): NullableReferenceBuildTypeInput { +//let nRefBuild: NullableReferenceBuildTypeInput = { +//value: undefined, +//unset: undefined, +//} +//if (build) { +//nRefBuild.value = build +//} else { +//nRefBuild.unset = true +//} +//return nRefBuild +//} export function undefinedIfEmpty(inVal: Maybe): Maybe { let outVal: Maybe diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 691c749de..9ece88af9 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -541,13 +541,6 @@ export type ContributionFieldPolicy = { action?: FieldPolicy | FieldReadFunction, count?: FieldPolicy | FieldReadFunction }; -export type CoordinateKeySpecifier = ('chromosome' | 'representativeTranscript' | 'start' | 'stop' | CoordinateKeySpecifier)[]; -export type CoordinateFieldPolicy = { - chromosome?: FieldPolicy | FieldReadFunction, - representativeTranscript?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; export type CountryKeySpecifier = ('id' | 'iso' | 'name' | CountryKeySpecifier)[]; export type CountryFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -1010,16 +1003,16 @@ export type GeneEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'ensemblVersion' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'primaryCoordinates' | 'referenceBases' | 'referenceBuild' | 'revisions' | 'secondaryCoordinates' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantBases' | 'variantTypes' | GeneVariantKeySpecifier)[]; +export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'coordinates' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | GeneVariantKeySpecifier)[]; export type GeneVariantFieldPolicy = { alleleRegistryId?: FieldPolicy | FieldReadFunction, clinvarIds?: FieldPolicy | FieldReadFunction, comments?: FieldPolicy | FieldReadFunction, + coordinates?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, deprecated?: FieldPolicy | FieldReadFunction, deprecationActivity?: FieldPolicy | FieldReadFunction, deprecationReason?: FieldPolicy | FieldReadFunction, - ensemblVersion?: FieldPolicy | FieldReadFunction, events?: FieldPolicy | FieldReadFunction, feature?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, @@ -1035,17 +1028,23 @@ export type GeneVariantFieldPolicy = { myVariantInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, openCravatUrl?: FieldPolicy | FieldReadFunction, - primaryCoordinates?: FieldPolicy | FieldReadFunction, - referenceBases?: FieldPolicy | FieldReadFunction, - referenceBuild?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, - secondaryCoordinates?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, variantAliases?: FieldPolicy | FieldReadFunction, - variantBases?: FieldPolicy | FieldReadFunction, variantTypes?: FieldPolicy | FieldReadFunction }; +export type GeneVariantCoordinateKeySpecifier = ('chromosome' | 'ensemblVersion' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | GeneVariantCoordinateKeySpecifier)[]; +export type GeneVariantCoordinateFieldPolicy = { + chromosome?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + referenceBases?: FieldPolicy | FieldReadFunction, + referenceBuild?: FieldPolicy | FieldReadFunction, + representativeTranscript?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction, + stop?: FieldPolicy | FieldReadFunction, + variantBases?: FieldPolicy | FieldReadFunction +}; export type LeaderboardOrganizationKeySpecifier = ('actionCount' | 'description' | 'eventCount' | 'events' | 'id' | 'memberCount' | 'members' | 'mostRecentActivityTimestamp' | 'name' | 'orgAndSuborgsStatsHash' | 'orgStatsHash' | 'profileImagePath' | 'rank' | 'ranks' | 'subGroups' | 'url' | LeaderboardOrganizationKeySpecifier)[]; export type LeaderboardOrganizationFieldPolicy = { actionCount?: FieldPolicy | FieldReadFunction, @@ -2464,10 +2463,6 @@ export type StrictTypedTypePolicies = { keyFields?: false | ContributionKeySpecifier | (() => undefined | ContributionKeySpecifier), fields?: ContributionFieldPolicy, }, - Coordinate?: Omit & { - keyFields?: false | CoordinateKeySpecifier | (() => undefined | CoordinateKeySpecifier), - fields?: CoordinateFieldPolicy, - }, Country?: Omit & { keyFields?: false | CountryKeySpecifier | (() => undefined | CountryKeySpecifier), fields?: CountryFieldPolicy, @@ -2648,6 +2643,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | GeneVariantKeySpecifier | (() => undefined | GeneVariantKeySpecifier), fields?: GeneVariantFieldPolicy, }, + GeneVariantCoordinate?: Omit & { + keyFields?: false | GeneVariantCoordinateKeySpecifier | (() => undefined | GeneVariantCoordinateKeySpecifier), + fields?: GeneVariantCoordinateFieldPolicy, + }, LeaderboardOrganization?: Omit & { keyFields?: false | LeaderboardOrganizationKeySpecifier | (() => undefined | LeaderboardOrganizationKeySpecifier), fields?: LeaderboardOrganizationFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 16c6f3b25..f95e1dc9b 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -1149,21 +1149,6 @@ export type Contribution = { count: Scalars['Int']; }; -export type Coordinate = { - __typename: 'Coordinate'; - chromosome?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - stop?: Maybe; -}; - -export type CoordinateInput = { - chromosome?: InputMaybe; - representativeTranscript?: InputMaybe; - start?: InputMaybe; - stop?: InputMaybe; -}; - export type Country = { __typename: 'Country'; id: Scalars['Int']; @@ -2595,11 +2580,11 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; + coordinates?: Maybe; creationActivity?: Maybe; deprecated: Scalars['Boolean']; deprecationActivity?: Maybe; deprecationReason?: Maybe; - ensemblVersion?: Maybe; /** List and filter events for an object */ events: EventConnection; feature: Feature; @@ -2617,16 +2602,11 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg myVariantInfo?: Maybe; name: Scalars['String']; openCravatUrl?: Maybe; - primaryCoordinates?: Maybe; - referenceBases?: Maybe; - referenceBuild?: Maybe; /** List and filter revisions. */ revisions: RevisionConnection; - secondaryCoordinates?: Maybe; singleVariantMolecularProfile: MolecularProfile; singleVariantMolecularProfileId: Scalars['Int']; variantAliases: Array; - variantBases?: Maybe; variantTypes: Array; }; @@ -2688,30 +2668,47 @@ export type GeneVariantRevisionsArgs = { status?: InputMaybe; }; +export type GeneVariantCoordinate = { + __typename: 'GeneVariantCoordinate'; + chromosome?: Maybe; + ensemblVersion?: Maybe; + referenceBases?: Maybe; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + start?: Maybe; + stop?: Maybe; + variantBases?: Maybe; +}; + +export type GeneVariantCoordinateInput = { + chromosome?: InputMaybe; + /** The Ensembl database version. */ + ensemblVersion: Scalars['Int']; + /** Reference bases for this variant */ + referenceBases: NullableStringInput; + /** The reference build for the genomic coordinates of this Variant. */ + referenceBuild: ReferenceBuild; + representativeTranscript?: InputMaybe; + start?: InputMaybe; + stop?: InputMaybe; + /** Variant bases for this variant */ + variantBases: NullableStringInput; +}; + /** Fields on a GeneVariant that curators may propose revisions to. */ export type GeneVariantFields = { /** List of aliases or alternate names for the Variant. */ aliases: Array; /** List of ClinVar IDs for the Variant. */ clinvarIds: ClinvarInput; - /** The Ensembl database version. */ - ensemblVersion: NullableIntInput; + /** The genomic coordinates for this Variant. */ + coordinates: GeneVariantCoordinateInput; /** The ID of the Feature this Variant corresponds to. */ featureId: Scalars['Int']; /** List of HGVS descriptions for the Variant. */ hgvsDescriptions: Array; /** The Variant's name. */ name: Scalars['String']; - /** The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner. */ - primaryCoordinates: CoordinateInput; - /** Reference bases for this variant */ - referenceBases: NullableStringInput; - /** The reference build for the genomic coordinates of this Variant. */ - referenceBuild: NullableReferenceBuildTypeInput; - /** In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null. */ - secondaryCoordinates: CoordinateInput; - /** Variant bases for this variant */ - variantBases: NullableStringInput; /** List of IDs for the variant types for this Variant */ variantTypeIds: Array; }; @@ -3770,19 +3767,6 @@ export type NullableIntInput = { value?: InputMaybe; }; -/** - * An input object that represents a field value that can be "unset" or changed to null. - * To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. - * This is to work around two issues with the GraphQL spec: lack of support for unions in input types - * and the inability to have an input object argument be both required _and_ nullable at the same time. - */ -export type NullableReferenceBuildTypeInput = { - /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; - /** The desired value for the field. Mutually exclusive with unset. */ - value?: InputMaybe; -}; - /** * An input object that represents a field value that can be "unset" or changed to null. * To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. @@ -7458,11 +7442,11 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, id: number, name: string, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, id: number, name: string, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -7810,11 +7794,11 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, ensemblVersion?: number | undefined, hgvsDescriptions: Array, referenceBuild?: ReferenceBuild | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, primaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, ensemblVersion?: number | undefined, hgvsDescriptions: Array, referenceBuild?: ReferenceBuild | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, primaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; -export type CoordinateFieldsFragment = { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined }; +export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; export type SuggestGeneVariantRevisionMutationVariables = Exact<{ input: SuggestGeneVariantRevisionInput; @@ -8351,9 +8335,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8365,7 +8349,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8554,11 +8538,11 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8566,7 +8550,7 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; @@ -9712,30 +9696,29 @@ export const VariantTypeBrowseTableRowFieldsFragmentDoc = gql` link } `; +export const CoordinateFieldsFragmentDoc = gql` + fragment CoordinateFields on GeneVariantCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + referenceBases + variantBases +} + `; export const CoordinatesCardFieldsFragmentDoc = gql` fragment CoordinatesCardFields on VariantInterface { id name ... on GeneVariant { - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases } } - `; + ${CoordinateFieldsFragmentDoc}`; export const VariantPopoverFieldsFragmentDoc = gql` fragment variantPopoverFields on VariantInterface { id @@ -10026,14 +10009,6 @@ export const RevisableGeneFieldsFragmentDoc = gql` } } `; -export const CoordinateFieldsFragmentDoc = gql` - fragment CoordinateFields on Coordinate { - chromosome - representativeTranscript - start - stop -} - `; export const RevisableGeneVariantFieldsFragmentDoc = gql` fragment RevisableGeneVariantFields on GeneVariant { name @@ -10044,22 +10019,15 @@ export const RevisableGeneVariantFieldsFragmentDoc = gql` variantAliases alleleRegistryId clinvarIds - ensemblVersion hgvsDescriptions - referenceBuild variantTypes { id name soid } - primaryCoordinates { - ...CoordinateFields - } - secondaryCoordinates { + coordinates { ...CoordinateFields } - referenceBases - variantBases } ${CoordinateFieldsFragmentDoc}`; export const RevisableMolecularProfileFieldsFragmentDoc = gql` @@ -10861,27 +10829,15 @@ export const GeneVariantSummaryFieldsFragmentDoc = gql` maneSelectTranscript hgvsDescriptions clinvarIds - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - referenceBases - variantBases myVariantInfo { ...MyVariantInfoFields } } - ${MyVariantInfoFieldsFragmentDoc}`; + ${CoordinateFieldsFragmentDoc} +${MyVariantInfoFieldsFragmentDoc}`; export const FactorVariantSummaryFieldsFragmentDoc = gql` fragment FactorVariantSummaryFields on FactorVariant { ncitId diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index c09fea133..76583c4e2 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -1826,20 +1826,6 @@ type Contribution { count: Int! } -type Coordinate { - chromosome: String - representativeTranscript: String - start: Int - stop: Int -} - -input CoordinateInput { - chromosome: String - representativeTranscript: String - start: Int - stop: Int -} - type Country { id: Int! iso: String! @@ -4453,11 +4439,11 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ sortBy: DateSort ): CommentConnection! + coordinates: GeneVariantCoordinate creationActivity: CreateVariantActivity deprecated: Boolean! deprecationActivity: DeprecateVariantActivity deprecationReason: VariantDeprecationReason - ensemblVersion: Int """ List and filter events for an object @@ -4569,9 +4555,6 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla myVariantInfo: MyVariantInfo name: String! openCravatUrl: String - primaryCoordinates: Coordinate - referenceBases: String - referenceBuild: ReferenceBuild """ List and filter revisions. @@ -4622,14 +4605,50 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ status: RevisionStatus ): RevisionConnection! - secondaryCoordinates: Coordinate singleVariantMolecularProfile: MolecularProfile! singleVariantMolecularProfileId: Int! variantAliases: [String!]! - variantBases: String variantTypes: [VariantType!]! } +type GeneVariantCoordinate { + chromosome: String + ensemblVersion: Int + referenceBases: String + referenceBuild: ReferenceBuild + representativeTranscript: String + start: Int + stop: Int + variantBases: String +} + +input GeneVariantCoordinateInput { + chromosome: String + + """ + The Ensembl database version. + """ + ensemblVersion: Int! + + """ + Reference bases for this variant + """ + referenceBases: NullableStringInput! + + """ + The reference build for the genomic coordinates of this Variant. + """ + referenceBuild: ReferenceBuild! + representativeTranscript: String + start: Int + stop: Int + + """ + Variant bases for this variant + """ + variantBases: NullableStringInput! +} + """ Fields on a GeneVariant that curators may propose revisions to. """ @@ -4645,9 +4664,9 @@ input GeneVariantFields { clinvarIds: ClinvarInput! """ - The Ensembl database version. + The genomic coordinates for this Variant. """ - ensemblVersion: NullableIntInput! + coordinates: GeneVariantCoordinateInput! """ The ID of the Feature this Variant corresponds to. @@ -4664,31 +4683,6 @@ input GeneVariantFields { """ name: String! - """ - The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner. - """ - primaryCoordinates: CoordinateInput! - - """ - Reference bases for this variant - """ - referenceBases: NullableStringInput! - - """ - The reference build for the genomic coordinates of this Variant. - """ - referenceBuild: NullableReferenceBuildTypeInput! - - """ - In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null. - """ - secondaryCoordinates: CoordinateInput! - - """ - Variant bases for this variant - """ - variantBases: NullableStringInput! - """ List of IDs for the variant types for this Variant """ @@ -6256,24 +6250,6 @@ input NullableIntInput { value: Int } -""" -An input object that represents a field value that can be "unset" or changed to null. -To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. -This is to work around two issues with the GraphQL spec: lack of support for unions in input types -and the inability to have an input object argument be both required _and_ nullable at the same time. -""" -input NullableReferenceBuildTypeInput { - """ - Set to true if you wish to set the field's value to null. - """ - unset: Boolean - - """ - The desired value for the field. Mutually exclusive with unset. - """ - value: ReferenceBuild -} - """ An input object that represents a field value that can be "unset" or changed to null. To change the field's value to null, pass unset as true, otherwise pass in the desired value as value. diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 95adf2d1b..751fb0f6e 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -9267,124 +9267,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "Coordinate", - "description": null, - "fields": [ - { - "name": "chromosome", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "representativeTranscript", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CoordinateInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "representativeTranscript", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chromosome", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "Country", @@ -20900,6 +20782,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "coordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "GeneVariantCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "creationActivity", "description": null, @@ -20952,18 +20846,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "ensemblVersion", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "events", "description": "List and filter events for an object", @@ -21431,42 +21313,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "primaryCoordinates", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Coordinate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBases", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBuild", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "revisions", "description": "List and filter revisions.", @@ -21592,18 +21438,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "secondaryCoordinates", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Coordinate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "singleVariantMolecularProfile", "description": null, @@ -21660,18 +21494,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "variantBases", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "variantTypes", "description": null, @@ -21739,84 +21561,175 @@ "possibleTypes": null }, { - "kind": "INPUT_OBJECT", - "name": "GeneVariantFields", - "description": "Fields on a GeneVariant that curators may propose revisions to.", - "fields": null, - "inputFields": [ + "kind": "OBJECT", + "name": "GeneVariantCoordinate", + "description": null, + "fields": [ { - "name": "name", - "description": "The Variant's name.", + "name": "chromosome", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "aliases", - "description": "List of aliases or alternate names for the Variant.", + "name": "ensemblVersion", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "hgvsDescriptions", - "description": "List of HGVS descriptions for the Variant.", + "name": "referenceBases", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "representativeTranscript", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantBases", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "GeneVariantCoordinateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "representativeTranscript", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "clinvarIds", - "description": "List of ClinVar IDs for the Variant.", + "name": "chromosome", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": "The reference build for the genomic coordinates of this Variant.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "ClinvarInput", + "kind": "ENUM", + "name": "ReferenceBuild", "ofType": null } }, @@ -21825,23 +21738,15 @@ "deprecationReason": null }, { - "name": "variantTypeIds", - "description": "List of IDs for the variant types for this Variant", + "name": "ensemblVersion", + "description": "The Ensembl database version.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } + "kind": "SCALAR", + "name": "Int", + "ofType": null } }, "defaultValue": null, @@ -21849,14 +21754,14 @@ "deprecationReason": null }, { - "name": "referenceBuild", - "description": "The reference build for the genomic coordinates of this Variant.", + "name": "referenceBases", + "description": "Reference bases for this variant", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "NullableReferenceBuildTypeInput", + "name": "NullableStringInput", "ofType": null } }, @@ -21865,30 +21770,41 @@ "deprecationReason": null }, { - "name": "ensemblVersion", - "description": "The Ensembl database version.", + "name": "variantBases", + "description": "Variant bases for this variant", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "NullableIntInput", + "name": "NullableStringInput", "ofType": null } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "GeneVariantFields", + "description": "Fields on a GeneVariant that curators may propose revisions to.", + "fields": null, + "inputFields": [ { - "name": "secondaryCoordinates", - "description": "In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null.", + "name": "name", + "description": "The Variant's name.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "CoordinateInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -21897,14 +21813,62 @@ "deprecationReason": null }, { - "name": "primaryCoordinates", - "description": "The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner.", + "name": "aliases", + "description": "List of aliases or alternate names for the Variant.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hgvsDescriptions", + "description": "List of HGVS descriptions for the Variant.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "clinvarIds", + "description": "List of ClinVar IDs for the Variant.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "CoordinateInput", + "name": "ClinvarInput", "ofType": null } }, @@ -21913,15 +21877,23 @@ "deprecationReason": null }, { - "name": "featureId", - "description": "The ID of the Feature this Variant corresponds to.", + "name": "variantTypeIds", + "description": "List of IDs for the variant types for this Variant", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } } }, "defaultValue": null, @@ -21929,14 +21901,14 @@ "deprecationReason": null }, { - "name": "referenceBases", - "description": "Reference bases for this variant", + "name": "coordinates", + "description": "The genomic coordinates for this Variant.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "NullableStringInput", + "name": "GeneVariantCoordinateInput", "ofType": null } }, @@ -21945,14 +21917,14 @@ "deprecationReason": null }, { - "name": "variantBases", - "description": "Variant bases for this variant", + "name": "featureId", + "description": "The ID of the Feature this Variant corresponds to.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableStringInput", + "kind": "SCALAR", + "name": "Int", "ofType": null } }, @@ -29574,41 +29546,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "INPUT_OBJECT", - "name": "NullableReferenceBuildTypeInput", - "description": "An input object that represents a field value that can be \"unset\" or changed to null.\nTo change the field's value to null, pass unset as true, otherwise pass in the desired value as value.\nThis is to work around two issues with the GraphQL spec: lack of support for unions in input types\nand the inability to have an input object argument be both required _and_ nullable at the same time.", - "fields": null, - "inputFields": [ - { - "name": "unset", - "description": "Set to true if you wish to set the field's value to null.", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "value", - "description": "The desired value for the field. Mutually exclusive with unset.", - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "NullableStringInput", diff --git a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql index deecef86a..2ae626d2a 100644 --- a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql +++ b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql @@ -85,22 +85,9 @@ fragment GeneVariantSummaryFields on GeneVariant { maneSelectTranscript hgvsDescriptions clinvarIds - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases myVariantInfo { ...MyVariantInfoFields } diff --git a/server/app/graphql/types/entities/gene_coordinate_type.rb b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb similarity index 88% rename from server/app/graphql/types/entities/gene_coordinate_type.rb rename to server/app/graphql/types/entities/gene_variant_coordinate_type.rb index d4f55d004..504af783d 100644 --- a/server/app/graphql/types/entities/gene_coordinate_type.rb +++ b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb @@ -1,5 +1,5 @@ module Types::Entities - class GeneCoordinateType < Types::BaseObject + class GeneVariantCoordinateType < Types::BaseObject field :representative_transcript, String, null: true field :chromosome, String, null: true field :start, Int, null: true diff --git a/server/app/graphql/types/revisions/coordinate_input_type.rb b/server/app/graphql/types/revisions/coordinate_input_type.rb deleted file mode 100644 index 2ea33eb91..000000000 --- a/server/app/graphql/types/revisions/coordinate_input_type.rb +++ /dev/null @@ -1,12 +0,0 @@ -module Types::Revisions - class CoordinateInputType < Types::BaseInputObject - argument :representative_transcript, String, required: false - argument :chromosome, String, required: false, - validates: { inclusion: { allow_null: true, in: [ - '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', - '14', '15', '16', '17', '18', '19', '20', '21', '22', 'X', 'Y', 'MT'] - }} - argument :start, Int, required: false - argument :stop, Int, required: false - end -end diff --git a/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb new file mode 100644 index 000000000..e0279ccac --- /dev/null +++ b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb @@ -0,0 +1,20 @@ +module Types::Revisions + class GeneVariantCoordinateInputType < Types::BaseInputObject + argument :representative_transcript, String, required: false + argument :chromosome, String, required: false, + validates: { inclusion: { allow_null: true, in: [ + '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', + '14', '15', '16', '17', '18', '19', '20', '21', '22', 'X', 'Y', 'MT'] + }} + argument :start, Int, required: false + argument :stop, Int, required: false + argument :reference_build, Types::ReferenceBuildType, required: true, + description: 'The reference build for the genomic coordinates of this Variant.' + argument :ensembl_version, GraphQL::Types::Int, required: true, + description: 'The Ensembl database version.' + argument :reference_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, + description: 'Reference bases for this variant' + argument :variant_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, + description: 'Variant bases for this variant' + end +end diff --git a/server/app/graphql/types/revisions/gene_variant_fields.rb b/server/app/graphql/types/revisions/gene_variant_fields.rb index 221254f0b..56dd7cd0a 100644 --- a/server/app/graphql/types/revisions/gene_variant_fields.rb +++ b/server/app/graphql/types/revisions/gene_variant_fields.rb @@ -11,20 +11,10 @@ class GeneVariantFields < Types::BaseInputObject description: 'List of ClinVar IDs for the Variant.' argument :variant_type_ids, [Int], required: true, description: 'List of IDs for the variant types for this Variant' - argument :reference_build, Types::NullableValueInputType.for(Types::ReferenceBuildType), required: true, - description: 'The reference build for the genomic coordinates of this Variant.' - argument :ensembl_version, Types::NullableValueInputType.for(GraphQL::Types::Int), required: true, - description: 'The Ensembl database version.' - argument :secondary_coordinates, Types::Revisions::CoordinateInputType, required: true, - description: "In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null." - argument :primary_coordinates, Types::Revisions::CoordinateInputType, required: true, - description: "The primary coordinates for this Variant. In the case of Fusions this will be the coordinates of the 5' partner." + argument :coordinates, Types::Revisions::GeneVariantCoordinateInputType, required: true, + description: "The genomic coordinates for this Variant." argument :feature_id, Int, required: true, description: 'The ID of the Feature this Variant corresponds to.' - argument :reference_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, - description: 'Reference bases for this variant' - argument :variant_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, - description: 'Variant bases for this variant' end end diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index ea87a1030..1709ea397 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,7 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :coordinates, Types::Entities::GeneCoordinateType, null: true + field :coordinates, Types::Entities::GeneVariantCoordinateType, null: true field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false diff --git a/server/app/models/activities/suggest_revision_set.rb b/server/app/models/activities/suggest_revision_set.rb index e009e176a..a2f1986ab 100644 --- a/server/app/models/activities/suggest_revision_set.rb +++ b/server/app/models/activities/suggest_revision_set.rb @@ -1,4 +1,6 @@ module Activities + RevisedObjectPair = Data.define(:existing_obj, :updated_obj) + class SuggestRevisionSet < Base attr_reader :revision_set, :revisions, :revision_results, :existing_obj, :updated_obj diff --git a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb index 1412cb537..6fc64ef9d 100644 --- a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb +++ b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb @@ -1,15 +1,15 @@ class AddVariantCoordinateTable < ActiveRecord::Migration[7.1] def change create_table :variant_coordinates do |t| - t.text :chromosome, index: true, null: false - t.bigint :start, index: true, null: false - t.bigint :stop, index: true, null: false + t.text :chromosome, index: true, null: true + t.bigint :start, index: true, null: true + t.bigint :stop, index: true, null: true t.text :reference_bases, null: true t.text :variant_bases, null: true t.integer :exon_boundary, null: true t.integer :exon_offset, null: true t.integer :ensembl_version, null: true - t.text :representative_transcript, index: true, null: false + t.text :representative_transcript, index: true, null: true t.integer :reference_build, null: false, index: true t.references :variant, null: false, index: true t.text :coordinate_type, null: false diff --git a/server/db/schema.rb b/server/db/schema.rb index a924d8fdf..a80bf70da 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -863,15 +863,15 @@ end create_table "variant_coordinates", force: :cascade do |t| - t.text "chromosome", null: false - t.bigint "start", null: false - t.bigint "stop", null: false + t.text "chromosome" + t.bigint "start" + t.bigint "stop" t.text "reference_bases" t.text "variant_bases" t.integer "exon_boundary" t.integer "exon_offset" t.integer "ensembl_version" - t.text "representative_transcript", null: false + t.text "representative_transcript" t.integer "reference_build", null: false t.bigint "variant_id", null: false t.text "coordinate_type", null: false From 4128418521354fecf7803dda00fce8fffff75b52 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Fri, 29 Mar 2024 12:39:07 -0500 Subject: [PATCH 06/56] get coordinate display and form model working with new schema --- .../empty-revisable.component.html | 22 +- .../empty-revisable.component.ts | 1 + .../coordinates-card.component.html | 194 ++++++++++-------- .../coordinates-card.module.ts | 3 + .../gene-variant-revise.form.config.ts | 76 +------ .../forms/models/gene-variant-fields.model.ts | 1 - .../forms/models/gene-variant-revise.model.ts | 4 - .../utilities/gene-variant-to-model-fields.ts | 17 +- .../input-formatters/variant-revise.ts | 51 +++-- client/src/app/generated/civic.apollo.ts | 26 +-- client/src/app/generated/server.model.graphql | 6 +- client/src/app/generated/server.schema.json | 30 ++- .../gene_variant_coordinate_input_type.rb | 4 +- .../types/variants/gene_variant_type.rb | 2 +- ...0327150519_add_variant_coordinate_table.rb | 4 +- server/db/schema.rb | 4 +- .../fusions/backfill_gene_variant_coords.rb | 9 +- 17 files changed, 214 insertions(+), 240 deletions(-) diff --git a/client/src/app/components/shared/empty-revisable/empty-revisable.component.html b/client/src/app/components/shared/empty-revisable/empty-revisable.component.html index 0c98eb6e0..1499196be 100644 --- a/client/src/app/components/shared/empty-revisable/empty-revisable.component.html +++ b/client/src/app/components/shared/empty-revisable/empty-revisable.component.html @@ -13,9 +13,21 @@ Not specified - + @if (reviseFormPath) { + + + + } @else { + + } diff --git a/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts b/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts index fea55def8..09c9f4c8d 100644 --- a/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts +++ b/client/src/app/components/shared/empty-revisable/empty-revisable.component.ts @@ -8,6 +8,7 @@ import { Maybe } from '@app/generated/civic.apollo' }) export class CvcEmptyRevisableComponent implements OnInit { @Input() notification: Maybe + @Input() reviseFormPath: Maybe constructor() {} diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html index 0a008fa9f..100dcda72 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html @@ -1,10 +1,7 @@ @if (variant.__typename == 'GeneVariant') { + *ngTemplateOutlet="coordinateCard; context: { $implicit: variant }"> } @@ -13,101 +10,136 @@ } + + + None specified + + + - - - - - - - {{ coords.referenceBuild }} - - - - {{ coords.ensemblVersion }} - - - - - - - {{ coords.chromosome }} - + let-variant> + + + + + + + + + {{ coords.referenceBuild }} + + - - - {{ coords.start }} - + + + {{ coords.ensemblVersion }} + + + - - - {{ coords.stop }} - + + + + + {{ coords.chromosome }} + + - - + - {{ coords.referenceBases | ifEmpty: '--' }} + + {{ coords.start }} + - + - {{ coords.variantBases | ifEmpty: '--' }} + + {{ coords.stop }} + - - - - - {{ coords.representativeTranscript }} - - - -- + + + + + {{ coords.referenceBases | ifEmpty: '--' }} + + + + + + + {{ coords.variantBases | ifEmpty: '--' }} + + - - - - - - - - - + + + + {{ coords.representativeTranscript }} + + + + + + + + + + + + diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts index e2516a660..fb22843a2 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts @@ -7,6 +7,7 @@ import { CvcLinkTagModule } from '@app/components/shared/link-tag/link-tag.modul import { CvcEmptyRevisableModule } from '@app/components/shared/empty-revisable/empty-revisable.module' import { LetDirective, PushPipe } from '@ngrx/component' import { CvcPipesModule } from '@app/core/pipes/pipes.module' +import { NzTypographyModule } from 'ng-zorro-antd/typography' @NgModule({ declarations: [CvcCoordinatesCard], @@ -14,8 +15,10 @@ import { CvcPipesModule } from '@app/core/pipes/pipes.module' CommonModule, LetDirective, PushPipe, + LetDirective, NzCardModule, NzDescriptionsModule, + NzTypographyModule, CvcPipesModule, CvcLinkTagModule, CvcEmptyRevisableModule, diff --git a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts index 2eedb98dc..32ca0a939 100644 --- a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts +++ b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts @@ -123,7 +123,7 @@ const formFieldConfig: FormlyFieldConfig[] = [ wrappers: ['form-card'], props: { formCardOptions: { - title: `Primary (5') Coordinates`, + title: `Coordinates`, size: 'small', }, }, @@ -248,80 +248,6 @@ const formFieldConfig: FormlyFieldConfig[] = [ }, ], }, - { - wrappers: ['form-card'], - props: { - formCardOptions: { - title: `Secondary (3') Coordinates`, - size: 'small', - }, - }, - fieldGroup: [ - { - wrappers: ['form-row'], - props: { - formRowOptions: { - responsive: { xs: 24, md: 12, lg: 8, xxl: 6 }, - }, - }, - fieldGroup: [ - { - key: 'chromosome2', - type: 'base-select', - props: { - label: 'Chromosome', - options: Chromosomes, - description: - 'If this variant is a fusion (e.g. BCR-ABL1), specify the chromosome name, coordinates, and representative transcript for the 3-prime partner.', - }, - }, - { - key: 'start2', - type: 'base-input', - validators: { - isNumeric: { - expression: (c: AbstractControl) => - c.value ? /^\d+$/.test(c.value) : true, - message: (_: any, field: FormlyFieldConfig) => - 'Start coordinate must be numeric', - }, - }, - props: { - label: 'Start', - description: - 'Enter the left/first coordinate of this 3-prime partner fusion variant. Must be ≤ the Stop coordinate. Coordinate must be compatible with the selected reference build.', - }, - }, - { - key: 'stop2', - type: 'base-input', - validators: { - isNumeric: { - expression: (c: AbstractControl) => - c.value ? /^\d+$/.test(c.value) : true, - message: (_: any, field: FormlyFieldConfig) => - 'Stop coordinate must be numeric', - }, - }, - props: { - label: 'Stop', - description: - 'Provide the right/second coordinate of this 3-prime partner fusion variant. Must be ≥ the Start coordinate. Coordinate must be compatible with the selected reference build.', - }, - }, - { - key: 'representativeTranscript2', - type: 'base-input', - props: { - label: 'Representative Transcript', - description: - 'Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl).', - }, - }, - ], - }, - ], - }, ], }, ], diff --git a/client/src/app/forms/models/gene-variant-fields.model.ts b/client/src/app/forms/models/gene-variant-fields.model.ts index 46ba066cd..6e2c38c3c 100644 --- a/client/src/app/forms/models/gene-variant-fields.model.ts +++ b/client/src/app/forms/models/gene-variant-fields.model.ts @@ -12,7 +12,6 @@ export type GeneVariantFields = { start?: number stop?: number representativeTranscript?: string - representativeTranscript2?: string featureId?: number referenceBases?: string variantBases?: string diff --git a/client/src/app/forms/models/gene-variant-revise.model.ts b/client/src/app/forms/models/gene-variant-revise.model.ts index 3a650b383..6aa4aa367 100644 --- a/client/src/app/forms/models/gene-variant-revise.model.ts +++ b/client/src/app/forms/models/gene-variant-revise.model.ts @@ -17,10 +17,6 @@ export const geneVariantReviseFieldsDefaults: GeneVariantFields = { start: undefined, stop: undefined, representativeTranscript: undefined, - chromosome2: undefined, - start2: undefined, - stop2: undefined, - representativeTranscript2: undefined, featureId: undefined, referenceBases: undefined, variantBases: undefined, diff --git a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts index d1775098e..8af6693ef 100644 --- a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts +++ b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts @@ -17,7 +17,14 @@ export function geneVariantToModelFields( hgvsDescriptions: variant.hgvsDescriptions, clinvarIds: variant.clinvarIds, variantTypeIds: variant.variantTypes.map((vt) => vt.id), - coordinates: variant.coordinates, + referenceBuild: variant.coordinates.referenceBuild, + ensemblVersion: variant.coordinates.ensemblVersion, + chromosome: variant.coordinates.chromosome, + start: variant.coordinates.start, + stop: variant.coordinates.stop, + referenceBases: variant.coordinates.referenceBases, + variantBases: variant.coordinates.variantBases, + representativeTranscript: variant.coordinates.representativeTranscript, featureId: variant.feature.id, } } @@ -44,10 +51,10 @@ export function geneVariantFormModelToReviseInput( start: fields.start ? +fields.start : undefined, stop: fields.stop ? +fields.stop : undefined, representativeTranscript: fields.representativeTranscript, - ensemblVersion: fmt.toNullableInput( - fields.ensemblVersion ? +fields.ensemblVersion : undefined - ), - referenceBuild: fmt.toNullableInput(fields.referenceBuild), + ensemblVersion: fields.ensemblVersion + ? +fields.ensemblVersion + : undefined, + referenceBuild: fields.referenceBuild, referenceBases: fmt.toNullableString(fields.referenceBases), variantBases: fmt.toNullableString(fields.variantBases), }, diff --git a/client/src/app/forms/utilities/input-formatters/variant-revise.ts b/client/src/app/forms/utilities/input-formatters/variant-revise.ts index 3a347f89a..1f81decc1 100644 --- a/client/src/app/forms/utilities/input-formatters/variant-revise.ts +++ b/client/src/app/forms/utilities/input-formatters/variant-revise.ts @@ -3,7 +3,6 @@ import { GeneVariantCoordinate, GeneVariantCoordinateInput, Maybe, - ReferenceBuild, } from '@app/generated/civic.apollo' import * as fmt from '@app/forms/utilities/input-formatters' @@ -41,31 +40,31 @@ export function toClinvarInput( } } -export function toCoordinateInput( - coord: Maybe -): GeneVariantCoordinateInput { - if (coord) { - return { - chromosome: undefinedIfEmpty(coord.chromosome), - representativeTranscript: undefinedIfEmpty( - coord.representativeTranscript - ), - start: coord.start ? +coord.start : undefined, - stop: coord.stop ? +coord.stop : undefined, - referenceBases: fmt.toNullableString(coord.referenceBases), - variantBases: fmt.toNullableString(coord.variantBases), - referenceBuild: coord.referenceBuild - ensemblVersion: coord.ensemblVersion - } - } else { - return { - chromosome: undefined, - representativeTranscript: undefined, - start: undefined, - stop: undefined, - } - } -} +//export function toCoordinateInput( +//coord: Maybe +//): GeneVariantCoordinateInput { +//if (coord) { +//return { +//chromosome: undefinedIfEmpty(coord.chromosome), +//representativeTranscript: undefinedIfEmpty( +//coord.representativeTranscript +//), +//start: coord.start ? +coord.start : undefined, +//stop: coord.stop ? +coord.stop : undefined, +//referenceBases: fmt.toNullableString(coord.referenceBases), +//variantBases: fmt.toNullableString(coord.variantBases), +//referenceBuild: coord.referenceBuild, +//ensemblVersion: coord.ensemblVersion, +//} +//} else { +//return { +//chromosome: undefined, +//representativeTranscript: undefined, +//start: undefined, +//stop: undefined, +//} +//} +//} //export function toNullableReferenceBuildInput( //build: Maybe diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index f95e1dc9b..2eead8fda 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2580,7 +2580,7 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; - coordinates?: Maybe; + coordinates: GeneVariantCoordinate; creationActivity?: Maybe; deprecated: Scalars['Boolean']; deprecationActivity?: Maybe; @@ -2683,11 +2683,11 @@ export type GeneVariantCoordinate = { export type GeneVariantCoordinateInput = { chromosome?: InputMaybe; /** The Ensembl database version. */ - ensemblVersion: Scalars['Int']; + ensemblVersion?: InputMaybe; /** Reference bases for this variant */ referenceBases: NullableStringInput; /** The reference build for the genomic coordinates of this Variant. */ - referenceBuild: ReferenceBuild; + referenceBuild?: InputMaybe; representativeTranscript?: InputMaybe; start?: InputMaybe; stop?: InputMaybe; @@ -7442,11 +7442,11 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -7794,9 +7794,9 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; @@ -8335,9 +8335,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8349,7 +8349,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8538,11 +8538,11 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8550,7 +8550,7 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 76583c4e2..46ae0831c 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4439,7 +4439,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ sortBy: DateSort ): CommentConnection! - coordinates: GeneVariantCoordinate + coordinates: GeneVariantCoordinate! creationActivity: CreateVariantActivity deprecated: Boolean! deprecationActivity: DeprecateVariantActivity @@ -4628,7 +4628,7 @@ input GeneVariantCoordinateInput { """ The Ensembl database version. """ - ensemblVersion: Int! + ensemblVersion: Int """ Reference bases for this variant @@ -4638,7 +4638,7 @@ input GeneVariantCoordinateInput { """ The reference build for the genomic coordinates of this Variant. """ - referenceBuild: ReferenceBuild! + referenceBuild: ReferenceBuild representativeTranscript: String start: Int stop: Int diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 751fb0f6e..96a6ee6e0 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -20787,9 +20787,13 @@ "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "GeneVariantCoordinate", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GeneVariantCoordinate", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -21725,13 +21729,9 @@ "name": "referenceBuild", "description": "The reference build for the genomic coordinates of this Variant.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - } + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -21741,13 +21741,9 @@ "name": "ensemblVersion", "description": "The Ensembl database version.", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "defaultValue": null, "isDeprecated": false, diff --git a/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb index e0279ccac..2cb7fb100 100644 --- a/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb +++ b/server/app/graphql/types/revisions/gene_variant_coordinate_input_type.rb @@ -8,9 +8,9 @@ class GeneVariantCoordinateInputType < Types::BaseInputObject }} argument :start, Int, required: false argument :stop, Int, required: false - argument :reference_build, Types::ReferenceBuildType, required: true, + argument :reference_build, Types::ReferenceBuildType, required: false, description: 'The reference build for the genomic coordinates of this Variant.' - argument :ensembl_version, GraphQL::Types::Int, required: true, + argument :ensembl_version, GraphQL::Types::Int, required: false, description: 'The Ensembl database version.' argument :reference_bases, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, description: 'Reference bases for this variant' diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index 1709ea397..f761a73bc 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,7 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :coordinates, Types::Entities::GeneVariantCoordinateType, null: true + field :coordinates, Types::Entities::GeneVariantCoordinateType, null: false field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false diff --git a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb index 6fc64ef9d..76246e0d4 100644 --- a/server/db/migrate/20240327150519_add_variant_coordinate_table.rb +++ b/server/db/migrate/20240327150519_add_variant_coordinate_table.rb @@ -10,8 +10,8 @@ def change t.integer :exon_offset, null: true t.integer :ensembl_version, null: true t.text :representative_transcript, index: true, null: true - t.integer :reference_build, null: false, index: true - t.references :variant, null: false, index: true + t.integer :reference_build, null: true, index: true + t.references :variant, null: true, index: true t.text :coordinate_type, null: false t.timestamps end diff --git a/server/db/schema.rb b/server/db/schema.rb index a80bf70da..dbde32aec 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -872,8 +872,8 @@ t.integer "exon_offset" t.integer "ensembl_version" t.text "representative_transcript" - t.integer "reference_build", null: false - t.bigint "variant_id", null: false + t.integer "reference_build" + t.bigint "variant_id" t.text "coordinate_type", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false diff --git a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb index 5c5c219b6..c7498abd4 100644 --- a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb +++ b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb @@ -1,7 +1,10 @@ +# run order: 1 + Variants::GeneVariant.find_each do |variant| - next if variant.start2.present? - next if variant.variant_types.where(name: 'transcript_fusion').exists? - next unless variant.start.present? + #maybe_fusion = [ + #variant.start2.present?, + #variant.variant_types.where(name: 'transcript_fusion').exists? + #].all? coord = VariantCoordinate.create!( variant: variant, From e92ade004a0a628eb9d06713283f055f65e93efb Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Tue, 2 Apr 2024 15:05:11 -0500 Subject: [PATCH 07/56] revision suggestions working with variant coordinate model --- .../mutations/suggest_assertion_revision.rb | 5 +- .../suggest_evidence_item_revision.rb | 5 +- .../mutations/suggest_factor_revision.rb | 6 +- .../suggest_factor_variant_revision.rb | 5 +- .../mutations/suggest_gene_revision.rb | 10 +- .../suggest_gene_variant_revision.rb | 11 ++- .../suggest_molecular_profile_revision.rb | 6 +- .../suggest_variant_group_revision.rb | 5 +- .../graphql/types/interfaces/event_subject.rb | 2 + server/app/models/actions/suggest_revision.rb | 15 +-- .../models/actions/suggest_revision_set.rb | 97 ++++++++++--------- .../models/activities/revised_object_pair.rb | 3 + .../models/activities/suggest_revision_set.rb | 18 ++-- .../coordinate_input_adaptor.rb | 21 ++++ .../gene_variant_input_adaptor.rb | 12 --- server/app/models/variant_coordinate.rb | 15 +++ server/app/models/variants/gene_variant.rb | 16 +-- 17 files changed, 140 insertions(+), 112 deletions(-) create mode 100644 server/app/models/activities/revised_object_pair.rb create mode 100644 server/app/models/input_adaptors/coordinate_input_adaptor.rb diff --git a/server/app/graphql/mutations/suggest_assertion_revision.rb b/server/app/graphql/mutations/suggest_assertion_revision.rb index 4ced1bc2c..40688a9e8 100644 --- a/server/app/graphql/mutations/suggest_assertion_revision.rb +++ b/server/app/graphql/mutations/suggest_assertion_revision.rb @@ -56,9 +56,10 @@ def authorized?(organization_id: nil, **kwargs) def resolve(fields:, id:, organization_id: nil, comment:) updated_assertion = InputAdaptors::AssertionInputAdaptor.new(assertion_input_object: fields).perform + revised_objs = Activities::RevisedObjectPair.new(existing_obj: assertion, updated_obj: updated_assertion) cmd = Activities::SuggestRevisionSet.new( - existing_obj: assertion, - updated_obj: updated_assertion, + revised_objects: revised_objs, + subject: assertion, originating_user: context[:current_user], organization_id: organization_id, note: comment diff --git a/server/app/graphql/mutations/suggest_evidence_item_revision.rb b/server/app/graphql/mutations/suggest_evidence_item_revision.rb index f56350361..87ef39ff5 100644 --- a/server/app/graphql/mutations/suggest_evidence_item_revision.rb +++ b/server/app/graphql/mutations/suggest_evidence_item_revision.rb @@ -55,9 +55,10 @@ def authorized?(organization_id: nil, **kwargs) def resolve(fields:, id:, organization_id: nil, comment:) updated_evidence = InputAdaptors::EvidenceItemInputAdaptor.new(evidence_input_object: fields).perform + revised_objs = Activities::RevisedObjectPair.new(existing_obj: evidence_item, updated_obj: updated_evidence) cmd = Activities::SuggestRevisionSet.new( - existing_obj: evidence_item, - updated_obj: updated_evidence, + revised_objects: revised_objs, + subject: evidence_item, originating_user: context[:current_user], organization_id: organization_id, note: comment diff --git a/server/app/graphql/mutations/suggest_factor_revision.rb b/server/app/graphql/mutations/suggest_factor_revision.rb index 867965de1..4bbb89749 100644 --- a/server/app/graphql/mutations/suggest_factor_revision.rb +++ b/server/app/graphql/mutations/suggest_factor_revision.rb @@ -56,9 +56,11 @@ def authorized?(organization_id: nil, **kwargs) def resolve(fields:, id:, organization_id: nil, comment:) updated_factor = InputAdaptors::FactorInputAdaptor.new(factor_input_object: fields).perform + revised_objs = Activities::RevisedObjectPair.new(existing_obj: factor, updated_obj: updated_factor) + cmd = Activities::SuggestRevisionSet.new( - existing_obj: factor, - updated_obj: updated_factor, + revised_objects: revised_objs, + subject: factor.feature, originating_user: context[:current_user], organization_id: organization_id, note: comment diff --git a/server/app/graphql/mutations/suggest_factor_variant_revision.rb b/server/app/graphql/mutations/suggest_factor_variant_revision.rb index 36c09c7b7..c58e05fe4 100644 --- a/server/app/graphql/mutations/suggest_factor_variant_revision.rb +++ b/server/app/graphql/mutations/suggest_factor_variant_revision.rb @@ -67,10 +67,11 @@ def authorized?(organization_id: nil, **kwargs) def resolve(fields:, id:, organization_id: nil, comment: nil) updated_variant = InputAdaptors::FactorVariantInputAdaptor.new(variant_input_object: fields).perform updated_variant.single_variant_molecular_profile_id = variant.single_variant_molecular_profile_id + revised_objs = Activities::RevisedObjectPair.new(existing_obj: variant, updated_obj: updated_variant) cmd = Activities::SuggestRevisionSet.new( - existing_obj: variant, - updated_obj: updated_variant, + revised_objects: revised_objs, + subject: variant, originating_user: context[:current_user], organization_id: organization_id, note: comment diff --git a/server/app/graphql/mutations/suggest_gene_revision.rb b/server/app/graphql/mutations/suggest_gene_revision.rb index 1830ffadb..47b8f9207 100644 --- a/server/app/graphql/mutations/suggest_gene_revision.rb +++ b/server/app/graphql/mutations/suggest_gene_revision.rb @@ -56,9 +56,11 @@ def authorized?(organization_id: nil, **kwargs) def resolve(fields:, id:, organization_id: nil, comment:) updated_gene = InputAdaptors::GeneInputAdaptor.new(gene_input_object: fields).perform + revised_objs = Activities::RevisedObjectPair.new(existing_obj: gene, updated_obj: updated_gene) + cmd = Activities::SuggestRevisionSet.new( - existing_obj: gene, - updated_obj: updated_gene, + revised_objects: revised_objs, + subject: gene.feature, originating_user: context[:current_user], organization_id: organization_id, note: comment @@ -76,7 +78,3 @@ def resolve(fields:, id:, organization_id: nil, comment:) end end - - - - diff --git a/server/app/graphql/mutations/suggest_gene_variant_revision.rb b/server/app/graphql/mutations/suggest_gene_variant_revision.rb index b51e26b7e..37fb9d36b 100644 --- a/server/app/graphql/mutations/suggest_gene_variant_revision.rb +++ b/server/app/graphql/mutations/suggest_gene_variant_revision.rb @@ -67,10 +67,17 @@ def authorized?(organization_id: nil, **kwargs) def resolve(fields:, id:, organization_id: nil, comment: nil) updated_variant = InputAdaptors::GeneVariantInputAdaptor.new(variant_input_object: fields).perform updated_variant.single_variant_molecular_profile_id = variant.single_variant_molecular_profile_id + variant_revisions_obj = Activities::RevisedObjectPair.new(existing_obj: variant, updated_obj: updated_variant) + updated_coordinates = InputAdaptors::CoordinateInputAdaptor.new(coordinate_input_object: fields.coordinates).perform + updated_coordinates.variant_id = variant.id + updated_coordinates.coordinate_type = 'Gene Variant Coordinate' + coordinate_revisions_obj = Activities::RevisedObjectPair.new(existing_obj: variant.coordinates, updated_obj: updated_coordinates) + + #set variant id? cmd = Activities::SuggestRevisionSet.new( - existing_obj: variant, - updated_obj: updated_variant, + revised_objects: [variant_revisions_obj, coordinate_revisions_obj], + subject: variant, originating_user: context[:current_user], organization_id: organization_id, note: comment diff --git a/server/app/graphql/mutations/suggest_molecular_profile_revision.rb b/server/app/graphql/mutations/suggest_molecular_profile_revision.rb index a8629d124..12936d115 100644 --- a/server/app/graphql/mutations/suggest_molecular_profile_revision.rb +++ b/server/app/graphql/mutations/suggest_molecular_profile_revision.rb @@ -54,9 +54,11 @@ def authorized?(organization_id: nil, **kwargs) def resolve(fields:, id:, organization_id: nil, comment:) updated_mp = InputAdaptors::MolecularProfileInputAdaptor.new(mp_input_object: fields, existing_name: mp.name).perform + revised_objs = Activities::RevisedObjectPair.new(existing_obj: mp, updated_obj: updated_mp) + cmd = Activities::SuggestRevisionSet.new( - existing_obj: mp, - updated_obj: updated_mp, + revised_objects: revised_objs, + subject: mp, originating_user: context[:current_user], organization_id: organization_id, note: comment diff --git a/server/app/graphql/mutations/suggest_variant_group_revision.rb b/server/app/graphql/mutations/suggest_variant_group_revision.rb index ff454a875..c411a5674 100644 --- a/server/app/graphql/mutations/suggest_variant_group_revision.rb +++ b/server/app/graphql/mutations/suggest_variant_group_revision.rb @@ -65,10 +65,11 @@ def resolve(fields:, id:, organization_id: nil, comment:) source_ids: fields.source_ids, variant_ids: fields.variant_ids ) + revised_objs = Activities::RevisedObjectPair.new(existing_obj: variant_group, updated_obj: updated_variant_group) cmd = Activities::SuggestRevisionSet.new( - existing_obj: variant_group, - updated_obj: updated_variant_group, + revised_objects: revised_objs, + subject: variant_group, originating_user: context[:current_user], organization_id: organization_id, note: comment diff --git a/server/app/graphql/types/interfaces/event_subject.rb b/server/app/graphql/types/interfaces/event_subject.rb index 0d5d10fb8..14aa8c164 100644 --- a/server/app/graphql/types/interfaces/event_subject.rb +++ b/server/app/graphql/types/interfaces/event_subject.rb @@ -19,6 +19,8 @@ def resolve_type(object, context) Types::Variants::GeneVariantType when Variants::FactorVariant Types::Variants::FactorVariantType + when VariantCoordinate + Types::Entities::GeneVariantCoordinateType when EvidenceItem Types::Entities::EvidenceItemType when Assertion diff --git a/server/app/models/actions/suggest_revision.rb b/server/app/models/actions/suggest_revision.rb index db56d16cb..ae4713ac9 100644 --- a/server/app/models/actions/suggest_revision.rb +++ b/server/app/models/actions/suggest_revision.rb @@ -2,14 +2,15 @@ class Actions::SuggestRevision include Actions::Transactional include Actions::WithOriginatingOrganization - attr_reader :subject, + attr_reader :revision_subject, :field_name, :current_value, :suggested_value, :originating_user, :organization_id, :revision, :revision_set_id, - :revisionset_id + :revisionset_id, :event_subject - def initialize(subject:, field_name:, current_value:, suggested_value:, originating_user:, organization_id:, revisionset_id:, revision_set_id:) - @subject = subject + def initialize(revision_subject:, event_subject:, field_name:, current_value:, suggested_value:, originating_user:, organization_id:, revisionset_id:, revision_set_id:) + @revision_subject = revision_subject + @event_subject = event_subject @field_name = field_name @current_value = current_value @suggested_value = suggested_value @@ -22,7 +23,7 @@ def initialize(subject:, field_name:, current_value:, suggested_value:, originat def execute possible_existing_revisions = Revision.where( - subject: subject, + subject: revision_subject, field_name: field_name, status: 'new' ) @@ -48,7 +49,7 @@ def create_revision @revision = Revision.create!( current_value: current_value, suggested_value: suggested_value, - subject: subject, + subject: revision_subject, field_name: field_name, status: 'new', revisionset_id: revisionset_id, @@ -60,7 +61,7 @@ def create_event events << Event.new( action: 'revision suggested', originating_user: originating_user, - subject: subject, + subject: event_subject, organization: resolve_organization(originating_user, organization_id), originating_object: revision ) diff --git a/server/app/models/actions/suggest_revision_set.rb b/server/app/models/actions/suggest_revision_set.rb index ff9dd29e5..fca460723 100644 --- a/server/app/models/actions/suggest_revision_set.rb +++ b/server/app/models/actions/suggest_revision_set.rb @@ -1,11 +1,11 @@ class Actions::SuggestRevisionSet include Actions::Transactional - attr_reader :existing_obj, :updated_obj, :originating_user, :organization_id, :revision_results, :revisions, :revision_set, :revisionset_id + attr_reader :revised_objects, :originating_user, :organization_id, :revision_results, :revisions, :revision_set, :revisionset_id, :event_subject - def initialize(existing_obj:, updated_obj:, originating_user:, organization_id:) - @existing_obj = existing_obj - @updated_obj = updated_obj + def initialize(revised_objects:, originating_user:, organization_id:, event_subject:) + @revised_objects = Array(revised_objects) + @event_subject = event_subject @originating_user = originating_user @organization_id = organization_id @revisionset_id = SecureRandom.uuid @@ -14,59 +14,62 @@ def initialize(existing_obj:, updated_obj:, originating_user:, organization_id:) end def execute - updated_obj.in_revision_validation_context = true - updated_obj.revision_target_id = existing_obj.id - updated_obj.validate! - + @revision_set = RevisionSet.create!() any_changes = false - @revision_set = RevisionSet.create!() + revised_objects.each do |ro| + existing_obj = ro.existing_obj + updated_obj = ro.updated_obj + updated_obj.in_revision_validation_context = true + updated_obj.revision_target_id = existing_obj.id + updated_obj.validate! - existing_obj.editable_fields.each do |field_name| + existing_obj.editable_fields.each do |field_name| - current_value = existing_obj.send(field_name) - suggested_value = updated_obj.send(field_name) + current_value = existing_obj.send(field_name) + suggested_value = updated_obj.send(field_name) - change_present = if current_value.is_a?(Array) - current_value.sort != suggested_value.sort - else - current_value != suggested_value - end + change_present = if current_value.is_a?(Array) + current_value.sort != suggested_value.sort + else + current_value != suggested_value + end - next unless change_present - any_changes = true + next unless change_present + any_changes = true - subject = if existing_obj.kind_of?(IsFeatureInstance) - existing_obj.feature - else - existing_obj - end + revision_subject = if existing_obj.kind_of?(IsFeatureInstance) + existing_obj.feature + else + existing_obj + end - cmd = Actions::SuggestRevision.new( - subject: subject, - field_name: field_name, - current_value: current_value, - suggested_value: suggested_value, - originating_user: originating_user, - organization_id: organization_id, - revisionset_id: revisionset_id, - revision_set_id: revision_set.id - ) - res = cmd.perform + cmd = Actions::SuggestRevision.new( + revision_subject: revision_subject, + event_subject: event_subject, + field_name: field_name, + current_value: current_value, + suggested_value: suggested_value, + originating_user: originating_user, + organization_id: organization_id, + revisionset_id: revisionset_id, + revision_set_id: revision_set.id + ) + res = cmd.perform - if res.errors.any? - raise StandardError.new(res.errors.join(',')) - else - revisions << res.revision - revision_results << { - id: res.revision.id, - field_name: res.revision.field_name, - newly_created: res.revision_created?, - revision_set_id: revision_set.id, - } - res.events.each { |e| events << e } - + if res.errors.any? + raise StandardError.new(res.errors.join(',')) + else + revisions << res.revision + revision_results << { + id: res.revision.id, + field_name: res.revision.field_name, + newly_created: res.revision_created?, + revision_set_id: revision_set.id, + } + res.events.each { |e| events << e } + end end end diff --git a/server/app/models/activities/revised_object_pair.rb b/server/app/models/activities/revised_object_pair.rb new file mode 100644 index 000000000..cab86e67b --- /dev/null +++ b/server/app/models/activities/revised_object_pair.rb @@ -0,0 +1,3 @@ +module Activities + RevisedObjectPair = Data.define(:existing_obj, :updated_obj) +end diff --git a/server/app/models/activities/suggest_revision_set.rb b/server/app/models/activities/suggest_revision_set.rb index a2f1986ab..a15bc9c0a 100644 --- a/server/app/models/activities/suggest_revision_set.rb +++ b/server/app/models/activities/suggest_revision_set.rb @@ -1,22 +1,16 @@ module Activities - RevisedObjectPair = Data.define(:existing_obj, :updated_obj) class SuggestRevisionSet < Base - attr_reader :revision_set, :revisions, :revision_results, :existing_obj, :updated_obj + attr_reader :revision_set, :revisions, :revision_results, :revised_objects, :subject - def initialize(originating_user:, existing_obj:, updated_obj:, organization_id: nil, note:) + def initialize(originating_user:, revised_objects:, subject:, organization_id: nil, note:) super(organization_id: organization_id, user: originating_user, note: note) - @existing_obj = existing_obj - @updated_obj = updated_obj + @revised_objects = revised_objects + @subject = subject end private def create_activity - subject = if existing_obj.kind_of?(IsFeatureInstance) - existing_obj.feature - else - existing_obj - end @activity = SuggestRevisionSetActivity.create!( subject: subject, user: user, @@ -27,8 +21,8 @@ def create_activity def call_actions cmd = Actions::SuggestRevisionSet.new( - existing_obj: existing_obj, - updated_obj: updated_obj, + revised_objects: revised_objects, + event_subject: subject, originating_user: user, organization_id: organization&.id ) diff --git a/server/app/models/input_adaptors/coordinate_input_adaptor.rb b/server/app/models/input_adaptors/coordinate_input_adaptor.rb new file mode 100644 index 000000000..c251c4e1f --- /dev/null +++ b/server/app/models/input_adaptors/coordinate_input_adaptor.rb @@ -0,0 +1,21 @@ +#Conversion from a GraphQL Coordinate input object to VariantCoordinate model type +class InputAdaptors::CoordinateInputAdaptor + attr_reader :input + + def initialize(coordinate_input_object: ) + @input = coordinate_input_object + end + + def perform + VariantCoordinate.new( + reference_build: input.reference_build, + ensembl_version: input.ensembl_version, + representative_transcript: input.representative_transcript, + chromosome: input.chromosome, + start: input.start, + stop: input.stop, + reference_bases: input.reference_bases, + variant_bases: input.variant_bases, + ) + end +end diff --git a/server/app/models/input_adaptors/gene_variant_input_adaptor.rb b/server/app/models/input_adaptors/gene_variant_input_adaptor.rb index de91dacfc..b6be6bb1e 100644 --- a/server/app/models/input_adaptors/gene_variant_input_adaptor.rb +++ b/server/app/models/input_adaptors/gene_variant_input_adaptor.rb @@ -11,21 +11,9 @@ def perform feature_id: input.feature_id, name: input.name, variant_type_ids: input.variant_type_ids, - reference_build: input.reference_build, - ensembl_version: input.ensembl_version, variant_alias_ids: get_alias_ids(), hgvs_description_ids: get_hgvs_ids(), clinvar_entry_ids: get_clinvar_ids(), - representative_transcript: input.primary_coordinates.representative_transcript, - chromosome: input.primary_coordinates.chromosome, - start: input.primary_coordinates.start, - stop: input.primary_coordinates.stop, - reference_bases: input.reference_bases, - variant_bases: input.variant_bases, - representative_transcript2: input.secondary_coordinates.representative_transcript, - chromosome2: input.secondary_coordinates.chromosome, - start2: input.secondary_coordinates.start, - stop2: input.secondary_coordinates.stop, ) end diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb index d286d87c6..c5d975eb8 100644 --- a/server/app/models/variant_coordinate.rb +++ b/server/app/models/variant_coordinate.rb @@ -1,4 +1,6 @@ class VariantCoordinate < ApplicationRecord + include Moderated + belongs_to :variant, touch: true enum reference_build: [:GRCh38, :GRCh37, :NCBI36] @@ -23,4 +25,17 @@ class VariantCoordinate < ApplicationRecord validates_with CoordinateValidator + def editable_fields + [ + :reference_build, + :ensembl_version, + :chromosome, + :start, + :stop, + :reference_bases, + :variant_bases, + :representative_transcript, + ] + end + end diff --git a/server/app/models/variants/gene_variant.rb b/server/app/models/variants/gene_variant.rb index 153e4f7d8..e4f2b877e 100644 --- a/server/app/models/variants/gene_variant.rb +++ b/server/app/models/variants/gene_variant.rb @@ -1,8 +1,8 @@ module Variants class GeneVariant < Variant belongs_to :gene, class_name: 'Features::Gene', optional: true - - has_one :variant_coordinate, + + has_one :coordinates, ->() { where(coordinate_type: 'Gene Variant Coordinate') }, foreign_key: 'variant_id', class_name: 'VariantCoordinate' @@ -17,18 +17,6 @@ def unique_editable_fields [ :hgvs_description_ids, :clinvar_entry_ids, - :reference_build, - :ensembl_version, - :chromosome, - :start, - :stop, - :reference_bases, - :variant_bases, - :representative_transcript, - :chromosome2, - :start2, - :stop2, - :representative_transcript2, ] end From 597ad2e8c595de85843ed0bd85fa14831123f27d Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 17 Apr 2024 09:35:39 -0500 Subject: [PATCH 08/56] wip: pull back multiple coordinate types for revisions --- .../revisions-list-and-filter.component.ts | 51 +++++++++---------- client/src/app/generated/civic.apollo.ts | 7 +++ client/src/app/generated/server.model.graphql | 12 +++++ client/src/app/generated/server.schema.json | 29 +++++++++++ .../assertions-revisions.page.html | 3 +- .../assertions-revisions.page.ts | 11 ++-- .../evidence-revisions.page.html | 3 +- .../evidence-revisions.page.ts | 11 ++-- .../features-revisions.page.html | 3 +- .../features-revisions.page.ts | 11 ++-- .../molecular-profiles-revisions.page.html | 3 +- .../molecular-profiles-revisions.page.ts | 11 ++-- .../variant-groups-revisions.page.html | 3 +- .../variant-groups-revisions.page.ts | 13 +++-- .../variants-revisions.module.ts | 3 +- .../variants-revisions.page.html | 17 +++++-- .../variants-revisions.page.ts | 21 ++++++-- .../types/revisions/moderated_input.rb | 14 ++++- .../variant_coordinate_types_type.rb | 8 +++ .../types/variants/gene_variant_type.rb | 2 +- server/app/models/constants.rb | 4 ++ server/app/models/variant_coordinate.rb | 4 +- 22 files changed, 165 insertions(+), 79 deletions(-) create mode 100644 server/app/graphql/types/revisions/variant_coordinate_types_type.rb diff --git a/client/src/app/components/revisions/revisions-list-and-filter/revisions-list-and-filter.component.ts b/client/src/app/components/revisions/revisions-list-and-filter/revisions-list-and-filter.component.ts index 4310e3a35..37d7e482f 100644 --- a/client/src/app/components/revisions/revisions-list-and-filter/revisions-list-and-filter.component.ts +++ b/client/src/app/components/revisions/revisions-list-and-filter/revisions-list-and-filter.component.ts @@ -1,9 +1,4 @@ -import { - Component, - Input, - OnDestroy, - OnInit, -} from '@angular/core' +import { Component, Input, OnDestroy, OnInit } from '@angular/core' import { ActivatedRoute } from '@angular/router' import { RevisionsGQL, @@ -26,6 +21,7 @@ import { Revision, FeatureDetailGQL, FeaturesSummaryGQL, + ModeratedInput, } from '@app/generated/civic.apollo' import { Observable, Subscription } from 'rxjs' import { QueryRef } from 'apollo-angular' @@ -57,8 +53,7 @@ export interface SelectableRevisionStatus { styleUrls: ['./revisions-list-and-filter.component.less'], }) export class RevisionsListAndFilterComponent implements OnDestroy, OnInit { - @Input() id!: number - @Input() entityType!: ModeratedEntities + @Input() moderated!: ModeratedInput revisions$?: Observable pageInfo$?: Observable @@ -111,7 +106,7 @@ export class RevisionsListAndFilterComponent implements OnDestroy, OnInit { this.queryParamsSub = this.route.queryParams.subscribe((queryParams) => { let input: RevisionsQueryVariables = { first: this.defaultPageSize, - subject: { id: this.id, entityType: this.entityType }, + subject: this.moderated, status: RevisionStatus.New, } @@ -170,65 +165,65 @@ export class RevisionsListAndFilterComponent implements OnDestroy, OnInit { }) }) - switch (this.entityType) { + switch (this.moderated.entityType) { case ModeratedEntities.Variant: this.refetchQueries.push({ query: this.variantDetailGql.document, - variables: { variantId: this.id }, + variables: { variantId: this.moderated.id }, }) this.refetchQueries.push({ query: this.variantSummaryGql.document, - variables: { variantId: this.id }, + variables: { variantId: this.moderated.id }, }) return case ModeratedEntities.Assertion: this.refetchQueries.push({ query: this.assertionDetailGql.document, - variables: { assertionId: this.id }, + variables: { assertionId: this.moderated.id }, }) this.refetchQueries.push({ query: this.assertionSummaryGql.document, - variables: { assertionId: this.id }, + variables: { assertionId: this.moderated.id }, }) return case ModeratedEntities.EvidenceItem: this.refetchQueries.push({ query: this.evidenceDetailGql.document, - variables: { evidenceId: this.id }, + variables: { evidenceId: this.moderated.id }, }) this.refetchQueries.push({ query: this.evidenceSummaryGql.document, - variables: { evidenceId: this.id }, + variables: { evidenceId: this.moderated.id }, }) return case ModeratedEntities.Feature: this.refetchQueries.push({ query: this.featureDetailGql.document, - variables: { featureId: this.id }, + variables: { featureId: this.moderated.id }, }) this.refetchQueries.push({ query: this.featureSummaryGql.document, - variables: { featureId: this.id }, + variables: { featureId: this.moderated.id }, }) return case ModeratedEntities.VariantGroup: this.refetchQueries.push({ query: this.variantGroupDetailGql.document, - variables: { variantGroupId: this.id }, + variables: { variantGroupId: this.moderated.id }, }) this.refetchQueries.push({ query: this.variantGroupSummaryGql.document, - variables: { variantGroupId: this.id }, + variables: { variantGroupId: this.moderated.id }, }) return case ModeratedEntities.MolecularProfile: this.refetchQueries.push({ query: this.molecularProfileDetailGql.document, - variables: { molecularProfileId: this.id }, + variables: { molecularProfileId: this.moderated.id }, }) this.refetchQueries.push({ query: this.molecularProfileSummaryGql.document, - variables: { molecularProfileId: this.id }, + variables: { molecularProfileId: this.moderated.id }, }) return } @@ -241,21 +236,21 @@ export class RevisionsListAndFilterComponent implements OnDestroy, OnInit { onFieldNameSelected(field: SelectableFieldName) { this.queryRef.refetch({ - subject: { id: this.id, entityType: this.entityType }, + subject: this.moderated, fieldName: field ? field.name : undefined, }) } onRevisorSelected(user: UniqueUsers) { this.queryRef.refetch({ - subject: { id: this.id, entityType: this.entityType }, + subject: this.moderated, originatingUserId: user ? user.id : undefined, }) } onResolverSelected(user: UniqueUsers) { this.queryRef.refetch({ - subject: { id: this.id, entityType: this.entityType }, + subject: this.moderated, resolvingUserId: user ? user.id : undefined, }) } @@ -263,7 +258,7 @@ export class RevisionsListAndFilterComponent implements OnDestroy, OnInit { onStatusSelected(status: Maybe) { this.preselectedRevisionStatus = status this.queryRef.refetch({ - subject: { id: this.id, entityType: this.entityType }, + subject: this.moderated, status: status ? status.value : undefined, }) } @@ -271,7 +266,7 @@ export class RevisionsListAndFilterComponent implements OnDestroy, OnInit { onRevisionSetSelected(revisionSetId: number) { this.filteredSet = revisionSetId this.queryRef.refetch({ - subject: { id: this.id, entityType: this.entityType }, + subject: this.moderated, revisionSetId: revisionSetId ? revisionSetId : undefined, }) } @@ -279,7 +274,7 @@ export class RevisionsListAndFilterComponent implements OnDestroy, OnInit { onSetFilterClearClicked() { this.filteredSet = undefined this.queryRef.refetch({ - subject: { id: this.id, entityType: this.entityType }, + subject: this.moderated, revisionSetId: undefined, }) } diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 2eead8fda..86f56a0f7 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -3021,6 +3021,8 @@ export type ModeratedFieldDiff = ObjectFieldDiff | ScalarFieldDiff; /** Entity to moderate. */ export type ModeratedInput = { + /** If the moderated is a variant, and you want coordinate revisons, specify the type */ + coordinateType?: InputMaybe; /** Type of moderated entity. */ entityType: ModeratedEntities; /** ID of moderated entity. */ @@ -6287,6 +6289,11 @@ export type VariantConnection = { totalCount: Scalars['Int']; }; +/** Enumeration of all valid variant coordinate types */ +export enum VariantCoordinateTypes { + GeneVariantCoordinate = 'GENE_VARIANT_COORDINATE' +} + export enum VariantDeprecationReason { Duplicate = 'DUPLICATE', FeatureDeprecated = 'FEATURE_DEPRECATED', diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 46ae0831c..29df5ce23 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -5139,6 +5139,11 @@ union ModeratedFieldDiff = ObjectFieldDiff | ScalarFieldDiff Entity to moderate. """ input ModeratedInput { + """ + If the moderated is a variant, and you want coordinate revisons, specify the type + """ + coordinateType: VariantCoordinateTypes + """ Type of moderated entity. """ @@ -10431,6 +10436,13 @@ type VariantConnection { totalCount: Int! } +""" +Enumeration of all valid variant coordinate types +""" +enum VariantCoordinateTypes { + GENE_VARIANT_COORDINATE +} + enum VariantDeprecationReason { DUPLICATE FEATURE_DEPRECATED diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 96a6ee6e0..ec8aef7fb 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -24388,6 +24388,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "coordinateType", + "description": "If the moderated is a variant, and you want coordinate revisons, specify the type", + "type": { + "kind": "ENUM", + "name": "VariantCoordinateTypes", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -47337,6 +47349,23 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "VariantCoordinateTypes", + "description": "Enumeration of all valid variant coordinate types", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GENE_VARIANT_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "ENUM", "name": "VariantDeprecationReason", diff --git a/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.html b/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.html index c66b19a53..7bd8f9824 100644 --- a/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.html +++ b/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.html @@ -1,3 +1,2 @@ + [moderated]="this.subject"> diff --git a/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.ts b/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.ts index a62296262..b013c18f2 100644 --- a/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.ts +++ b/client/src/app/views/assertions/assertions-detail/assertions-revisions/assertions-revisions.page.ts @@ -1,6 +1,6 @@ import { Component, OnInit } from '@angular/core' import { ActivatedRoute } from '@angular/router' -import { ModeratedEntities } from '@app/generated/civic.apollo' +import { ModeratedEntities, ModeratedInput } from '@app/generated/civic.apollo' import { Subscription } from 'rxjs' @Component({ @@ -8,15 +8,16 @@ import { Subscription } from 'rxjs' templateUrl: './assertions-revisions.page.html', }) export class AssertionsRevisionsPage implements OnInit { - aid!: number - entityType!: ModeratedEntities + subject!: ModeratedInput routeSub: Subscription constructor(private route: ActivatedRoute) { this.routeSub = this.route.params.subscribe((params) => { - this.aid = +params.assertionId - this.entityType = ModeratedEntities['Assertion'] + this.subject = { + id: +params.assertionId, + entityType: ModeratedEntities['Assertion'], + } }) } ngOnInit(): void {} diff --git a/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.html b/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.html index 62a9163d0..7bd8f9824 100644 --- a/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.html +++ b/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.html @@ -1,3 +1,2 @@ + [moderated]="this.subject"> diff --git a/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.ts b/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.ts index 2c5a5572f..98e6b4fc5 100644 --- a/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.ts +++ b/client/src/app/views/evidence/evidence-detail/evidence-revisions/evidence-revisions.page.ts @@ -1,6 +1,6 @@ import { Component, OnDestroy } from '@angular/core' import { ActivatedRoute } from '@angular/router' -import { ModeratedEntities } from '@app/generated/civic.apollo' +import { ModeratedEntities, ModeratedInput } from '@app/generated/civic.apollo' import { Subscription } from 'rxjs' @Component({ @@ -8,15 +8,16 @@ import { Subscription } from 'rxjs' templateUrl: './evidence-revisions.page.html', }) export class EvidenceRevisionsPage implements OnDestroy { - eid!: number - entityType!: ModeratedEntities + subject!: ModeratedInput routeSub: Subscription constructor(private route: ActivatedRoute) { this.routeSub = this.route.params.subscribe((params) => { - this.eid = +params.evidenceId - this.entityType = ModeratedEntities['EvidenceItem'] + this.subject = { + id: +params.evidenceId, + entityType: ModeratedEntities['EvidenceItem'], + } }) } diff --git a/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.html b/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.html index 1062ee47f..7bd8f9824 100644 --- a/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.html +++ b/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.html @@ -1,3 +1,2 @@ + [moderated]="this.subject"> diff --git a/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.ts b/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.ts index c2d9f55ec..4f5644c05 100644 --- a/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.ts +++ b/client/src/app/views/features/features-detail/features-revisions/features-revisions.page.ts @@ -1,6 +1,6 @@ import { Component, OnDestroy } from '@angular/core' import { ActivatedRoute } from '@angular/router' -import { ModeratedEntities } from '@app/generated/civic.apollo' +import { ModeratedEntities, ModeratedInput } from '@app/generated/civic.apollo' import { Subscription } from 'rxjs' @Component({ @@ -9,15 +9,16 @@ import { Subscription } from 'rxjs' styleUrls: ['./features-revisions.page.less'], }) export class FeaturesRevisionsPage implements OnDestroy { - featureId!: number - entityType!: ModeratedEntities + subject!: ModeratedInput routeSub: Subscription constructor(private route: ActivatedRoute) { this.routeSub = this.route.params.subscribe((params) => { - this.featureId = +params.featureId - this.entityType = ModeratedEntities.Feature + this.subject = { + id: +params.featureId, + entityType: ModeratedEntities.Feature, + } }) } diff --git a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.html b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.html index a9cfe5bd9..7bd8f9824 100644 --- a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.html +++ b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.html @@ -1,3 +1,2 @@ + [moderated]="this.subject"> diff --git a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.ts b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.ts index c9d9d9d83..d0ae6a206 100644 --- a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.ts +++ b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-revisions/molecular-profiles-revisions.page.ts @@ -1,6 +1,6 @@ import { Component, OnDestroy } from '@angular/core' import { ActivatedRoute } from '@angular/router' -import { ModeratedEntities } from '@app/generated/civic.apollo' +import { ModeratedEntities, ModeratedInput } from '@app/generated/civic.apollo' import { Subscription } from 'rxjs' @Component({ @@ -8,15 +8,16 @@ import { Subscription } from 'rxjs' templateUrl: './molecular-profiles-revisions.page.html', }) export class MolecularProfilesRevisionsPage implements OnDestroy { - molecularProfileId!: number - entityType!: ModeratedEntities + subject!: ModeratedInput routeSub: Subscription constructor(private route: ActivatedRoute) { this.routeSub = this.route.params.subscribe((params) => { - this.molecularProfileId = +params.molecularProfileId - this.entityType = ModeratedEntities.MolecularProfile + this.subject = { + id: +params.molecularProfileId, + entityType: ModeratedEntities.MolecularProfile, + } }) } diff --git a/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.html b/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.html index 6512bf7b1..7bd8f9824 100644 --- a/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.html +++ b/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.html @@ -1,3 +1,2 @@ + [moderated]="this.subject"> diff --git a/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.ts b/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.ts index 1efeb55d4..783ea1ff4 100644 --- a/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.ts +++ b/client/src/app/views/variant-groups/variant-groups-detail/variant-groups-revisions/variant-groups-revisions.page.ts @@ -1,8 +1,6 @@ import { Component, OnDestroy } from '@angular/core' import { ActivatedRoute } from '@angular/router' -import { - ModeratedEntities, -} from '@app/generated/civic.apollo' +import { ModeratedEntities, ModeratedInput } from '@app/generated/civic.apollo' import { Subscription } from 'rxjs' @Component({ @@ -11,15 +9,16 @@ import { Subscription } from 'rxjs' styleUrls: ['./variant-groups-revisions.page.less'], }) export class VariantGroupsRevisionsPage implements OnDestroy { - vgId!: number - entityType!: ModeratedEntities + subject!: ModeratedInput routeSub: Subscription constructor(private route: ActivatedRoute) { this.routeSub = this.route.params.subscribe((params) => { - this.vgId = +params.variantGroupId - this.entityType = ModeratedEntities['VariantGroup'] + this.subject = { + id: +params.variantGroupId, + entityType: ModeratedEntities['VariantGroup'], + } }) } diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts index c4205ff9c..5723bf8fb 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts @@ -2,10 +2,11 @@ import { NgModule } from '@angular/core' import { CommonModule } from '@angular/common' import { VariantsRevisionsPage } from './variants-revisions.page' import { CvcRevisionsListAndFilterModule } from '@app/components/revisions/revisions-list-and-filter/revisions-list-and-filter.module' +import { NzTabsModule } from 'ng-zorro-antd/tabs' @NgModule({ declarations: [VariantsRevisionsPage], - imports: [CommonModule, CvcRevisionsListAndFilterModule], + imports: [CommonModule, CvcRevisionsListAndFilterModule, NzTabsModule], exports: [VariantsRevisionsPage], }) export class VariantsRevisionsModule {} diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html index ef1e9d8ce..876fde795 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html @@ -1,3 +1,14 @@ - + + + + + + + + + + + diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts index 9d3a923a9..986225bf0 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts @@ -1,6 +1,10 @@ import { Component, OnDestroy } from '@angular/core' import { ActivatedRoute } from '@angular/router' -import { ModeratedEntities } from '@app/generated/civic.apollo' +import { + ModeratedEntities, + ModeratedInput, + VariantCoordinateTypes, +} from '@app/generated/civic.apollo' import { Subscription } from 'rxjs' @Component({ @@ -8,15 +12,22 @@ import { Subscription } from 'rxjs' templateUrl: './variants-revisions.page.html', }) export class VariantsRevisionsPage implements OnDestroy { - variantId!: number - entityType!: ModeratedEntities + coordinateSubject!: ModeratedInput + variantSubject!: ModeratedInput routeSub: Subscription constructor(private route: ActivatedRoute) { this.routeSub = this.route.params.subscribe((params) => { - this.variantId = +params.variantId - this.entityType = ModeratedEntities['Variant'] + this.variantSubject = { + id: +params.variantId, + entityType: ModeratedEntities['Variant'], + } + this.coordinateSubject = { + id: +params.variantId, + entityType: ModeratedEntities['Variant'], + coordinateType: VariantCoordinateTypes.GeneVariantCoordinate, + } }) } diff --git a/server/app/graphql/types/revisions/moderated_input.rb b/server/app/graphql/types/revisions/moderated_input.rb index 5a1520340..6a2a9cd8f 100644 --- a/server/app/graphql/types/revisions/moderated_input.rb +++ b/server/app/graphql/types/revisions/moderated_input.rb @@ -8,8 +8,20 @@ class ModeratedInput < Types::BaseInputObject argument :entity_type, Types::Revisions::ModeratedEntitiesType, required: true, description: 'Type of moderated entity.' + argument :coordinate_type, Types::Revisions::VariantCoordinateTypesType, required: false, + description: 'If the moderated is a variant, and you want coordinate revisons, specify the type' + def prepare - entity_type.constantize.find(id) + if coordinate_type && entity_type != "Variant" + raise GraphQL::ExecutionError.new("Coordinate Type input can only be specified when the moderated is a variant") + end + + moderated = entity_type.constantize.find(id) + if coordinate_type + moderated.variant_coordinates.where(coordinate_type: coordinate_type).first + else + moderated + end end end end diff --git a/server/app/graphql/types/revisions/variant_coordinate_types_type.rb b/server/app/graphql/types/revisions/variant_coordinate_types_type.rb new file mode 100644 index 000000000..3ecc741a2 --- /dev/null +++ b/server/app/graphql/types/revisions/variant_coordinate_types_type.rb @@ -0,0 +1,8 @@ +module Types::Revisions + class VariantCoordinateTypesType < Types::BaseEnum + description 'Enumeration of all valid variant coordinate types' + Constants::VALID_COORDINATE_TYPES.each do |ct| + value ct.upcase.gsub(" ", "_"), value: ct + end + end +end diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index f761a73bc..a6f4c22ba 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -10,7 +10,7 @@ class GeneVariantType < Types::Entities::VariantType field :open_cravat_url, String, null: true def coordinates - Loaders::AssociationLoader.for(Variants::GeneVariant, :variant_coordinate).load(object) + Loaders::AssociationLoader.for(Variants::GeneVariant, :coordinates).load(object) end def clinvar_ids diff --git a/server/app/models/constants.rb b/server/app/models/constants.rb index 45827247f..558743d0a 100644 --- a/server/app/models/constants.rb +++ b/server/app/models/constants.rb @@ -119,5 +119,9 @@ module Constants 'MolecularProfile' => 'molecular-profiles' } + VALID_COORDINATE_TYPES = [ + 'Gene Variant Coordinate' + ] + CIVICBOT_USER_ID = 385 end diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb index c5d975eb8..455500cad 100644 --- a/server/app/models/variant_coordinate.rb +++ b/server/app/models/variant_coordinate.rb @@ -17,9 +17,7 @@ class VariantCoordinate < ApplicationRecord validates :coordinate_type, presence: true validates :coordinate_type, inclusion: { - in: [ - 'Gene Variant Coordinate' - ], + in: Constants::VALID_COORDINATE_TYPES, message: "%{value} is not a valid coordinate type" } From 3ebef884d86898330040cc91ada26d3939209173 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 24 Apr 2024 18:14:55 -0500 Subject: [PATCH 09/56] query the server for variant specific coordinate subtypes and ids on revisions page --- .../src/app/generated/civic.apollo-helpers.ts | 3 +- client/src/app/generated/civic.apollo.ts | 75 ++++++++++---- client/src/app/generated/server.model.graphql | 14 +-- client/src/app/generated/server.schema.json | 51 +++++----- .../phenotypes-detail.component.ts | 5 +- .../coordinate-ids-for-variant.gql | 14 +++ .../variants-revisions.module.ts | 2 +- .../variants-revisions.page.html | 20 ++-- .../variants-revisions.page.ts | 97 +++++++++++++++---- .../entities/gene_variant_coordinate_type.rb | 1 + .../revisions/moderated_entities_type.rb | 1 + .../types/revisions/moderated_input.rb | 14 +-- .../variant_coordinate_types_type.rb | 8 -- 13 files changed, 189 insertions(+), 116 deletions(-) create mode 100644 client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql delete mode 100644 server/app/graphql/types/revisions/variant_coordinate_types_type.rb diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 9ece88af9..eebe1201a 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -1034,10 +1034,11 @@ export type GeneVariantFieldPolicy = { variantAliases?: FieldPolicy | FieldReadFunction, variantTypes?: FieldPolicy | FieldReadFunction }; -export type GeneVariantCoordinateKeySpecifier = ('chromosome' | 'ensemblVersion' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | GeneVariantCoordinateKeySpecifier)[]; +export type GeneVariantCoordinateKeySpecifier = ('chromosome' | 'ensemblVersion' | 'id' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | GeneVariantCoordinateKeySpecifier)[]; export type GeneVariantCoordinateFieldPolicy = { chromosome?: FieldPolicy | FieldReadFunction, ensemblVersion?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, referenceBases?: FieldPolicy | FieldReadFunction, referenceBuild?: FieldPolicy | FieldReadFunction, representativeTranscript?: FieldPolicy | FieldReadFunction, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 86f56a0f7..b1c9a7d7a 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2672,6 +2672,7 @@ export type GeneVariantCoordinate = { __typename: 'GeneVariantCoordinate'; chromosome?: Maybe; ensemblVersion?: Maybe; + id: Scalars['Int']; referenceBases?: Maybe; referenceBuild?: Maybe; representativeTranscript?: Maybe; @@ -3010,6 +3011,7 @@ export enum ModeratedEntities { Feature = 'FEATURE', MolecularProfile = 'MOLECULAR_PROFILE', Variant = 'VARIANT', + VariantCoordinates = 'VARIANT_COORDINATES', VariantGroup = 'VARIANT_GROUP' } @@ -3021,8 +3023,6 @@ export type ModeratedFieldDiff = ObjectFieldDiff | ScalarFieldDiff; /** Entity to moderate. */ export type ModeratedInput = { - /** If the moderated is a variant, and you want coordinate revisons, specify the type */ - coordinateType?: InputMaybe; /** Type of moderated entity. */ entityType: ModeratedEntities; /** ID of moderated entity. */ @@ -6289,11 +6289,6 @@ export type VariantConnection = { totalCount: Scalars['Int']; }; -/** Enumeration of all valid variant coordinate types */ -export enum VariantCoordinateTypes { - GeneVariantCoordinate = 'GENE_VARIANT_COORDINATE' -} - export enum VariantDeprecationReason { Duplicate = 'DUPLICATE', FeatureDeprecated = 'FEATURE_DEPRECATED', @@ -7449,11 +7444,11 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -7801,11 +7796,11 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; -export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; +export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; export type SuggestGeneVariantRevisionMutationVariables = Exact<{ input: SuggestGeneVariantRevisionInput; @@ -8342,9 +8337,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8356,7 +8351,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8540,16 +8535,31 @@ type VariantDetailFields_Variant_Fragment = { __typename: 'Variant', id: number, export type VariantDetailFieldsFragment = VariantDetailFields_FactorVariant_Fragment | VariantDetailFields_GeneVariant_Fragment | VariantDetailFields_Variant_Fragment; +export type CoordinateIdsForVariantQueryVariables = Exact<{ + variantId: Scalars['Int']; +}>; + + +export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'GeneVariant', coordinates: { __typename: 'GeneVariantCoordinate', id: number } } | { __typename: 'Variant' } | undefined }; + +type VariantCoordinateIds_FactorVariant_Fragment = { __typename: 'FactorVariant' }; + +type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates: { __typename: 'GeneVariantCoordinate', id: number } }; + +type VariantCoordinateIds_Variant_Fragment = { __typename: 'Variant' }; + +export type VariantCoordinateIdsFragment = VariantCoordinateIds_FactorVariant_Fragment | VariantCoordinateIds_GeneVariant_Fragment | VariantCoordinateIds_Variant_Fragment; + export type VariantSummaryQueryVariables = Exact<{ variantId: Scalars['Int']; }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8557,7 +8567,7 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; @@ -9705,6 +9715,7 @@ export const VariantTypeBrowseTableRowFieldsFragmentDoc = gql` `; export const CoordinateFieldsFragmentDoc = gql` fragment CoordinateFields on GeneVariantCoordinate { + id referenceBuild ensemblVersion chromosome @@ -11320,6 +11331,16 @@ export const VariantDetailFieldsFragmentDoc = gql` } } ${ParsedCommentFragmentFragmentDoc}`; +export const VariantCoordinateIdsFragmentDoc = gql` + fragment VariantCoordinateIds on VariantInterface { + __typename + ... on GeneVariant { + coordinates { + id + } + } +} + `; export const VariantSummaryFieldsFragmentDoc = gql` fragment VariantSummaryFields on VariantInterface { id @@ -15707,6 +15728,24 @@ export const VariantDetailDocument = gql` export class VariantDetailGQL extends Apollo.Query { document = VariantDetailDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const CoordinateIdsForVariantDocument = gql` + query CoordinateIdsForVariant($variantId: Int!) { + variant(id: $variantId) { + ...VariantCoordinateIds + } +} + ${VariantCoordinateIdsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class CoordinateIdsForVariantGQL extends Apollo.Query { + document = CoordinateIdsForVariantDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 29df5ce23..448f8d376 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4614,6 +4614,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla type GeneVariantCoordinate { chromosome: String ensemblVersion: Int + id: Int! referenceBases: String referenceBuild: ReferenceBuild representativeTranscript: String @@ -5122,6 +5123,7 @@ enum ModeratedEntities { FEATURE MOLECULAR_PROFILE VARIANT + VARIANT_COORDINATES VARIANT_GROUP } @@ -5139,11 +5141,6 @@ union ModeratedFieldDiff = ObjectFieldDiff | ScalarFieldDiff Entity to moderate. """ input ModeratedInput { - """ - If the moderated is a variant, and you want coordinate revisons, specify the type - """ - coordinateType: VariantCoordinateTypes - """ Type of moderated entity. """ @@ -10436,13 +10433,6 @@ type VariantConnection { totalCount: Int! } -""" -Enumeration of all valid variant coordinate types -""" -enum VariantCoordinateTypes { - GENE_VARIANT_COORDINATE -} - enum VariantDeprecationReason { DUPLICATE FEATURE_DEPRECATED diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index ec8aef7fb..fbc021687 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -21593,6 +21593,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "referenceBases", "description": null, @@ -24305,6 +24321,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "VARIANT_COORDINATES", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -24388,18 +24410,6 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "coordinateType", - "description": "If the moderated is a variant, and you want coordinate revisons, specify the type", - "type": { - "kind": "ENUM", - "name": "VariantCoordinateTypes", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null } ], "interfaces": null, @@ -47349,23 +47359,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "ENUM", - "name": "VariantCoordinateTypes", - "description": "Enumeration of all valid variant coordinate types", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GENE_VARIANT_COORDINATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, { "kind": "ENUM", "name": "VariantDeprecationReason", diff --git a/client/src/app/views/phenotypes/phenotypes-detail/phenotypes-detail.component.ts b/client/src/app/views/phenotypes/phenotypes-detail/phenotypes-detail.component.ts index 7ec631caf..ab5a7b51c 100644 --- a/client/src/app/views/phenotypes/phenotypes-detail/phenotypes-detail.component.ts +++ b/client/src/app/views/phenotypes/phenotypes-detail/phenotypes-detail.component.ts @@ -26,7 +26,10 @@ export class PhenotypesDetailComponent implements OnDestroy { loading$?: Observable phenotype$?: Observable> - constructor(private route: ActivatedRoute, private gql: PhenotypeDetailGQL) { + constructor( + private route: ActivatedRoute, + private gql: PhenotypeDetailGQL + ) { this.routeSub = this.route.params.subscribe((params) => { this.phenotypeId = +params.phenotypeId diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql b/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql new file mode 100644 index 000000000..e79a169a5 --- /dev/null +++ b/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql @@ -0,0 +1,14 @@ +query CoordinateIdsForVariant($variantId: Int!) { + variant(id: $variantId) { + ...VariantCoordinateIds + } +} + +fragment VariantCoordinateIds on VariantInterface { + __typename + ... on GeneVariant { + coordinates { + id + } + } +} diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts index 5723bf8fb..8d70ecd25 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts @@ -6,7 +6,7 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs' @NgModule({ declarations: [VariantsRevisionsPage], - imports: [CommonModule, CvcRevisionsListAndFilterModule, NzTabsModule], + imports: [CommonModule, NzTabsModule, CvcRevisionsListAndFilterModule], exports: [VariantsRevisionsPage], }) export class VariantsRevisionsModule {} diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html index 876fde795..50c1630fc 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html @@ -1,14 +1,10 @@ - - - - - - - - - + @for (tab of tabs(); track tab.name) { + + + + + + } diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts index 986225bf0..ad9d5258a 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts @@ -1,37 +1,92 @@ -import { Component, OnDestroy } from '@angular/core' +import { + ChangeDetectionStrategy, + Component, + OnDestroy, + OnInit, + WritableSignal, + signal, +} from '@angular/core' import { ActivatedRoute } from '@angular/router' import { + CoordinateIdsForVariantGQL, ModeratedEntities, ModeratedInput, - VariantCoordinateTypes, + VariantCoordinateIdsFragment, } from '@app/generated/civic.apollo' import { Subscription } from 'rxjs' +import { isNonNulled } from 'rxjs-etc' +import { pluck } from 'rxjs-etc/dist/esm/operators' +import { filter, map } from 'rxjs/operators' + +interface RevisionsTab { + name: string + moderated: ModeratedInput +} @Component({ selector: 'cvc-variants-revisions', templateUrl: './variants-revisions.page.html', + changeDetection: ChangeDetectionStrategy.OnPush, }) -export class VariantsRevisionsPage implements OnDestroy { - coordinateSubject!: ModeratedInput - variantSubject!: ModeratedInput - - routeSub: Subscription - - constructor(private route: ActivatedRoute) { - this.routeSub = this.route.params.subscribe((params) => { - this.variantSubject = { - id: +params.variantId, - entityType: ModeratedEntities['Variant'], - } - this.coordinateSubject = { - id: +params.variantId, - entityType: ModeratedEntities['Variant'], - coordinateType: VariantCoordinateTypes.GeneVariantCoordinate, - } - }) +export class VariantsRevisionsPage implements OnDestroy, OnInit { + routeSub?: Subscription + coordsSub?: Subscription + + tabs: WritableSignal = signal([]) + + constructor( + private gql: CoordinateIdsForVariantGQL, + private route: ActivatedRoute + ) {} + + ngOnInit() { + this.routeSub = this.route.params + .pipe( + filter(isNonNulled), + map((params) => +params.variantId), + filter(isNonNulled) + ) + .subscribe((variantId) => { + this.tabs.set([ + { + name: 'Variant Fields', + moderated: { + id: variantId, + entityType: ModeratedEntities.Variant, + }, + }, + ]) + + this.coordsSub = this.gql + .fetch({ variantId: variantId }, { fetchPolicy: 'no-cache' }) + .pipe( + filter(isNonNulled), + pluck('data', 'variant'), + filter(isNonNulled) + ) + .subscribe((variant) => { + this.updateTabs(variant) + }) + }) + } + + updateTabs(variant: VariantCoordinateIdsFragment) { + if (variant.__typename == 'GeneVariant') { + this.tabs.set([ + ...this.tabs(), + { + name: 'Variant Coordinates', + moderated: { + id: variant.coordinates.id, + entityType: ModeratedEntities.VariantCoordinates, + }, + }, + ]) + } } ngOnDestroy() { - this.routeSub.unsubscribe() + this.routeSub?.unsubscribe() + this.coordsSub?.unsubscribe() } } diff --git a/server/app/graphql/types/entities/gene_variant_coordinate_type.rb b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb index 504af783d..61aed524e 100644 --- a/server/app/graphql/types/entities/gene_variant_coordinate_type.rb +++ b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb @@ -1,5 +1,6 @@ module Types::Entities class GeneVariantCoordinateType < Types::BaseObject + field :id, Int, null: false field :representative_transcript, String, null: true field :chromosome, String, null: true field :start, Int, null: true diff --git a/server/app/graphql/types/revisions/moderated_entities_type.rb b/server/app/graphql/types/revisions/moderated_entities_type.rb index 353178a0c..ce1324aec 100644 --- a/server/app/graphql/types/revisions/moderated_entities_type.rb +++ b/server/app/graphql/types/revisions/moderated_entities_type.rb @@ -7,5 +7,6 @@ class ModeratedEntitiesType < Types::BaseEnum value 'ASSERTION', value: 'Assertion' value 'VARIANT_GROUP', value: 'VariantGroup' value 'MOLECULAR_PROFILE', value: 'MolecularProfile' + value 'VARIANT_COORDINATES', value: 'VariantCoordinate' end end diff --git a/server/app/graphql/types/revisions/moderated_input.rb b/server/app/graphql/types/revisions/moderated_input.rb index 6a2a9cd8f..5a1520340 100644 --- a/server/app/graphql/types/revisions/moderated_input.rb +++ b/server/app/graphql/types/revisions/moderated_input.rb @@ -8,20 +8,8 @@ class ModeratedInput < Types::BaseInputObject argument :entity_type, Types::Revisions::ModeratedEntitiesType, required: true, description: 'Type of moderated entity.' - argument :coordinate_type, Types::Revisions::VariantCoordinateTypesType, required: false, - description: 'If the moderated is a variant, and you want coordinate revisons, specify the type' - def prepare - if coordinate_type && entity_type != "Variant" - raise GraphQL::ExecutionError.new("Coordinate Type input can only be specified when the moderated is a variant") - end - - moderated = entity_type.constantize.find(id) - if coordinate_type - moderated.variant_coordinates.where(coordinate_type: coordinate_type).first - else - moderated - end + entity_type.constantize.find(id) end end end diff --git a/server/app/graphql/types/revisions/variant_coordinate_types_type.rb b/server/app/graphql/types/revisions/variant_coordinate_types_type.rb deleted file mode 100644 index 3ecc741a2..000000000 --- a/server/app/graphql/types/revisions/variant_coordinate_types_type.rb +++ /dev/null @@ -1,8 +0,0 @@ -module Types::Revisions - class VariantCoordinateTypesType < Types::BaseEnum - description 'Enumeration of all valid variant coordinate types' - Constants::VALID_COORDINATE_TYPES.each do |ct| - value ct.upcase.gsub(" ", "_"), value: ct - end - end -end From b9f7d586f8b3118a5e755709d07b8c38660d424b Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 15 May 2024 15:47:46 -0500 Subject: [PATCH 10/56] wip add fusion models --- client/src/app/generated/civic.apollo.ts | 23 ++++--- server/app/models/constants.rb | 9 ++- server/app/models/features/fusion.rb | 30 +++++++++ server/app/models/variant.rb | 4 ++ server/app/models/variants/fusion_variant.rb | 61 +++++++++++++++++++ server/app/models/variants/gene_variant.rb | 7 +++ server/app/validators/coordinate_validator.rb | 35 ++++++++++- 7 files changed, 152 insertions(+), 17 deletions(-) create mode 100644 server/app/models/features/fusion.rb create mode 100644 server/app/models/variants/fusion_variant.rb diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index b1c9a7d7a..7716db2a5 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -7444,11 +7444,11 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -7796,11 +7796,11 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; -export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; +export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; export type SuggestGeneVariantRevisionMutationVariables = Exact<{ input: SuggestGeneVariantRevisionInput; @@ -8337,9 +8337,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8351,7 +8351,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8555,11 +8555,11 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8567,7 +8567,7 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', id: number, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; @@ -9715,7 +9715,6 @@ export const VariantTypeBrowseTableRowFieldsFragmentDoc = gql` `; export const CoordinateFieldsFragmentDoc = gql` fragment CoordinateFields on GeneVariantCoordinate { - id referenceBuild ensemblVersion chromosome diff --git a/server/app/models/constants.rb b/server/app/models/constants.rb index 558743d0a..a23f55314 100644 --- a/server/app/models/constants.rb +++ b/server/app/models/constants.rb @@ -110,18 +110,21 @@ module Constants DB_TYPE_TO_PATH_SEGMENT = { 'Assertion' => 'assertions', 'EvidenceItem' => 'evidence', - 'Gene' => 'genes', + 'Feature' => 'features', + 'Gene' => 'features', 'Variant' => 'variants', 'Variants::GeneVariant' => 'variants', 'Variants::FactorVariant' => 'variants', + 'Variants::FusionVariant' => 'variants', 'VariantGroup' => 'variant-groups', 'Source' => 'sources', 'MolecularProfile' => 'molecular-profiles' } VALID_COORDINATE_TYPES = [ - 'Gene Variant Coordinate' - ] + Variants::GeneVariant.valid_coordinate_types, + Variants::FusionVariant.valid_coordinate_types + ].flatten CIVICBOT_USER_ID = 385 end diff --git a/server/app/models/features/fusion.rb b/server/app/models/features/fusion.rb new file mode 100644 index 000000000..466233c38 --- /dev/null +++ b/server/app/models/features/fusion.rb @@ -0,0 +1,30 @@ +module Features + class Fusion < ActiveRecord::Base + include Subscribable + include IsFeatureInstance + + belongs_to :five_prime_gene, class_name: 'Features::Gene', optional: true + belongs_to :three_prime_gene, class_name: 'Features::Gene', optional: true + + has_many :variant_groups + has_many :source_suggestions + + #TODO - move to feature? + has_many :comment_mentions, foreign_key: :comment_id, class_name: 'EntityMention' + + def display_name + name + end + + def editable_fields + [ + :description, + :source_ids + ] + end + + def compatible_variant_type + Variants::FusionVariant + end + end +end diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index f1f7467b0..dd0f6c152 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -58,6 +58,10 @@ class Variant < ApplicationRecord searchkick highlight: [:name, :aliases], callbacks: :async scope :search_import, -> { includes(:variant_aliases, :feature) } + def self.valid_coordinate_types + [] + end + def search_data { name: "#{feature.name} - #{name}", diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb new file mode 100644 index 000000000..3a7f0c742 --- /dev/null +++ b/server/app/models/variants/fusion_variant.rb @@ -0,0 +1,61 @@ +module Variants + class FusionVariant < Variant + belongs_to :fusion, class_name: 'Features::Fusion', optional: true + + has_one :five_prime_coordinates, + ->() { where(coordinate_type: 'Five Prime Fusion Coordinate') }, + foreign_key: 'variant_id', + class_name: 'VariantCoordinate' + + has_one :three_prime_coordinates, + ->() { where(coordinate_type: 'Three Prime Fusion Coordinate') }, + foreign_key: 'variant_id', + class_name: 'VariantCoordinate' + + def self.valid_coordinate_types + [ + 'Five Prime Fusion Coordinate', + 'Three Prime Fusion Coordinate' + ] + end + + #TODO remove after backfill/when columns removed + enum reference_build: [:GRCh38, :GRCh37, :NCBI36] + + def unique_editable_fields + [ + :hgvs_description_ids, + :clinvar_entry_ids, + ] + end + + def required_fields + [] + end + + def correct_coordinate_type + if variant_coordinates.size > 2 + errors.add(:variant_coordinates, "Fusion Variants can only have two sets of coordinates specified") + end + + variant_coordinates.each do |coord| + if !self.class.valid_coordinate_types.include?(coord.coordinate_type) + errors.add(:variant_coordinates, "Incorrect coordinate type #{coord.coordinate_type} for a Fusion Variant") + end + end + + #Can have Three Prime or Five Prime or both, but not duplicates + if variant_coordinates.map(&:coordinate_type).uniq.size != variant_coordinates.size + errors.add(:variant_coordinates, 'Fusion Variants may not have duplicate coordinate types') + end + + if fusion.five_prime_gene.nil? && five_prime_coordinates.present? + errors.add(:variant_coordinates, 'Cannot specify five prime coordinates if the feature lacks a five prime gene') + end + + if fusion.three_prime_gene.nil? && three_prime_coordinates.present? + errors.add(:variant_coordinates, 'Cannot specify three prime coordinates if the feature lacks a three prime gene') + end + end + end +end diff --git a/server/app/models/variants/gene_variant.rb b/server/app/models/variants/gene_variant.rb index e4f2b877e..803a205b5 100644 --- a/server/app/models/variants/gene_variant.rb +++ b/server/app/models/variants/gene_variant.rb @@ -1,5 +1,6 @@ module Variants class GeneVariant < Variant + #TODO remove? belongs_to :gene, class_name: 'Features::Gene', optional: true has_one :coordinates, @@ -7,6 +8,12 @@ class GeneVariant < Variant foreign_key: 'variant_id', class_name: 'VariantCoordinate' + def self.valid_coordinate_types + [ + 'Gene Variant Coordinate' + ] + end + #TODO not used in V2, delete when Fusions added? #belongs_to :secondary_gene, class_name: 'Features::Gene', optional: true diff --git a/server/app/validators/coordinate_validator.rb b/server/app/validators/coordinate_validator.rb index 28625b821..bb83eaf86 100644 --- a/server/app/validators/coordinate_validator.rb +++ b/server/app/validators/coordinate_validator.rb @@ -3,6 +3,10 @@ def validate(record) case record.coordinate_type when 'Gene Variant Coordinate' validate_gene_variant_coordinates(record) + when 'Five Prime Fusion Coordinate' + validate_fusion_variant_coordinates(record) + when 'Three Prime Fusion Coordinate' + validate_fusion_variant_coordinates(record) else raise StandardError.new("Unsupported coordinate type: #{record.coordinate_type}") end @@ -12,11 +16,38 @@ def validate(record) def validate_gene_variant_coordinates(record) validate_not_present(record, :exon_boundary) validate_not_present(record, :exon_offset) + require_transcript_and_build_for_coords end - def validate_not_present(record, field) + def validate_fusion_variant_coordinates(record) + require_transcript_and_build_for_coords + + if record.exon_offset.present? + validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset value") + end + + if record.exon_boundary.present? + validate_present(record, :transcript, "You must specify a transcript if you supply an exon boundary") + end + end + + def require_transcript_and_build_for_coords + #if any of these are set + if [:chromosome, :start, :stop].map { |field| record.send(field) }.any?(&:present?) + validate_present(record, :reference_build, "You must specify a reference_build if you supply coordinate information") + validate_present(record, :transcript, "You must specify a transcript if you supply coordinate information") + end + end + + def validate_not_present(record, field, msg = "#{field} is not allowed on #{record.coordinate_type}") if record.send(field).present? - record.errors.add(field, "#{field} is not allowed on #{record.coordinate_type}") + record.errors.add(field, msg) + end + end + + def validate_present(record, field, msg = "#{field} is required on #{record.coordinate_type}") + if record.send(field).blank? + record.errors.add(field, msg) end end end From 5b74e32dd5f29f6272ebf7752a903353d19af1d1 Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Fri, 14 Jun 2024 10:46:30 -0500 Subject: [PATCH 11/56] Add mutation for creating fusion feature --- .../app/graphql/mutations/create_feature.rb | 2 +- .../mutations/create_fusion_feature.rb | 93 +++++++++++++++++++ .../types/fusion/fusion_partner_input_type.rb | 10 ++ .../types/fusion/fusion_partner_status.rb | 7 ++ .../models/actions/create_fusion_feature.rb | 49 ++++++++++ .../activities/create_fusion_feature.rb | 51 ++++++++++ server/app/models/feature.rb | 2 +- server/app/models/features/fusion.rb | 31 +++++++ .../db/migrate/20240613134015_add_fusions.rb | 13 +++ 9 files changed, 256 insertions(+), 2 deletions(-) create mode 100644 server/app/graphql/mutations/create_fusion_feature.rb create mode 100644 server/app/graphql/types/fusion/fusion_partner_input_type.rb create mode 100644 server/app/graphql/types/fusion/fusion_partner_status.rb create mode 100644 server/app/models/actions/create_fusion_feature.rb create mode 100644 server/app/models/activities/create_fusion_feature.rb create mode 100644 server/db/migrate/20240613134015_add_fusions.rb diff --git a/server/app/graphql/mutations/create_feature.rb b/server/app/graphql/mutations/create_feature.rb index d7c1f5816..01fdc8fd7 100644 --- a/server/app/graphql/mutations/create_feature.rb +++ b/server/app/graphql/mutations/create_feature.rb @@ -12,7 +12,7 @@ class Mutations::CreateFeature < Mutations::MutationWithOrg description: 'The newly created Feature.' field :new, Boolean, null: false, - description: 'True if the feature was newly created. False if the returned variant was already in the database.' + description: 'True if the feature was newly created. False if the returned feature was already in the database.' def ready?(organization_id: nil, **kwargs) validate_user_logged_in diff --git a/server/app/graphql/mutations/create_fusion_feature.rb b/server/app/graphql/mutations/create_fusion_feature.rb new file mode 100644 index 000000000..607bd9576 --- /dev/null +++ b/server/app/graphql/mutations/create_fusion_feature.rb @@ -0,0 +1,93 @@ +class Mutations::CreateFusionFeature < Mutations::MutationWithOrg + description 'Create a new Fusion Feature in the database.' + + argument :five_prime_gene, Types::Fusion::FusionPartnerInputType, required: true, + description: 'The 5" fusion partner' + + argument :three_prime_gene, Types::Fusion::FusionPartnerInputType, required: true, + description: 'The 3" fusion partner' + + field :feature, Types::Entities::FeatureType, null: false, + description: 'The newly created Feature.' + + field :new, Boolean, null: false, + description: 'True if the feature was newly created. False if the returned feature was already in the database.' + + def ready?(organization_id: nil, five_prime_gene:, three_prime_gene:,**kwargs) + validate_user_logged_in + validate_user_org(organization_id) + + #check that not both gene_ids are blank + if five_prime_gene.gene_id.blank? && three_prime_gene.gene_id.blank? + raise GraphQL::ExecutionError, "One or both fusion partners need to have a gene_id set." + end + + #check that the gene IDs are not the same + if five_prime_gene.gene_id == three_prime_gene.gene_id + raise GraphQL::ExecutionError, "Fusion partner gene IDs cannot be identical" + end + + #check that the gene(s) exist + [five_prime_gene.gene_id, three_prime_gene.gene_id].each do |gene_id| + if Features::Gene.find(gene_id).nil? + raise GraphQL::ExecutionError, "Gene with CIViC ID #{gene_id} does not exist" + end + end + + #check that partner status matches gene_id presence + [five_primve_gene, three_prime_gene].each do |gene_input| + if gene_input.gene_id.present? && gene_input.partner_status != 'known' + raise GraphQL::ExecutionError, "Partner status needs to be 'known' if a gene_id is set" + end + if gene_input.gene_id.blank? && gene_input.partner_status == 'known' + raise GraphQL::ExecutionError, "Partner status can't be 'known' if a gene_id is not set" + end + end + + return true + end + + def authorized?(organization_id: nil, **kwargs) + validate_user_acting_as_org(user: context[:current_user], organization_id: organization_id) + return true + end + + def resolve(five_prime_gene:, three_prime_gene:, organization_id: nil) + + existing_feature = Feature::Fusion + .find_by( + five_prime_gene_id: five_prime_gene.gene_id, + three_prime_gene_id: three_prime_gene.gene_id, + five_prime_partner_status: five_prime_gene.partner_status, + three_prime_partner_status: three_prime_gene.partner_status, + ) + + if existing_feature.present? + return { + feature: existing_feature, + new: false, + } + + else + cmd = Activities::CreateFusionFeature.new( + five_prime_gene_id: five_prime_gene.gene_id, + three_prime_gene_id: three_prime_gene.gene_id, + five_prime_partner_status: five_prime_gene.partner_status, + three_prime_partner_status: three_prime_gene.partner_status, + originating_user: context[:current_user], + organization_id: organization_id, + ) + + res = cmd.perform + + if res.succeeded? + return { + feature: res.feature, + new: true, + } + else + raise GraphQL::ExecutionError, res.errors.join(', ') + end + end + end +end diff --git a/server/app/graphql/types/fusion/fusion_partner_input_type.rb b/server/app/graphql/types/fusion/fusion_partner_input_type.rb new file mode 100644 index 000000000..06ac28208 --- /dev/null +++ b/server/app/graphql/types/fusion/fusion_partner_input_type.rb @@ -0,0 +1,10 @@ +module Types::Fusion + class FusionPartnerInputType < Types::BaseInputObject + description "The fusion partner's status and gene ID (if applicable)" + + argument :partner_status, Types::Fusion::FusionPartnerStatus, required: true + description: 'The status of the fusion partner' + argument :gene_id, Int, required: false + description: 'The CIViC gene ID of the partner, if known' + end +end diff --git a/server/app/graphql/types/fusion/fusion_partner_status.rb b/server/app/graphql/types/fusion/fusion_partner_status.rb new file mode 100644 index 000000000..927382ef6 --- /dev/null +++ b/server/app/graphql/types/fusion/fusion_partner_status.rb @@ -0,0 +1,7 @@ +module Types + class EvidenceSignificanceType < Types::BaseEnum + value 'KNOWN', value: 'known' + value 'UNKNOWN', value: 'unknown' + value 'MULTIPLE', value: 'multiple' + end +end diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb new file mode 100644 index 000000000..27e0353ff --- /dev/null +++ b/server/app/models/actions/create_fusion_feature.rb @@ -0,0 +1,49 @@ +module Actions + class CreateFusionFeature + include Actions::Transactional + + attr_reader :feature, :originating_user, :organization_id + + def initialize(originating_user:, five_prime_gene_id:, three_prime_gene_id:, five_prime_partner_status:, three_prime_partner_status:, organization_id: nil) + feature_name = "#{construct_fusion_partner_name(five_prime_gene_id, five_prime_partner_status)}::#{construct_fusion_partner_name(three_prime_gene_id, three_prime_partner_status)}" + fusion = Features::Fusion.create( + five_prime_gene_id: five_prime_gene_id, + three_prime_gene_id: three_prime_gene_id, + five_prime_partner_status: five_prime_partner_status, + three_prime_partner_status: three_prime_partner_status, + ) + @feature = Feature.new( + name: feature_name, + feature_instance: fusion + ) + @originating_user = originating_user + @organization_id = organization_id + end + + def construct_fusion_partner_name(gene_id:, partner_status:) + if partner_status == 'known' + Feature::Gene.find(gene_id).name + elsif partner_status == 'unknown' + '?' + elsif partner_status == 'multiple' + 'v' + end + end + + private + def execute + feature.save! + + event = Event.new( + action: 'feature created', + originating_user: originating_user, + subject: feature, + organization_id: organization_id, + originating_object: feature + ) + + events << event + + end + end +end diff --git a/server/app/models/activities/create_fusion_feature.rb b/server/app/models/activities/create_fusion_feature.rb new file mode 100644 index 000000000..8fa0cd4b6 --- /dev/null +++ b/server/app/models/activities/create_fusion_feature.rb @@ -0,0 +1,51 @@ +module Activities + class CreateFusionFeature < Base + attr_reader :feature, :five_prime_gene_id, :three_prime_gene_id, :five_prime_partner_status, :three_prime_partner_status + + def initialize(originating_user:, organization_id:, five_prime_gene_id:, three_prime_gene_id:, five_prime_partner_status:, three_prime_partner_status:) + super(organization_id: organization_id, user: originating_user) + @five_prime_gene_id = five_prime_gene_id + @three_prime_gene_id = three_prime_gene_id + @five_prime_partner_status = five_prime_partner_status + @three_prime_partner_status = three_prime_partner_status + @feature_instance_type = feature_instance_type + end + + private + def create_activity + @activity = CreateFeatureActivity.new( + user: user, + organization: organization, + ) + end + + def call_actions + cmd = Actions::CreateFusionFeature.new( + five_prime_gene_id: five_prime_gene_id, + three_prime_gene_id: three_prime_gene_id, + five_prime_partner_status: five_prime_partner_status, + three_prime_partner_status: three_prime_partner_status, + originating_user: user, + organization_id: organization&.id + ) + + cmd.perform + + if !cmd.succeeded? + raise StandardError.new(cmd.errors.join(', ')) + end + + @feature = cmd.feature + events << cmd.events + end + + def linked_entities + nil + end + + def after_actions + activity.subject = feature + activity.save! + end + end +end diff --git a/server/app/models/feature.rb b/server/app/models/feature.rb index 4a026ac1f..943af4861 100644 --- a/server/app/models/feature.rb +++ b/server/app/models/feature.rb @@ -5,7 +5,7 @@ class Feature < ApplicationRecord include Subscribable include WithTimepointCounts - delegated_type :feature_instance, types: %w[ Features::Gene Features::Factor ], autosave: true + delegated_type :feature_instance, types: %w[ Features::Gene Features::Factor Features::Fusion ], autosave: true has_and_belongs_to_many :feature_aliases has_and_belongs_to_many :sources diff --git a/server/app/models/features/fusion.rb b/server/app/models/features/fusion.rb index 466233c38..e088e2487 100644 --- a/server/app/models/features/fusion.rb +++ b/server/app/models/features/fusion.rb @@ -6,12 +6,43 @@ class Fusion < ActiveRecord::Base belongs_to :five_prime_gene, class_name: 'Features::Gene', optional: true belongs_to :three_prime_gene, class_name: 'Features::Gene', optional: true + enum five_prime_partner_status: { + known: 'known', + unknown: 'unknown', + multiple: 'multiple', + }, _prefix: true + + enum three_prime_partner_status: { + known: 'known', + unknown: 'unknown', + multiple: 'multiple', + }, _prefix: true + has_many :variant_groups has_many :source_suggestions #TODO - move to feature? has_many :comment_mentions, foreign_key: :comment_id, class_name: 'EntityMention' + validate :partner_status_valid_for_gene_ids + validate :at_least_one_gene_id + + def partner_status_valid_for_gene_ids + [self.five_prime_gene, self.three_prime_gene].zip([self.five_prime_partner_status, self.three_prime_partner_status], [:five_prime_gene, :three_prime_gene]).each do |gene, status, fk| + if gene.nil? && status == 'known' + errors.add(fk, "Partner status cannot be 'known' if the gene isn't set") + elsif !gene.nil? && status != 'known' + errors.add(fk, "Partner status has to be 'known' if gene is set") + end + end + end + + def at_least_one_gene_id + if self.five_prime_gene_id.nil? && self.three_prime_gene_id.nil? + errors.add(:base, "One or both of the genes need to be set") + end + end + def display_name name end diff --git a/server/db/migrate/20240613134015_add_fusions.rb b/server/db/migrate/20240613134015_add_fusions.rb new file mode 100644 index 000000000..41273e016 --- /dev/null +++ b/server/db/migrate/20240613134015_add_fusions.rb @@ -0,0 +1,13 @@ +class AddFusions < ActiveRecord::Migration[7.1] + def change + create_enum :fusion_partner_status, ["known", "unknown", "multiple"] + + create_table :fusions do |t| + t.references :five_prime_gene, null: true, index: true, foreign_key: { to_table: :genes } + t.references :three_prime_gene, null: true, index: true, foreign_key: { to_table: :genes } + t.enum :five_prime_partner_status, enum_type: "fusion_partner_status", default: "unknown", null: false + t.enum :three_prime_partner_status, enum_type: "fusion_partner_status", default: "unknown", null: false + t.timestamps + end + end +end From 25254607d2e8fba80fee8e0b4575870a5f46fa26 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 17 Jun 2024 10:46:05 -0500 Subject: [PATCH 12/56] create fusions mutation working --- .../mutations/create_fusion_feature.rb | 11 +- .../types/fusion/fusion_partner_input_type.rb | 4 +- .../types/fusion/fusion_partner_status.rb | 4 +- server/app/graphql/types/mutation_type.rb | 1 + .../models/actions/create_fusion_feature.rb | 4 +- .../activities/create_fusion_feature.rb | 1 - server/db/schema.rb | 174 ++++++++++-------- 7 files changed, 115 insertions(+), 84 deletions(-) diff --git a/server/app/graphql/mutations/create_fusion_feature.rb b/server/app/graphql/mutations/create_fusion_feature.rb index 607bd9576..90c3161b6 100644 --- a/server/app/graphql/mutations/create_fusion_feature.rb +++ b/server/app/graphql/mutations/create_fusion_feature.rb @@ -14,7 +14,8 @@ class Mutations::CreateFusionFeature < Mutations::MutationWithOrg description: 'True if the feature was newly created. False if the returned feature was already in the database.' def ready?(organization_id: nil, five_prime_gene:, three_prime_gene:,**kwargs) - validate_user_logged_in + #validate_user_logged_in + context[:current_user] = User.first validate_user_org(organization_id) #check that not both gene_ids are blank @@ -27,15 +28,15 @@ def ready?(organization_id: nil, five_prime_gene:, three_prime_gene:,**kwargs) raise GraphQL::ExecutionError, "Fusion partner gene IDs cannot be identical" end - #check that the gene(s) exist - [five_prime_gene.gene_id, three_prime_gene.gene_id].each do |gene_id| + #check that the gene(s) exist if specified + [five_prime_gene.gene_id, three_prime_gene.gene_id].compact.each do |gene_id| if Features::Gene.find(gene_id).nil? raise GraphQL::ExecutionError, "Gene with CIViC ID #{gene_id} does not exist" end end #check that partner status matches gene_id presence - [five_primve_gene, three_prime_gene].each do |gene_input| + [five_prime_gene, three_prime_gene].each do |gene_input| if gene_input.gene_id.present? && gene_input.partner_status != 'known' raise GraphQL::ExecutionError, "Partner status needs to be 'known' if a gene_id is set" end @@ -54,7 +55,7 @@ def authorized?(organization_id: nil, **kwargs) def resolve(five_prime_gene:, three_prime_gene:, organization_id: nil) - existing_feature = Feature::Fusion + existing_feature = Features::Fusion .find_by( five_prime_gene_id: five_prime_gene.gene_id, three_prime_gene_id: three_prime_gene.gene_id, diff --git a/server/app/graphql/types/fusion/fusion_partner_input_type.rb b/server/app/graphql/types/fusion/fusion_partner_input_type.rb index 06ac28208..026f59e73 100644 --- a/server/app/graphql/types/fusion/fusion_partner_input_type.rb +++ b/server/app/graphql/types/fusion/fusion_partner_input_type.rb @@ -2,9 +2,9 @@ module Types::Fusion class FusionPartnerInputType < Types::BaseInputObject description "The fusion partner's status and gene ID (if applicable)" - argument :partner_status, Types::Fusion::FusionPartnerStatus, required: true + argument :partner_status, Types::Fusion::FusionPartnerStatus, required: true, description: 'The status of the fusion partner' - argument :gene_id, Int, required: false + argument :gene_id, Int, required: false, description: 'The CIViC gene ID of the partner, if known' end end diff --git a/server/app/graphql/types/fusion/fusion_partner_status.rb b/server/app/graphql/types/fusion/fusion_partner_status.rb index 927382ef6..af4e7d6ab 100644 --- a/server/app/graphql/types/fusion/fusion_partner_status.rb +++ b/server/app/graphql/types/fusion/fusion_partner_status.rb @@ -1,5 +1,5 @@ -module Types - class EvidenceSignificanceType < Types::BaseEnum +module Types::Fusion + class FusionPartnerStatus < Types::BaseEnum value 'KNOWN', value: 'known' value 'UNKNOWN', value: 'unknown' value 'MULTIPLE', value: 'multiple' diff --git a/server/app/graphql/types/mutation_type.rb b/server/app/graphql/types/mutation_type.rb index 47558bb10..87c9fb851 100644 --- a/server/app/graphql/types/mutation_type.rb +++ b/server/app/graphql/types/mutation_type.rb @@ -57,5 +57,6 @@ class MutationType < Types::BaseObject field :add_therapy, mutation: Mutations::AddTherapy field :create_variant, mutation: Mutations::CreateVariant field :create_feature, mutation: Mutations::CreateFeature + field :create_fusion_feature, mutation: Mutations::CreateFusionFeature end end diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index 27e0353ff..605bba859 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -20,9 +20,9 @@ def initialize(originating_user:, five_prime_gene_id:, three_prime_gene_id:, fiv @organization_id = organization_id end - def construct_fusion_partner_name(gene_id:, partner_status:) + def construct_fusion_partner_name(gene_id, partner_status) if partner_status == 'known' - Feature::Gene.find(gene_id).name + Features::Gene.find(gene_id).name elsif partner_status == 'unknown' '?' elsif partner_status == 'multiple' diff --git a/server/app/models/activities/create_fusion_feature.rb b/server/app/models/activities/create_fusion_feature.rb index 8fa0cd4b6..4fc3a8376 100644 --- a/server/app/models/activities/create_fusion_feature.rb +++ b/server/app/models/activities/create_fusion_feature.rb @@ -8,7 +8,6 @@ def initialize(originating_user:, organization_id:, five_prime_gene_id:, three_p @three_prime_gene_id = three_prime_gene_id @five_prime_partner_status = five_prime_partner_status @three_prime_partner_status = three_prime_partner_status - @feature_instance_type = feature_instance_type end private diff --git a/server/db/schema.rb b/server/db/schema.rb index dbde32aec..f9c12cf13 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -10,10 +10,14 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_03_27_150519) do +ActiveRecord::Schema[7.1].define(version: 2024_06_13_134015) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" + # Custom types defined in this database. + # Note that some types may not work with other database engines. Be careful if changing database. + create_enum "fusion_partner_status", ["known", "unknown", "multiple"] + create_table "acmg_codes", id: :serial, force: :cascade do |t| t.text "code" t.text "description" @@ -497,6 +501,17 @@ t.index ["state"], name: "index_flags_on_state" end + create_table "fusions", force: :cascade do |t| + t.bigint "five_prime_gene_id" + t.bigint "three_prime_gene_id" + t.enum "five_prime_partner_status", default: "unknown", null: false, enum_type: "fusion_partner_status" + t.enum "three_prime_partner_status", default: "unknown", null: false, enum_type: "fusion_partner_status" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["five_prime_gene_id"], name: "index_fusions_on_five_prime_gene_id" + t.index ["three_prime_gene_id"], name: "index_fusions_on_three_prime_gene_id" + end + create_table "gene_aliases", id: :serial, force: :cascade do |t| t.string "name" t.index ["name"], name: "index_gene_aliases_on_name" @@ -743,9 +758,14 @@ t.integer "asco_abstract_id" t.text "asco_presenter" t.boolean "fully_curated", default: false, null: false + t.boolean "retracted", default: false, null: false + t.string "retraction_nature" + t.datetime "retraction_date" + t.string "retraction_reasons" t.index ["asco_abstract_id"], name: "index_sources_on_asco_abstract_id" t.index ["asco_presenter"], name: "index_sources_on_asco_presenter" t.index ["citation_id"], name: "index_sources_on_citation_id" + t.index ["retracted"], name: "index_sources_on_retracted" end create_table "sources_variant_groups", id: false, force: :cascade do |t| @@ -1025,6 +1045,8 @@ add_foreign_key "feature_aliases_features", "features" add_foreign_key "features_sources", "features" add_foreign_key "features_sources", "sources" + add_foreign_key "fusions", "genes", column: "five_prime_gene_id" + add_foreign_key "fusions", "genes", column: "three_prime_gene_id" add_foreign_key "gene_aliases_genes", "gene_aliases" add_foreign_key "gene_aliases_genes", "genes" add_foreign_key "genes_sources", "genes" @@ -1130,28 +1152,6 @@ SQL add_index "gene_browse_table_rows", ["id"], name: "index_gene_browse_table_rows_on_id", unique: true - create_view "source_browse_table_rows", materialized: true, sql_definition: <<-SQL - SELECT sources.id, - sources.source_type, - sources.citation_id, - array_agg(DISTINCT concat(authors.last_name, ', ', authors.fore_name)) FILTER (WHERE ((authors.fore_name <> ''::text) OR (authors.last_name <> ''::text))) AS authors, - sources.publication_year, - sources.asco_presenter, - sources.journal, - sources.title, - sources.citation, - sources.open_access, - count(DISTINCT evidence_items.id) AS evidence_item_count, - count(DISTINCT source_suggestions.id) AS source_suggestion_count - FROM ((((sources - LEFT JOIN authors_sources ON ((sources.id = authors_sources.source_id))) - LEFT JOIN authors ON ((authors.id = authors_sources.author_id))) - LEFT JOIN evidence_items ON ((evidence_items.source_id = sources.id))) - LEFT JOIN source_suggestions ON ((source_suggestions.source_id = sources.id))) - GROUP BY sources.id, sources.source_type, sources.publication_year, sources.journal, sources.title; - SQL - add_index "source_browse_table_rows", ["id"], name: "index_source_browse_table_rows_on_id", unique: true - create_view "evidence_items_by_types", sql_definition: <<-SQL SELECT mp.id AS molecular_profile_id, sum( @@ -1188,11 +1188,54 @@ JOIN evidence_items ei ON (((mp.id = ei.molecular_profile_id) AND (ei.deleted = false) AND ((ei.status)::text <> 'rejected'::text)))) GROUP BY mp.id; SQL + create_view "variant_group_browse_table_rows", materialized: true, sql_definition: <<-SQL + SELECT variant_groups.id, + variant_groups.name, + array_agg(DISTINCT variants.name) AS variant_names, + array_agg(DISTINCT features.name) AS feature_names, + count(DISTINCT variants.id) AS variant_count, + count(DISTINCT evidence_items.id) AS evidence_item_count + FROM ((((((variant_groups + JOIN variant_group_variants ON ((variant_group_variants.variant_group_id = variant_groups.id))) + JOIN variants ON ((variant_group_variants.variant_id = variants.id))) + JOIN features ON ((variants.feature_id = features.id))) + LEFT JOIN molecular_profiles_variants ON ((molecular_profiles_variants.variant_id = variants.id))) + LEFT JOIN molecular_profiles ON ((molecular_profiles.id = molecular_profiles_variants.molecular_profile_id))) + LEFT JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) + WHERE ((evidence_items.status)::text <> 'rejected'::text) + GROUP BY variant_groups.id, variant_groups.name; + SQL + add_index "variant_group_browse_table_rows", ["id"], name: "index_variant_group_browse_table_rows_on_id", unique: true + + create_view "source_browse_table_rows", materialized: true, sql_definition: <<-SQL + SELECT sources.id, + sources.source_type, + sources.citation_id, + array_agg(DISTINCT concat(authors.last_name, ', ', authors.fore_name)) FILTER (WHERE ((authors.fore_name <> ''::text) OR (authors.last_name <> ''::text))) AS authors, + sources.publication_year, + sources.asco_presenter, + sources.journal, + sources.title, + sources.citation, + sources.open_access, + sources.retraction_nature, + count(DISTINCT evidence_items.id) AS evidence_item_count, + count(DISTINCT source_suggestions.id) AS source_suggestion_count + FROM ((((sources + LEFT JOIN authors_sources ON ((sources.id = authors_sources.source_id))) + LEFT JOIN authors ON ((authors.id = authors_sources.author_id))) + LEFT JOIN evidence_items ON ((evidence_items.source_id = sources.id))) + LEFT JOIN source_suggestions ON ((source_suggestions.source_id = sources.id))) + GROUP BY sources.id, sources.source_type, sources.publication_year, sources.journal, sources.title; + SQL + add_index "source_browse_table_rows", ["id"], name: "index_source_browse_table_rows_on_id", unique: true + create_view "disease_browse_table_rows", materialized: true, sql_definition: <<-SQL SELECT diseases.id, diseases.name, diseases.display_name, diseases.doid, + diseases.deprecated, json_agg(DISTINCT jsonb_build_object('name', features.name, 'id', features.id)) FILTER (WHERE (features.name IS NOT NULL)) AS features, count(DISTINCT evidence_items.id) AS evidence_item_count, count(DISTINCT variants.id) AS variant_count, @@ -1214,12 +1257,13 @@ create_view "molecular_profile_browse_table_rows", materialized: true, sql_definition: <<-SQL SELECT outer_mps.id, outer_mps.name, + outer_mps.deprecated, count(DISTINCT evidence_items.id) AS evidence_item_count, array_agg(DISTINCT molecular_profile_aliases.name ORDER BY molecular_profile_aliases.name) AS alias_names, - json_agg(DISTINCT jsonb_build_object('name', features.name, 'id', features.id)) FILTER (WHERE (features.name IS NOT NULL)) AS features, - json_agg(DISTINCT jsonb_build_object('name', variants.name, 'id', variants.id, 'feature_id', variants.feature_id)) FILTER (WHERE (variants.name IS NOT NULL)) AS variants, - json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, - json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, + json_agg(DISTINCT jsonb_build_object('name', features.name, 'id', features.id, 'deprecated', features.deprecated)) FILTER (WHERE (features.name IS NOT NULL)) AS features, + json_agg(DISTINCT jsonb_build_object('name', variants.name, 'id', variants.id, 'deprecated', variants.deprecated, 'feature_id', variants.feature_id)) FILTER (WHERE (variants.name IS NOT NULL)) AS variants, + json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'deprecated', diseases.deprecated, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, + json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'deprecated', therapies.deprecated, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, count(DISTINCT assertions.id) AS assertion_count, count(DISTINCT variants.id) AS variant_count, outer_mps.evidence_score @@ -1256,11 +1300,12 @@ SELECT outer_features.id, outer_features.name, outer_features.flagged, + outer_features.deprecated, outer_features.feature_instance_type, outer_features.feature_instance_id, array_agg(DISTINCT feature_aliases.name ORDER BY feature_aliases.name) AS alias_names, - json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, - json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, + json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'deprecated', diseases.deprecated, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, + json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'deprecated', therapies.deprecated, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, count(DISTINCT variants.id) AS variant_count, count(DISTINCT evidence_items.id) AS evidence_item_count, count(DISTINCT assertions.id) AS assertion_count, @@ -1271,7 +1316,7 @@ JOIN variants ON ((variants.feature_id = outer_features.id))) JOIN molecular_profiles_variants ON ((molecular_profiles_variants.variant_id = variants.id))) JOIN molecular_profiles ON ((molecular_profiles.id = molecular_profiles_variants.molecular_profile_id))) - JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) + LEFT JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) LEFT JOIN diseases ON ((diseases.id = evidence_items.disease_id))) LEFT JOIN evidence_items_therapies ON ((evidence_items_therapies.evidence_item_id = evidence_items.id))) LEFT JOIN therapies ON ((therapies.id = evidence_items_therapies.therapy_id))) @@ -1279,59 +1324,44 @@ LEFT JOIN LATERAL ( SELECT therapies_1.id AS therapy_id, count(DISTINCT evidence_items_1.id) AS total FROM (((((evidence_items evidence_items_1 - JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) - JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) - JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) - WHERE (variants_1.feature_id = outer_features.id) + LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + LEFT JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) + LEFT JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) + LEFT JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) + WHERE ((variants_1.feature_id = outer_features.id) AND (molecular_profiles_1.id IS NOT NULL)) GROUP BY therapies_1.id) therapy_count ON ((therapies.id = therapy_count.therapy_id))) LEFT JOIN LATERAL ( SELECT diseases_1.id AS disease_id, count(DISTINCT evidence_items_1.id) AS total FROM ((((evidence_items evidence_items_1 - JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) - JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) - WHERE (variants_1.feature_id = outer_features.id) + LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + LEFT JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) + LEFT JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) + WHERE ((variants_1.feature_id = outer_features.id) AND (molecular_profiles_1.id IS NOT NULL)) GROUP BY diseases_1.id) disease_count ON ((diseases.id = disease_count.disease_id))) - WHERE (((evidence_items.status)::text <> 'rejected'::text) AND (molecular_profiles.deprecated = false) AND (variants.deprecated = false)) + WHERE (((evidence_items.status)::text <> 'rejected'::text) OR ((evidence_items.status IS NULL) AND (molecular_profiles.deprecated = false) AND (variants.deprecated = false))) GROUP BY outer_features.id, outer_features.name; SQL add_index "feature_browse_table_rows", ["id"], name: "index_feature_browse_table_rows_on_id", unique: true - create_view "variant_group_browse_table_rows", materialized: true, sql_definition: <<-SQL - SELECT variant_groups.id, - variant_groups.name, - array_agg(DISTINCT variants.name) AS variant_names, - array_agg(DISTINCT features.name) AS feature_names, - count(DISTINCT variants.id) AS variant_count, - count(DISTINCT evidence_items.id) AS evidence_item_count - FROM ((((((variant_groups - JOIN variant_group_variants ON ((variant_group_variants.variant_group_id = variant_groups.id))) - JOIN variants ON ((variant_group_variants.variant_id = variants.id))) - JOIN features ON ((variants.feature_id = features.id))) - LEFT JOIN molecular_profiles_variants ON ((molecular_profiles_variants.variant_id = variants.id))) - LEFT JOIN molecular_profiles ON ((molecular_profiles.id = molecular_profiles_variants.molecular_profile_id))) - LEFT JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) - WHERE ((evidence_items.status)::text <> 'rejected'::text) - GROUP BY variant_groups.id, variant_groups.name; - SQL - add_index "variant_group_browse_table_rows", ["id"], name: "index_variant_group_browse_table_rows_on_id", unique: true - create_view "variant_browse_table_rows", materialized: true, sql_definition: <<-SQL SELECT outer_variants.id, outer_variants.name, + outer_variants.deprecated, outer_variants.type AS category, + outer_variants.flagged, features.id AS feature_id, features.name AS feature_name, + features.deprecated AS feature_deprecated, + features.flagged AS feature_flagged, array_agg(DISTINCT variant_aliases.name ORDER BY variant_aliases.name) AS alias_names, array_agg(DISTINCT variant_types.id) AS variant_type_ids, json_agg(DISTINCT jsonb_build_object('name', variant_types.display_name, 'id', variant_types.id)) FILTER (WHERE (variant_types.* IS NOT NULL)) AS variant_types, count(DISTINCT variant_types.id) AS variant_type_count, count(DISTINCT evidence_items.id) FILTER (WHERE (evidence_items.id IS NOT NULL)) AS evidence_item_count, - json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, - json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, + json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'deprecated', diseases.deprecated, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, + json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'deprecated', therapies.deprecated, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, count(DISTINCT assertions.id) AS assertion_count FROM ((((((((((((((variants outer_variants LEFT JOIN variant_aliases_variants ON ((variant_aliases_variants.variant_id = outer_variants.id))) @@ -1349,19 +1379,19 @@ LEFT JOIN LATERAL ( SELECT therapies_1.id AS therapy_id, count(DISTINCT evidence_items_1.id) FILTER (WHERE (evidence_items_1.id IS NOT NULL)) AS total FROM ((((evidence_items evidence_items_1 - JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) - JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) - JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - WHERE (molecular_profiles_variants_1.variant_id = outer_variants.id) + LEFT JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) + LEFT JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) + LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + WHERE ((molecular_profiles_variants_1.variant_id = outer_variants.id) AND (evidence_items_1.id IS NOT NULL)) GROUP BY therapies_1.id) therapy_count ON ((therapies.id = therapy_count.therapy_id))) LEFT JOIN LATERAL ( SELECT diseases_1.id AS disease_id, count(DISTINCT evidence_items_1.id) FILTER (WHERE (evidence_items_1.id IS NOT NULL)) AS total FROM (((evidence_items evidence_items_1 - JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) - JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - WHERE (molecular_profiles_variants_1.variant_id = outer_variants.id) + LEFT JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) + LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + WHERE ((molecular_profiles_variants_1.variant_id = outer_variants.id) AND (evidence_items_1.id IS NOT NULL)) GROUP BY diseases_1.id) disease_count ON ((diseases.id = disease_count.disease_id))) WHERE ((((evidence_items.status)::text <> 'rejected'::text) OR (evidence_items.status IS NULL)) AND (outer_variants.deprecated = false)) GROUP BY outer_variants.id, outer_variants.name, features.id, features.name; From 0cd7238686685a43f45915f055c33282b53846fa Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Tue, 18 Jun 2024 13:48:48 -0500 Subject: [PATCH 13/56] display fusion features, alllow deprecation --- .../fusion-summary/fusion-summary.page.html | 183 ++ .../fusion-summary/fusion-summary.page.less | 9 + .../fusion-summary/fusion-summary.page.ts | 65 + .../GeneBaseSummaryComponent.ts | 0 .../gene-base-summary.page.html | 94 + .../gene-base-summary.page.less | 0 .../gene-base-summary.page.ts | 37 + .../genes-summary/genes-summary.module.ts | 2 + .../genes-summary/genes-summary.page.html | 94 +- .../feature-deprecate.form.html | 101 + .../feature-deprecate.form.ts | 203 ++ .../feature-deprecate.query.gql | 32 + .../src/app/generated/civic.apollo-helpers.ts | 45 +- client/src/app/generated/civic.apollo.ts | 382 +++- .../src/app/generated/civic.possible-types.ts | 7 + client/src/app/generated/server.model.graphql | 316 ++- client/src/app/generated/server.schema.json | 1901 +++++++++++++---- .../features-detail/features-detail.module.ts | 4 + .../features-detail/features-detail.view.html | 24 + .../features-detail/features-detail.view.less | 3 + .../features-summary.module.ts | 2 + .../features-summary.page.html | 5 + .../features-summary.query.gql | 53 +- .../graphql/mutations/deprecate_feature.rb | 4 + .../app/graphql/types/entities/fusion_type.rb | 18 + .../graphql/types/feature_instance_type.rb | 4 +- 26 files changed, 3057 insertions(+), 531 deletions(-) create mode 100644 client/src/app/components/fusions/fusion-summary/fusion-summary.page.html create mode 100644 client/src/app/components/fusions/fusion-summary/fusion-summary.page.less create mode 100644 client/src/app/components/fusions/fusion-summary/fusion-summary.page.ts create mode 100644 client/src/app/components/genes/gene-base-summary/GeneBaseSummaryComponent.ts create mode 100644 client/src/app/components/genes/gene-base-summary/gene-base-summary.page.html create mode 100644 client/src/app/components/genes/gene-base-summary/gene-base-summary.page.less create mode 100644 client/src/app/components/genes/gene-base-summary/gene-base-summary.page.ts create mode 100644 client/src/app/forms/components/feature-deprecate/feature-deprecate.form.html create mode 100644 client/src/app/forms/components/feature-deprecate/feature-deprecate.form.ts create mode 100644 client/src/app/forms/components/feature-deprecate/feature-deprecate.query.gql create mode 100644 server/app/graphql/types/entities/fusion_type.rb diff --git a/client/src/app/components/fusions/fusion-summary/fusion-summary.page.html b/client/src/app/components/fusions/fusion-summary/fusion-summary.page.html new file mode 100644 index 000000000..e9f741e8f --- /dev/null +++ b/client/src/app/components/fusions/fusion-summary/fusion-summary.page.html @@ -0,0 +1,183 @@ + + + + + + + + + + +

+ {{ fusion.description }} +

+ + + + + + +
+
+
+ + + + + + + + + + + + + None specified + + + + + + + {{ + alias + }} + + + + None specified + + + +
+
+ + + + + + + + + by + + + + Created + + ({{ fusion.creationActivity.createdAt | timeAgo }}) + + + + + + by + + + + Deprecated + + ({{ fusion.deprecationActivity.createdAt | timeAgo }}) + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + @switch (status) { + @case ('MULTIPLE') { + There are Multiple possible fusion partners. + } + @case ('UNKNOWN') { + The fusion partner is unknown. + } + } + + + diff --git a/client/src/app/components/fusions/fusion-summary/fusion-summary.page.less b/client/src/app/components/fusions/fusion-summary/fusion-summary.page.less new file mode 100644 index 000000000..b2848ee08 --- /dev/null +++ b/client/src/app/components/fusions/fusion-summary/fusion-summary.page.less @@ -0,0 +1,9 @@ +@import "themes/overrides/descriptions-overrides.less"; +:host { + display: block; +} + +nz-space, +nz-space-item { + width: 100%; +} diff --git a/client/src/app/components/fusions/fusion-summary/fusion-summary.page.ts b/client/src/app/components/fusions/fusion-summary/fusion-summary.page.ts new file mode 100644 index 000000000..f55a56904 --- /dev/null +++ b/client/src/app/components/fusions/fusion-summary/fusion-summary.page.ts @@ -0,0 +1,65 @@ +import { CommonModule } from '@angular/common' +import { Component, Input, OnInit } from '@angular/core' +import { CvcEmptyRevisableModule } from '@app/components/shared/empty-revisable/empty-revisable.module' +import { CvcLinkTagModule } from '@app/components/shared/link-tag/link-tag.module' +import { CvcTagListModule } from '@app/components/shared/tag-list/tag-list.module' +import { CvcSourceTagModule } from '@app/components/sources/source-tag/source-tag.module' + +import { + FusionSummaryFieldsFragment, + SubscribableEntities, + SubscribableInput, +} from '@app/generated/civic.apollo' +import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions' +import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzSpaceModule } from 'ng-zorro-antd/space' +import { NzTagModule } from 'ng-zorro-antd/tag' +import { NzTypographyModule } from 'ng-zorro-antd/typography' +import { CvcPipesModule } from '@app/core/pipes/pipes.module' +import { CvcUserTagModule } from '@app/components/users/user-tag/user-tag.module' +import { CvcGeneBaseSummaryComponent } from '@app/components/genes/gene-base-summary/gene-base-summary.page' +import { NzCardModule } from 'ng-zorro-antd/card' +import { CvcFeatureTagModule } from '@app/components/features/feature-tag/feature-tag.module' + +@Component({ + standalone: true, + selector: 'cvc-fusion-summary', + templateUrl: './fusion-summary.page.html', + styleUrls: ['./fusion-summary.page.less'], + imports: [ + CommonModule, + NzGridModule, + NzDescriptionsModule, + NzTypographyModule, + NzSpaceModule, + NzTagModule, + NzCardModule, + CvcEmptyRevisableModule, + CvcTagListModule, + CvcSourceTagModule, + CvcLinkTagModule, + CvcPipesModule, + CvcUserTagModule, + CvcGeneBaseSummaryComponent, + CvcFeatureTagModule, + ], +}) +export class FusionSummaryComponent implements OnInit { + @Input() fusion!: FusionSummaryFieldsFragment + @Input() featureId!: number + + subscribableEntity?: SubscribableInput + + ngOnInit() { + if (this.fusion == undefined) { + throw new Error('Must pass a Fusion into fusion summary') + } else if (this.featureId === undefined) { + throw new Error('Must pass a feature id into fusion summary') + } else { + this.subscribableEntity = { + id: this.featureId, + entityType: SubscribableEntities.Feature, + } + } + } +} diff --git a/client/src/app/components/genes/gene-base-summary/GeneBaseSummaryComponent.ts b/client/src/app/components/genes/gene-base-summary/GeneBaseSummaryComponent.ts new file mode 100644 index 000000000..e69de29bb diff --git a/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.html b/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.html new file mode 100644 index 000000000..b8e1776b9 --- /dev/null +++ b/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.html @@ -0,0 +1,94 @@ + + + + + + + + +

+ {{ gene.description }} +

+ + + + + + +
+
+
+ + + + + + + + + + + + + None specified + + + + + + {{ alias }} + + + None specified + + + + + + + DGIdb + + + ProteinPaint + + + + + +
+
diff --git a/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.less b/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.less new file mode 100644 index 000000000..e69de29bb diff --git a/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.ts b/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.ts new file mode 100644 index 000000000..620d7ca0f --- /dev/null +++ b/client/src/app/components/genes/gene-base-summary/gene-base-summary.page.ts @@ -0,0 +1,37 @@ +import { CommonModule } from '@angular/common' +import { Component, Input } from '@angular/core' +import { CvcEmptyRevisableModule } from '@app/components/shared/empty-revisable/empty-revisable.module' +import { CvcLinkTagModule } from '@app/components/shared/link-tag/link-tag.module' +import { CvcTagListModule } from '@app/components/shared/tag-list/tag-list.module' +import { CvcSourceTagModule } from '@app/components/sources/source-tag/source-tag.module' +import { CvcPipesModule } from '@app/core/pipes/pipes.module' +import { GeneBaseFieldsFragment } from '@app/generated/civic.apollo' +import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions' +import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzSpaceModule } from 'ng-zorro-antd/space' +import { NzTagModule } from 'ng-zorro-antd/tag' +import { NzTypographyModule } from 'ng-zorro-antd/typography' + +@Component({ + standalone: true, + selector: 'cvc-gene-base-summary', + templateUrl: './gene-base-summary.page.html', + styleUrls: ['./gene-base-summary.page.less'], + imports: [ + CommonModule, + NzGridModule, + NzDescriptionsModule, + NzTypographyModule, + NzSpaceModule, + NzTagModule, + + CvcEmptyRevisableModule, + CvcTagListModule, + CvcSourceTagModule, + CvcLinkTagModule, + CvcPipesModule, + ], +}) +export class CvcGeneBaseSummaryComponent { + @Input() gene?: GeneBaseFieldsFragment +} diff --git a/client/src/app/components/genes/genes-summary/genes-summary.module.ts b/client/src/app/components/genes/genes-summary/genes-summary.module.ts index 6e5324809..e2c0007c5 100644 --- a/client/src/app/components/genes/genes-summary/genes-summary.module.ts +++ b/client/src/app/components/genes/genes-summary/genes-summary.module.ts @@ -17,6 +17,7 @@ import { CvcUserTagModule } from '@app/components/users/user-tag/user-tag.module import { NzTagModule } from 'ng-zorro-antd/tag' import { NzTabsModule } from 'ng-zorro-antd/tabs' import { CvcMolecularProfilesMenuModule } from '@app/components/molecular-profiles/molecular-profiles-menu/molecular-profiles-menu.module' +import { CvcGeneBaseSummaryComponent } from '../gene-base-summary/gene-base-summary.page' @NgModule({ declarations: [GenesSummaryPage], @@ -40,6 +41,7 @@ import { CvcMolecularProfilesMenuModule } from '@app/components/molecular-profil CvcVariantsMenuModule, CvcMyGeneInfoModule, CvcMolecularProfilesMenuModule, + CvcGeneBaseSummaryComponent, ], exports: [GenesSummaryPage], }) diff --git a/client/src/app/components/genes/genes-summary/genes-summary.page.html b/client/src/app/components/genes/genes-summary/genes-summary.page.html index 0800b661b..f46a7aab3 100644 --- a/client/src/app/components/genes/genes-summary/genes-summary.page.html +++ b/client/src/app/components/genes/genes-summary/genes-summary.page.html @@ -1,100 +1,10 @@ - + - - - - - - - - -

- {{ gene.description }} -

- - - - - - -
-
-
- - - - - - - - - - - - - None specified - - - - - - {{ alias }} - - - None specified - - - - - - - DGIdb - - - ProteinPaint - - - - - -
+
-
- diff --git a/client/src/app/forms/components/feature-deprecate/feature-deprecate.form.html b/client/src/app/forms/components/feature-deprecate/feature-deprecate.form.html new file mode 100644 index 000000000..93b22cb65 --- /dev/null +++ b/client/src/app/forms/components/feature-deprecate/feature-deprecate.form.html @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + +
    +
  • {{ error }}
  • +
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+
diff --git a/client/src/app/forms/components/feature-deprecate/feature-deprecate.form.ts b/client/src/app/forms/components/feature-deprecate/feature-deprecate.form.ts new file mode 100644 index 000000000..15c963fa9 --- /dev/null +++ b/client/src/app/forms/components/feature-deprecate/feature-deprecate.form.ts @@ -0,0 +1,203 @@ +import { + ChangeDetectionStrategy, + Component, + Input, + OnDestroy, + OnInit, +} from '@angular/core' +import { + Maybe, + Organization, + DeprecateFeatureGQL, + DeprecateFeatureMutation, + DeprecateFeatureMutationVariables, + FeatureDeprecationReason, + FeatureDetailGQL, + VariantsForFeatureGQL, +} from '@app/generated/civic.apollo' +import { Observable, Subject } from 'rxjs' +import { NetworkErrorsService } from '@app/core/services/network-errors.service' +import { MutatorWithState } from '@app/core/utilities/mutation-state-wrapper' +import { RouterModule } from '@angular/router' +import { map, takeUntil, filter } from 'rxjs/operators' +import { Viewer, ViewerService } from '@app/core/services/viewer/viewer.service' +import { isNonNulled } from 'rxjs-etc' +import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' +import { CommonModule } from '@angular/common' +import { FormsModule, ReactiveFormsModule } from '@angular/forms' +import { LetDirective, PushPipe } from '@ngrx/component' +import { NzFormModule } from 'ng-zorro-antd/form' +import { NzAlertModule } from 'ng-zorro-antd/alert' +import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzButtonModule } from 'ng-zorro-antd/button' +import { NzSpinModule } from 'ng-zorro-antd/spin' +import { NzCardModule } from 'ng-zorro-antd/card' +import { NzSpaceModule } from 'ng-zorro-antd/space' +import { NzTypographyModule } from 'ng-zorro-antd/typography' +import { NzToolTipModule } from 'ng-zorro-antd/tooltip' +import { NzSelectModule } from 'ng-zorro-antd/select' +import { CvcFormErrorsAlertModule } from '../form-errors-alert/form-errors-alert.module' +import { CvcFormButtonsModule } from '../form-buttons/form-buttons.module' +import { CvcSubmitButtonTypeModule } from '@app/forms/types/submit-button/submit-button.module' +import { CvcCommentInputFormModule } from '../comment-input/comment-input.module' +import { CvcVariantTagModule } from '@app/components/variants/variant-tag/variant-tag.module' +import { LinkableVariant } from '@app/components/variants/variant-tag/variant-tag.component' + +@UntilDestroy() +@Component({ + standalone: true, + selector: 'cvc-feature-deprecate-form', + templateUrl: './feature-deprecate.form.html', + changeDetection: ChangeDetectionStrategy.OnPush, + imports: [ + CommonModule, + RouterModule, + FormsModule, + ReactiveFormsModule, + LetDirective, + PushPipe, + + NzFormModule, + NzAlertModule, + NzGridModule, + NzButtonModule, + NzSpinModule, + NzCardModule, + NzSpaceModule, + NzTypographyModule, + NzToolTipModule, + NzSelectModule, + + CvcFormErrorsAlertModule, + CvcFormButtonsModule, + CvcSubmitButtonTypeModule, + CvcCommentInputFormModule, + CvcVariantTagModule, + ], +}) +export class CvcFeatureDeprecateForm implements OnDestroy, OnInit { + @Input() featureId!: number + + private destroy$ = new Subject() + + deprecateFeatureMutator: MutatorWithState< + DeprecateFeatureGQL, + DeprecateFeatureMutation, + DeprecateFeatureMutationVariables + > + + success: boolean = false + errorMessages: string[] = [] + loading: boolean = false + + viewer$: Observable + + comment: string = '' + reason: Maybe + selectedOrg: Maybe + + undeprecatedVariants$?: Observable + variantListLoading$?: Observable + + constructor( + private deprecateFeatureGQL: DeprecateFeatureGQL, + private featureDetailGQL: FeatureDetailGQL, + private variantsForFeatureGQL: VariantsForFeatureGQL, + private networkErrorService: NetworkErrorsService, + private viewerService: ViewerService + ) { + this.deprecateFeatureMutator = new MutatorWithState(networkErrorService) + this.viewer$ = this.viewerService.viewer$ + } + + ngOnInit() { + this.viewerService.viewer$ + .pipe(untilDestroyed(this)) + .subscribe((v: Viewer) => { + this.selectedOrg = v.mostRecentOrg + }) + + if (this.featureId === undefined) { + throw new Error('Must pass a feature id into deprecate feature component') + } + + let queryRef = this.variantsForFeatureGQL.fetch({ + featureId: this.featureId, + }) + + this.undeprecatedVariants$ = queryRef.pipe( + map(({ data }) => data.variants.nodes), + filter(isNonNulled), + map((variants) => variants.filter((variant) => !variant.deprecated)) + ) + // + //this.mpsWithEvidence$ = queryRef.pipe( + // map(({ data }) => data.molecularProfiles.nodes), + // filter(isNonNulled), + // map((mps) => + // mps.filter( + // (mp) => + // mp.evidenceCountsByStatus.submittedCount + + // mp.evidenceCountsByStatus.acceptedCount > + // 0 + // ) + // ) + //) + + this.variantListLoading$ = queryRef.pipe(map(({ loading }) => loading)) + } + + deprecateFeature(): void { + this.errorMessages = [] + + if (this.reason && this.comment && this.featureId) { + let input = { + deprecationReason: this.reason, + comment: this.comment, + featureId: this.featureId, + organizationId: this.selectedOrg?.id, + } + + let state = this.deprecateFeatureMutator.mutate( + this.deprecateFeatureGQL, + input, + { + refetchQueries: [ + { + query: this.featureDetailGQL.document, + variables: { featureId: this.featureId }, + }, + ], + } + ) + + state.submitSuccess$.pipe(takeUntil(this.destroy$)).subscribe((res) => { + if (res) { + this.success = true + this.comment = '' + } + }) + + state.submitError$.pipe(takeUntil(this.destroy$)).subscribe((res) => { + if (res.length > 0) { + this.errorMessages = res + } + }) + + state.isSubmitting$ + .pipe(takeUntil(this.destroy$)) + .subscribe((loading) => { + this.loading = loading + }) + } + } + + onSuccessBannerClose() { + this.success = false + } + + ngOnDestroy(): void { + this.destroy$.next() + this.destroy$.complete() + } +} diff --git a/client/src/app/forms/components/feature-deprecate/feature-deprecate.query.gql b/client/src/app/forms/components/feature-deprecate/feature-deprecate.query.gql new file mode 100644 index 000000000..7b7c10844 --- /dev/null +++ b/client/src/app/forms/components/feature-deprecate/feature-deprecate.query.gql @@ -0,0 +1,32 @@ +mutation DeprecateFeature( + $featureId: Int! + $deprecationReason: FeatureDeprecationReason! + $comment: String! + $organizationId: Int +) { + deprecateFeature( + input: { + featureId: $featureId + deprecationReason: $deprecationReason + comment: $comment + organizationId: $organizationId + } + ) { + feature { + id + name + } + } +} + +query VariantsForFeature($featureId: Int!) { + variants(featureId: $featureId, first: 50) { + nodes { + id + name + link + deprecated + flagged + } + } +} diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index eebe1201a..06fe3e4f6 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -577,6 +577,12 @@ export type CreateFeaturePayloadFieldPolicy = { feature?: FieldPolicy | FieldReadFunction, new?: FieldPolicy | FieldReadFunction }; +export type CreateFusionFeaturePayloadKeySpecifier = ('clientMutationId' | 'feature' | 'new' | CreateFusionFeaturePayloadKeySpecifier)[]; +export type CreateFusionFeaturePayloadFieldPolicy = { + clientMutationId?: FieldPolicy | FieldReadFunction, + feature?: FieldPolicy | FieldReadFunction, + new?: FieldPolicy | FieldReadFunction +}; export type CreateMolecularProfilePayloadKeySpecifier = ('clientMutationId' | 'molecularProfile' | CreateMolecularProfilePayloadKeySpecifier)[]; export type CreateMolecularProfilePayloadFieldPolicy = { clientMutationId?: FieldPolicy | FieldReadFunction, @@ -964,6 +970,34 @@ export type FlaggableFieldPolicy = { link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; +export type FusionKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'fivePrimeGene' | 'fivePrimePartnerStatus' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'threePrimeGene' | 'threePrimePartnerStatus' | 'variants' | FusionKeySpecifier)[]; +export type FusionFieldPolicy = { + comments?: FieldPolicy | FieldReadFunction, + creationActivity?: FieldPolicy | FieldReadFunction, + deprecated?: FieldPolicy | FieldReadFunction, + deprecationActivity?: FieldPolicy | FieldReadFunction, + deprecationReason?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + featureAliases?: FieldPolicy | FieldReadFunction, + featureInstance?: FieldPolicy | FieldReadFunction, + fivePrimeGene?: FieldPolicy | FieldReadFunction, + fivePrimePartnerStatus?: FieldPolicy | FieldReadFunction, + flagged?: FieldPolicy | FieldReadFunction, + flags?: FieldPolicy | FieldReadFunction, + fullName?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, + lastCommentEvent?: FieldPolicy | FieldReadFunction, + lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, + link?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + revisions?: FieldPolicy | FieldReadFunction, + sources?: FieldPolicy | FieldReadFunction, + threePrimeGene?: FieldPolicy | FieldReadFunction, + threePrimePartnerStatus?: FieldPolicy | FieldReadFunction, + variants?: FieldPolicy | FieldReadFunction +}; export type GeneKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'entrezId' | 'events' | 'featureAliases' | 'featureInstance' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'myGeneInfoDetails' | 'name' | 'revisions' | 'sources' | 'variants' | GeneKeySpecifier)[]; export type GeneFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, @@ -1277,7 +1311,7 @@ export type MolecularProfileTextSegmentKeySpecifier = ('text' | MolecularProfile export type MolecularProfileTextSegmentFieldPolicy = { text?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; +export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createFusionFeature' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; export type MutationFieldPolicy = { acceptRevisions?: FieldPolicy | FieldReadFunction, addComment?: FieldPolicy | FieldReadFunction, @@ -1285,6 +1319,7 @@ export type MutationFieldPolicy = { addRemoteCitation?: FieldPolicy | FieldReadFunction, addTherapy?: FieldPolicy | FieldReadFunction, createFeature?: FieldPolicy | FieldReadFunction, + createFusionFeature?: FieldPolicy | FieldReadFunction, createMolecularProfile?: FieldPolicy | FieldReadFunction, createVariant?: FieldPolicy | FieldReadFunction, deprecateComplexMolecularProfile?: FieldPolicy | FieldReadFunction, @@ -2480,6 +2515,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CreateFeaturePayloadKeySpecifier | (() => undefined | CreateFeaturePayloadKeySpecifier), fields?: CreateFeaturePayloadFieldPolicy, }, + CreateFusionFeaturePayload?: Omit & { + keyFields?: false | CreateFusionFeaturePayloadKeySpecifier | (() => undefined | CreateFusionFeaturePayloadKeySpecifier), + fields?: CreateFusionFeaturePayloadFieldPolicy, + }, CreateMolecularProfilePayload?: Omit & { keyFields?: false | CreateMolecularProfilePayloadKeySpecifier | (() => undefined | CreateMolecularProfilePayloadKeySpecifier), fields?: CreateMolecularProfilePayloadFieldPolicy, @@ -2628,6 +2667,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | FlaggableKeySpecifier | (() => undefined | FlaggableKeySpecifier), fields?: FlaggableFieldPolicy, }, + Fusion?: Omit & { + keyFields?: false | FusionKeySpecifier | (() => undefined | FusionKeySpecifier), + fields?: FusionFieldPolicy, + }, Gene?: Omit & { keyFields?: false | GeneKeySpecifier | (() => undefined | GeneKeySpecifier), fields?: GeneFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 7716db2a5..919c6646f 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -1206,7 +1206,35 @@ export type CreateFeaturePayload = { clientMutationId?: Maybe; /** The newly created Feature. */ feature: Feature; - /** True if the feature was newly created. False if the returned variant was already in the database. */ + /** True if the feature was newly created. False if the returned feature was already in the database. */ + new: Scalars['Boolean']; +}; + +/** Autogenerated input type of CreateFusionFeature */ +export type CreateFusionFeatureInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The 5" fusion partner */ + fivePrimeGene: FusionPartnerInput; + /** + * The ID of the organization to credit the user's contributions to. + * If the user belongs to a single organization or no organizations, this field is not required. + * This field is required if the user belongs to more than one organization. + * The user must belong to the organization provided. + */ + organizationId?: InputMaybe; + /** The 3" fusion partner */ + threePrimeGene: FusionPartnerInput; +}; + +/** Autogenerated return type of CreateFusionFeature. */ +export type CreateFusionFeaturePayload = { + __typename: 'CreateFusionFeaturePayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The newly created Feature. */ + feature: Feature; + /** True if the feature was newly created. False if the returned feature was already in the database. */ new: Scalars['Boolean']; }; @@ -2231,7 +2259,7 @@ export enum FeatureDeprecationReason { } /** The specific type of a feature instance */ -export type FeatureInstance = Factor | Gene; +export type FeatureInstance = Factor | Fusion | Gene; export enum FeatureInstanceTypes { Factor = 'FACTOR', @@ -2433,6 +2461,119 @@ export type FlaggableInput = { id: Scalars['Int']; }; +/** The Feature that a Variant can belong to */ +export type Fusion = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions & { + __typename: 'Fusion'; + /** List and filter comments. */ + comments: CommentConnection; + creationActivity?: Maybe; + deprecated: Scalars['Boolean']; + deprecationActivity?: Maybe; + deprecationReason?: Maybe; + description?: Maybe; + /** List and filter events for an object */ + events: EventConnection; + featureAliases: Array; + featureInstance: FeatureInstance; + fivePrimeGene?: Maybe; + fivePrimePartnerStatus: FusionPartnerStatus; + flagged: Scalars['Boolean']; + /** List and filter flags. */ + flags: FlagConnection; + fullName?: Maybe; + id: Scalars['Int']; + lastAcceptedRevisionEvent?: Maybe; + lastCommentEvent?: Maybe; + lastSubmittedRevisionEvent?: Maybe; + link: Scalars['String']; + name: Scalars['String']; + /** List and filter revisions. */ + revisions: RevisionConnection; + sources: Array; + threePrimeGene?: Maybe; + threePrimePartnerStatus: FusionPartnerStatus; + /** List and filter variants. */ + variants: VariantConnection; +}; + + +/** The Feature that a Variant can belong to */ +export type FusionCommentsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + mentionedEntity?: InputMaybe; + mentionedRole?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + + +/** The Feature that a Variant can belong to */ +export type FusionEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + + +/** The Feature that a Variant can belong to */ +export type FusionFlagsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; + sortBy?: InputMaybe; + state?: InputMaybe; +}; + + +/** The Feature that a Variant can belong to */ +export type FusionRevisionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; + sortBy?: InputMaybe; + status?: InputMaybe; +}; + + +/** The Feature that a Variant can belong to */ +export type FusionVariantsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; +}; + +/** The fusion partner's status and gene ID (if applicable) */ +export type FusionPartnerInput = { + /** The CIViC gene ID of the partner, if known */ + geneId?: InputMaybe; + /** The status of the fusion partner */ + partnerStatus: FusionPartnerStatus; +}; + +export enum FusionPartnerStatus { + Known = 'KNOWN', + Multiple = 'MULTIPLE', + Unknown = 'UNKNOWN' +} + /** The Feature that a Variant can belong to */ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions & { __typename: 'Gene'; @@ -3287,6 +3428,8 @@ export type Mutation = { addTherapy?: Maybe; /** Create a new Feature in the database. */ createFeature?: Maybe; + /** Create a new Fusion Feature in the database. */ + createFusionFeature?: Maybe; /** Create a new Molecular Profile in order to attach Evidence Items to it. */ createMolecularProfile?: Maybe; /** Create a new Variant to the database. */ @@ -3390,6 +3533,11 @@ export type MutationCreateFeatureArgs = { }; +export type MutationCreateFusionFeatureArgs = { + input: CreateFusionFeatureInput; +}; + + export type MutationCreateMolecularProfileArgs = { input: CreateMolecularProfileInput; }; @@ -6700,45 +6848,45 @@ export type ActivityFeedQueryVariables = Exact<{ }>; -export type ActivityFeedQuery = { __typename: 'Query', activities: { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> } }; +export type ActivityFeedQuery = { __typename: 'Query', activities: { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> } }; -export type ActivityFeedFragment = { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> }; +export type ActivityFeedFragment = { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> }; -type ActivityFeedNode_AcceptRevisionsActivity_Fragment = { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_AcceptRevisionsActivity_Fragment = { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CommentActivity_Fragment = { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CommentActivity_Fragment = { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment = { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment = { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateFeatureActivity_Fragment = { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateFeatureActivity_Fragment = { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateVariantActivity_Fragment = { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateVariantActivity_Fragment = { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment = { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment = { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateFeatureActivity_Fragment = { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateFeatureActivity_Fragment = { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateVariantActivity_Fragment = { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateVariantActivity_Fragment = { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_FlagEntityActivity_Fragment = { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_FlagEntityActivity_Fragment = { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ModerateAssertionActivity_Fragment = { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ModerateAssertionActivity_Fragment = { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ModerateEvidenceItemActivity_Fragment = { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ModerateEvidenceItemActivity_Fragment = { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_RejectRevisionsActivity_Fragment = { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_RejectRevisionsActivity_Fragment = { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ResolveFlagActivity_Fragment = { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ResolveFlagActivity_Fragment = { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SubmitAssertionActivity_Fragment = { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SubmitAssertionActivity_Fragment = { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SubmitEvidenceItemActivity_Fragment = { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SubmitEvidenceItemActivity_Fragment = { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SuggestRevisionSetActivity_Fragment = { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SuggestRevisionSetActivity_Fragment = { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SuggestSourceActivity_Fragment = { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SuggestSourceActivity_Fragment = { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment = { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment = { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; export type ActivityFeedNodeFragment = ActivityFeedNode_AcceptRevisionsActivity_Fragment | ActivityFeedNode_CommentActivity_Fragment | ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_CreateFeatureActivity_Fragment | ActivityFeedNode_CreateVariantActivity_Fragment | ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_DeprecateFeatureActivity_Fragment | ActivityFeedNode_DeprecateVariantActivity_Fragment | ActivityFeedNode_FlagEntityActivity_Fragment | ActivityFeedNode_ModerateAssertionActivity_Fragment | ActivityFeedNode_ModerateEvidenceItemActivity_Fragment | ActivityFeedNode_RejectRevisionsActivity_Fragment | ActivityFeedNode_ResolveFlagActivity_Fragment | ActivityFeedNode_SubmitAssertionActivity_Fragment | ActivityFeedNode_SubmitEvidenceItemActivity_Fragment | ActivityFeedNode_SuggestRevisionSetActivity_Fragment | ActivityFeedNode_SuggestSourceActivity_Fragment | ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment; @@ -6837,9 +6985,9 @@ export type CommentPopoverQueryVariables = Exact<{ }>; -export type CommentPopoverQuery = { __typename: 'Query', comment?: { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } } | undefined }; +export type CommentPopoverQuery = { __typename: 'Query', comment?: { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } } | undefined }; -export type CommentPopoverFragment = { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } }; +export type CommentPopoverFragment = { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } }; export type DiseasePopoverQueryVariables = Exact<{ diseaseId: Scalars['Int']; @@ -6895,11 +7043,11 @@ export type EventFeedQueryVariables = Exact<{ }>; -export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; +export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; -export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; +export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; -export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; +export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; export type EvidencePopoverQueryVariables = Exact<{ evidenceId: Scalars['Int']; @@ -6950,9 +7098,9 @@ export type FeaturePopoverQueryVariables = Exact<{ }>; -export type FeaturePopoverQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Gene' }, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | undefined }; +export type FeaturePopoverQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | undefined }; -export type FeaturePopoverFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Gene' }, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; +export type FeaturePopoverFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; export type BrowseFeaturesQueryVariables = Exact<{ featureName?: InputMaybe; @@ -6985,20 +7133,20 @@ export type FlagListQueryVariables = Exact<{ }>; -export type FlagListQuery = { __typename: 'Query', flags: { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> } }; +export type FlagListQuery = { __typename: 'Query', flags: { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> } }; -export type FlagListFragment = { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> }; +export type FlagListFragment = { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> }; -export type FlagFragment = { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type FlagFragment = { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; export type FlagPopoverQueryVariables = Exact<{ flagId: Scalars['Int']; }>; -export type FlagPopoverQuery = { __typename: 'Query', flag?: { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } } | undefined }; +export type FlagPopoverQuery = { __typename: 'Query', flag?: { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } } | undefined }; -export type FlagPopoverFragment = { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } }; +export type FlagPopoverFragment = { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } }; export type QuicksearchQueryVariables = Exact<{ query: Scalars['String']; @@ -7176,9 +7324,9 @@ export type RevisionPopoverQueryVariables = Exact<{ }>; -export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } } | undefined }; +export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } } | undefined }; -export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; +export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; export type RevisionsQueryVariables = Exact<{ subject?: InputMaybe; @@ -7607,6 +7755,23 @@ export type LinkableFeatureQueryVariables = Exact<{ export type LinkableFeatureQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, link: string } | undefined }; +export type DeprecateFeatureMutationVariables = Exact<{ + featureId: Scalars['Int']; + deprecationReason: FeatureDeprecationReason; + comment: Scalars['String']; + organizationId?: InputMaybe; +}>; + + +export type DeprecateFeatureMutation = { __typename: 'Mutation', deprecateFeature?: { __typename: 'DeprecateFeaturePayload', feature?: { __typename: 'Feature', id: number, name: string } | undefined } | undefined }; + +export type VariantsForFeatureQueryVariables = Exact<{ + featureId: Scalars['Int']; +}>; + + +export type VariantsForFeatureQuery = { __typename: 'Query', variants: { __typename: 'VariantInterfaceConnection', nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> } }; + export type FlagEntityMutationVariables = Exact<{ input: FlagEntityInput; }>; @@ -7748,9 +7913,9 @@ export type FactorRevisableFieldsQueryVariables = Exact<{ }>; -export type FactorRevisableFieldsQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, description?: string | undefined, featureAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }>, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Gene' } } | undefined }; +export type FactorRevisableFieldsQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, description?: string | undefined, featureAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }>, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene' } } | undefined }; -export type RevisableFactorFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, description?: string | undefined, featureAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }>, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Gene' } }; +export type RevisableFactorFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, description?: string | undefined, featureAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }>, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene' } }; export type SuggestFactorRevisionMutationVariables = Exact<{ input: SuggestFactorRevisionInput; @@ -7999,9 +8164,9 @@ export type QuickAddFeatureMutationVariables = Exact<{ }>; -export type QuickAddFeatureMutation = { __typename: 'Mutation', createFeature?: { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, name: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } } | undefined }; +export type QuickAddFeatureMutation = { __typename: 'Mutation', createFeature?: { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } } | undefined }; -export type QuickAddFeatureFieldsFragment = { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, name: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } }; +export type QuickAddFeatureFieldsFragment = { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } }; export type FeatureSelectTypeaheadQueryVariables = Exact<{ queryTerm: Scalars['String']; @@ -8009,16 +8174,16 @@ export type FeatureSelectTypeaheadQueryVariables = Exact<{ }>; -export type FeatureSelectTypeaheadQuery = { __typename: 'Query', featureTypeahead: Array<{ __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Gene', entrezId: number } }> }; +export type FeatureSelectTypeaheadQuery = { __typename: 'Query', featureTypeahead: Array<{ __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene', entrezId: number } }> }; export type FeatureSelectTagQueryVariables = Exact<{ featureId: Scalars['Int']; }>; -export type FeatureSelectTagQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Gene', entrezId: number } } | undefined }; +export type FeatureSelectTagQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene', entrezId: number } } | undefined }; -export type FeatureSelectTypeaheadFieldsFragment = { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Gene', entrezId: number } }; +export type FeatureSelectTypeaheadFieldsFragment = { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene', entrezId: number } }; export type MolecularProfileSelectTypeaheadQueryVariables = Exact<{ name: Scalars['String']; @@ -8304,20 +8469,24 @@ export type FeatureDetailQueryVariables = Exact<{ }>; -export type FeatureDetailQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, deprecated: boolean, deprecationReason?: FeatureDeprecationReason | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, featureInstance: { __typename: 'Factor' } | { __typename: 'Gene' }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; +export type FeatureDetailQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, deprecated: boolean, deprecationReason?: FeatureDeprecationReason | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; -export type FeatureDetailFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, deprecated: boolean, deprecationReason?: FeatureDeprecationReason | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, featureInstance: { __typename: 'Factor' } | { __typename: 'Gene' }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +export type FeatureDetailFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, deprecated: boolean, deprecationReason?: FeatureDeprecationReason | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type FeaturesSummaryQueryVariables = Exact<{ featureId: Scalars['Int']; }>; -export type FeaturesSummaryQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, name: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } | undefined }; +export type FeaturesSummaryQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } | undefined }; -export type FeatureSummaryFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, name: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } }; +export type FeatureSummaryFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } }; -export type GeneSummaryFieldsFragment = { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, name: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> }; +export type FusionSummaryFieldsFragment = { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; + +export type GeneBaseFieldsFragment = { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> }; + +export type GeneSummaryFieldsFragment = { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> }; export type FactorSummaryFieldsFragment = { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8462,22 +8631,22 @@ export type UserNotificationsQueryVariables = Exact<{ }>; -export type UserNotificationsQuery = { __typename: 'Query', notifications: { __typename: 'NotificationConnection', eventTypes: Array, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, notificationSubjects: Array<{ __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined } | undefined }> } }; +export type UserNotificationsQuery = { __typename: 'Query', notifications: { __typename: 'NotificationConnection', eventTypes: Array, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, notificationSubjects: Array<{ __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined } | undefined }> } }; export type NotificationOrganizationFragment = { __typename: 'Organization', id: number, name: string }; export type NotificationOriginatingUsersFragment = { __typename: 'User', id: number, displayName: string }; -export type NotificationFeedSubjectsFragment = { __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }; +export type NotificationFeedSubjectsFragment = { __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }; -export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; +export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; export type UpdateNotificationStatusMutationVariables = Exact<{ input: UpdateNotificationStatusInput; }>; -export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; +export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; export type UnsubscribeMutationVariables = Exact<{ input: UnsubscribeInput; @@ -10190,13 +10359,16 @@ export const EvidenceSelectTypeaheadFieldsFragmentDoc = gql` status } `; -export const GeneSummaryFieldsFragmentDoc = gql` - fragment GeneSummaryFields on Gene { +export const GeneBaseFieldsFragmentDoc = gql` + fragment GeneBaseFields on Gene { id description featureAliases entrezId + deprecated + flagged name + link sources { id citation @@ -10205,9 +10377,14 @@ export const GeneSummaryFieldsFragmentDoc = gql` displayType sourceType } - myGeneInfoDetails } `; +export const GeneSummaryFieldsFragmentDoc = gql` + fragment GeneSummaryFields on Gene { + ...GeneBaseFields + myGeneInfoDetails +} + ${GeneBaseFieldsFragmentDoc}`; export const NcitDetailsFragmentDoc = gql` fragment NcitDetails on NcitDetails { synonyms { @@ -10259,6 +10436,48 @@ export const FactorSummaryFieldsFragmentDoc = gql` } } ${NcitDetailsFragmentDoc}`; +export const FusionSummaryFieldsFragmentDoc = gql` + fragment FusionSummaryFields on Fusion { + id + description + featureAliases + name + sources { + id + citation + link + sourceUrl + displayType + sourceType + } + fivePrimeGene { + ...GeneBaseFields + } + threePrimeGene { + ...GeneBaseFields + } + fivePrimePartnerStatus + threePrimePartnerStatus + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } +} + ${GeneBaseFieldsFragmentDoc}`; export const FeatureSummaryFieldsFragmentDoc = gql` fragment FeatureSummaryFields on Feature { id @@ -10273,10 +10492,14 @@ export const FeatureSummaryFieldsFragmentDoc = gql` ... on Factor { ...FactorSummaryFields } + ... on Fusion { + ...FusionSummaryFields + } } } ${GeneSummaryFieldsFragmentDoc} -${FactorSummaryFieldsFragmentDoc}`; +${FactorSummaryFieldsFragmentDoc} +${FusionSummaryFieldsFragmentDoc}`; export const QuickAddFeatureFieldsFragmentDoc = gql` fragment QuickAddFeatureFields on CreateFeaturePayload { clientMutationId @@ -13572,6 +13795,53 @@ export const LinkableFeatureDocument = gql` export class LinkableFeatureGQL extends Apollo.Query { document = LinkableFeatureDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const DeprecateFeatureDocument = gql` + mutation DeprecateFeature($featureId: Int!, $deprecationReason: FeatureDeprecationReason!, $comment: String!, $organizationId: Int) { + deprecateFeature( + input: {featureId: $featureId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + feature { + id + name + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class DeprecateFeatureGQL extends Apollo.Mutation { + document = DeprecateFeatureDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const VariantsForFeatureDocument = gql` + query VariantsForFeature($featureId: Int!) { + variants(featureId: $featureId, first: 50) { + nodes { + id + name + link + deprecated + flagged + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class VariantsForFeatureGQL extends Apollo.Query { + document = VariantsForFeatureDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } diff --git a/client/src/app/generated/civic.possible-types.ts b/client/src/app/generated/civic.possible-types.ts index 700cc5897..4c452d8b0 100644 --- a/client/src/app/generated/civic.possible-types.ts +++ b/client/src/app/generated/civic.possible-types.ts @@ -38,6 +38,7 @@ "FactorVariant", "Feature", "Flag", + "Fusion", "Gene", "GeneVariant", "MolecularProfile", @@ -55,6 +56,7 @@ "FactorVariant", "Feature", "Flag", + "Fusion", "Gene", "GeneVariant", "MolecularProfile", @@ -69,6 +71,7 @@ "FactorVariant", "Feature", "Flag", + "Fusion", "Gene", "GeneVariant", "MolecularProfile", @@ -82,6 +85,7 @@ ], "FeatureInstance": [ "Factor", + "Fusion", "Gene" ], "Flaggable": [ @@ -91,6 +95,7 @@ "Factor", "FactorVariant", "Feature", + "Fusion", "Gene", "GeneVariant", "MolecularProfile", @@ -109,6 +114,7 @@ "Factor", "FactorVariant", "Feature", + "Fusion", "Gene", "GeneVariant", "Variant" @@ -129,6 +135,7 @@ "Factor", "FactorVariant", "Feature", + "Fusion", "Gene", "GeneVariant", "MolecularProfile", diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 448f8d376..0bcc94515 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -1899,7 +1899,55 @@ type CreateFeaturePayload { feature: Feature! """ - True if the feature was newly created. False if the returned variant was already in the database. + True if the feature was newly created. False if the returned feature was already in the database. + """ + new: Boolean! +} + +""" +Autogenerated input type of CreateFusionFeature +""" +input CreateFusionFeatureInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The 5" fusion partner + """ + fivePrimeGene: FusionPartnerInput! + + """ + The ID of the organization to credit the user's contributions to. + If the user belongs to a single organization or no organizations, this field is not required. + This field is required if the user belongs to more than one organization. + The user must belong to the organization provided. + """ + organizationId: Int + + """ + The 3" fusion partner + """ + threePrimeGene: FusionPartnerInput! +} + +""" +Autogenerated return type of CreateFusionFeature. +""" +type CreateFusionFeaturePayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The newly created Feature. + """ + feature: Feature! + + """ + True if the feature was newly created. False if the returned feature was already in the database. """ new: Boolean! } @@ -3736,7 +3784,7 @@ enum FeatureDeprecationReason { """ The specific type of a feature instance """ -union FeatureInstance = Factor | Gene +union FeatureInstance = Factor | Fusion | Gene enum FeatureInstanceTypes { FACTOR @@ -4083,6 +4131,260 @@ input FlaggableInput { id: Int! } +""" +The Feature that a Variant can belong to +""" +type Fusion implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions { + """ + List and filter comments. + """ + comments( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to comments that mention a certain entity + """ + mentionedEntity: TaggableEntityInput + + """ + Limit to comments that mention a certain user role + """ + mentionedRole: UserRole + + """ + Limit to comments that mention a certain user + """ + mentionedUserId: Int + + """ + Limit to comments by a certain user + """ + originatingUserId: Int + + """ + Sort order for the comments. Defaults to most recent. + """ + sortBy: DateSort + ): CommentConnection! + creationActivity: CreateFeatureActivity + deprecated: Boolean! + deprecationActivity: DeprecateFeatureActivity + deprecationReason: FeatureDeprecationReason + description: String + + """ + List and filter events for an object + """ + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + eventType: EventAction + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + organizationId: Int + originatingUserId: Int + + """ + Sort order for the events. Defaults to most recent. + """ + sortBy: DateSort + ): EventConnection! + featureAliases: [String!]! + featureInstance: FeatureInstance! + fivePrimeGene: Gene + fivePrimePartnerStatus: FusionPartnerStatus! + flagged: Boolean! + + """ + List and filter flags. + """ + flags( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Limit to flags added by a certain user + """ + flaggingUserId: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to flags resolved by a certain user + """ + resolvingUserId: Int + + """ + Sort order for the flags. Defaults to most recent. + """ + sortBy: DateSort + + """ + Limit to flags in a particular state + """ + state: FlagState + ): FlagConnection! + fullName: String + id: Int! + lastAcceptedRevisionEvent: Event + lastCommentEvent: Event + lastSubmittedRevisionEvent: Event + link: String! + name: String! + + """ + List and filter revisions. + """ + revisions( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Limit to revisions on a particular field. + """ + fieldName: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to revisions by a certain user + """ + originatingUserId: Int + + """ + Limit to revisions suggested as part of a single Revision Set. + """ + revisionSetId: Int + + """ + Sort order for the comments. Defaults to most recent. + """ + sortBy: DateSort + + """ + Limit to revisions with a certain status + """ + status: RevisionStatus + ): RevisionConnection! + sources: [Source!]! + threePrimeGene: Gene + threePrimePartnerStatus: FusionPartnerStatus! + + """ + List and filter variants. + """ + variants( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Left anchored filtering for variant name and aliases. + """ + name: String + ): VariantConnection! +} + +""" +The fusion partner's status and gene ID (if applicable) +""" +input FusionPartnerInput { + """ + The CIViC gene ID of the partner, if known + """ + geneId: Int + + """ + The status of the fusion partner + """ + partnerStatus: FusionPartnerStatus! +} + +enum FusionPartnerStatus { + KNOWN + MULTIPLE + UNKNOWN +} + """ The Feature that a Variant can belong to """ @@ -5669,6 +5971,16 @@ type Mutation { input: CreateFeatureInput! ): CreateFeaturePayload + """ + Create a new Fusion Feature in the database. + """ + createFusionFeature( + """ + Parameters for CreateFusionFeature + """ + input: CreateFusionFeatureInput! + ): CreateFusionFeaturePayload + """ Create a new Molecular Profile in order to attach Evidence Items to it. """ diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index fbc021687..daf74a763 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -8934,6 +8934,11 @@ "name": "Flag", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -9766,7 +9771,129 @@ }, { "name": "new", - "description": "True if the feature was newly created. False if the returned variant was already in the database.", + "description": "True if the feature was newly created. False if the returned feature was already in the database.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CreateFusionFeatureInput", + "description": "Autogenerated input type of CreateFusionFeature", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": "The ID of the organization to credit the user's contributions to.\nIf the user belongs to a single organization or no organizations, this field is not required.\nThis field is required if the user belongs to more than one organization.\nThe user must belong to the organization provided.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeGene", + "description": "The 5\" fusion partner", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "FusionPartnerInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeGene", + "description": "The 3\" fusion partner", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "FusionPartnerInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CreateFusionFeaturePayload", + "description": "Autogenerated return type of CreateFusionFeature.", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "feature", + "description": "The newly created Feature.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Feature", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "new", + "description": "True if the feature was newly created. False if the returned feature was already in the database.", "args": [], "type": { "kind": "NON_NULL", @@ -12728,250 +12855,260 @@ }, { "kind": "OBJECT", - "name": "Gene", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GeneVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "GeneVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MolecularProfile", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Revision", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SourceSuggestion", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Variant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Variant", - "ofType": null - } - ] - }, - { - "kind": "INTERFACE", - "name": "EventSubject", - "description": "The subject of an event log event.", - "fields": [ - { - "name": "events", - "description": "List and filter events for an object", - "args": [ - { - "name": "eventType", - "description": null, - "type": { - "kind": "ENUM", - "name": "EventAction", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "originatingUserId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "organizationId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort order for the events. Defaults to most recent.", - "type": { - "kind": "INPUT_OBJECT", - "name": "DateSort", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Returns the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Returns the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Returns the first _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Returns the last _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "EventConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "link", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Assertion", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "EvidenceItem", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Factor", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FactorVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FactorVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Feature", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Flag", + "name": "Fusion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Gene", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "GeneVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "GeneVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MolecularProfile", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Revision", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "SourceSuggestion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Variant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Variant", + "ofType": null + } + ] + }, + { + "kind": "INTERFACE", + "name": "EventSubject", + "description": "The subject of an event log event.", + "fields": [ + { + "name": "events", + "description": "List and filter events for an object", + "args": [ + { + "name": "eventType", + "description": null, + "type": { + "kind": "ENUM", + "name": "EventAction", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "originatingUserId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the events. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "link", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "Assertion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "EvidenceItem", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Factor", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FactorVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FactorVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Feature", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Flag", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Fusion", "ofType": null }, { @@ -17911,6 +18048,11 @@ "name": "Factor", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -19197,7 +19339,962 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "FlagConnection", + "name": "FlagConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "link", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "Assertion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "BrowseFeature", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "EvidenceItem", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Factor", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FactorVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FactorVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Feature", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Gene", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "GeneVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "GeneVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MolecularProfile", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Variant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Variant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "VariantGroup", + "ofType": null + } + ] + }, + { + "kind": "ENUM", + "name": "FlaggableEntities", + "description": "Enumeration of all entities in CIViC that can be flagged.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "FEATURE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VARIANT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "EVIDENCE_ITEM", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ASSERTION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "VARIANT_GROUP", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MOLECULAR_PROFILE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "FlaggableInput", + "description": "Entity to flag", + "fields": null, + "inputFields": [ + { + "name": "id", + "description": "The ID of the entity.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entityType", + "description": "The type of the entity to flag.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FlaggableEntities", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "Float", + "description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Fusion", + "description": "The Feature that a Variant can belong to", + "fields": [ + { + "name": "comments", + "description": "List and filter comments.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to comments by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedUserId", + "description": "Limit to comments that mention a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedRole", + "description": "Limit to comments that mention a certain user role", + "type": { + "kind": "ENUM", + "name": "UserRole", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedEntity", + "description": "Limit to comments that mention a certain entity", + "type": { + "kind": "INPUT_OBJECT", + "name": "TaggableEntityInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CommentConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "creationActivity", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "CreateFeatureActivity", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationActivity", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "DeprecateFeatureActivity", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationReason", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "FeatureDeprecationReason", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "description", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "events", + "description": "List and filter events for an object", + "args": [ + { + "name": "eventType", + "description": null, + "type": { + "kind": "ENUM", + "name": "EventAction", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "originatingUserId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the events. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "featureAliases", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "featureInstance", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "UNION", + "name": "FeatureInstance", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeGene", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Gene", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimePartnerStatus", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FusionPartnerStatus", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "flagged", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "flags", + "description": "List and filter flags.", + "args": [ + { + "name": "flaggingUserId", + "description": "Limit to flags added by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "resolvingUserId", + "description": "Limit to flags resolved by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "state", + "description": "Limit to flags in a particular state", + "type": { + "kind": "ENUM", + "name": "FlagState", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the flags. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "FlagConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fullName", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastAcceptedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastCommentEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastSubmittedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "link", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "revisions", + "description": "List and filter revisions.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to revisions by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "Limit to revisions with a certain status", + "type": { + "kind": "ENUM", + "name": "RevisionStatus", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fieldName", + "description": "Limit to revisions on a particular field.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "revisionSetId", + "description": "Limit to revisions suggested as part of a single Revision Set.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RevisionConnection", "ofType": null } }, @@ -19205,31 +20302,51 @@ "deprecationReason": null }, { - "name": "id", + "name": "sources", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Source", + "ofType": null + } + } } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "link", + "name": "threePrimeGene", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Gene", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimePartnerStatus", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "FusionPartnerStatus", "ofType": null } }, @@ -19237,15 +20354,76 @@ "deprecationReason": null }, { - "name": "name", - "description": null, - "args": [], + "name": "variants", + "description": "List and filter variants.", + "args": [ + { + "name": "name", + "description": "Left anchored filtering for variant name and aliases.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "OBJECT", + "name": "VariantConnection", "ofType": null } }, @@ -19254,143 +20432,56 @@ } ], "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Assertion", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "BrowseFeature", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "EvidenceItem", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Factor", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FactorVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "FactorVariant", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Feature", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Gene", - "ofType": null - }, + "interfaces": [ { - "kind": "OBJECT", - "name": "GeneVariant", + "kind": "INTERFACE", + "name": "Commentable", "ofType": null }, { - "kind": "OBJECT", - "name": "GeneVariant", + "kind": "INTERFACE", + "name": "EventOriginObject", "ofType": null }, { - "kind": "OBJECT", - "name": "MolecularProfile", + "kind": "INTERFACE", + "name": "EventSubject", "ofType": null }, { - "kind": "OBJECT", - "name": "Variant", + "kind": "INTERFACE", + "name": "Flaggable", "ofType": null }, { - "kind": "OBJECT", - "name": "Variant", + "kind": "INTERFACE", + "name": "MolecularProfileComponent", "ofType": null }, { - "kind": "OBJECT", - "name": "VariantGroup", + "kind": "INTERFACE", + "name": "WithRevisions", "ofType": null } - ] - }, - { - "kind": "ENUM", - "name": "FlaggableEntities", - "description": "Enumeration of all entities in CIViC that can be flagged.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "FEATURE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EVIDENCE_ITEM", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ASSERTION", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIANT_GROUP", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MOLECULAR_PROFILE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } ], + "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", - "name": "FlaggableInput", - "description": "Entity to flag", + "name": "FusionPartnerInput", + "description": "The fusion partner's status and gene ID (if applicable)", "fields": null, "inputFields": [ { - "name": "id", - "description": "The ID of the entity.", + "name": "partnerStatus", + "description": "The status of the fusion partner", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", + "kind": "ENUM", + "name": "FusionPartnerStatus", "ofType": null } }, @@ -19399,16 +20490,12 @@ "deprecationReason": null }, { - "name": "entityType", - "description": "The type of the entity to flag.", + "name": "geneId", + "description": "The CIViC gene ID of the partner, if known", "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "FlaggableEntities", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -19420,13 +20507,32 @@ "possibleTypes": null }, { - "kind": "SCALAR", - "name": "Float", - "description": "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).", + "kind": "ENUM", + "name": "FusionPartnerStatus", + "description": null, "fields": null, "inputFields": null, "interfaces": null, - "enumValues": null, + "enumValues": [ + { + "name": "KNOWN", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNKNOWN", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MULTIPLE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], "possibleTypes": null }, { @@ -25687,6 +26793,11 @@ "name": "Feature", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -26478,6 +27589,35 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "createFusionFeature", + "description": "Create a new Fusion Feature in the database.", + "args": [ + { + "name": "input", + "description": "Parameters for CreateFusionFeature", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CreateFusionFeatureInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "CreateFusionFeaturePayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "createMolecularProfile", "description": "Create a new Molecular Profile in order to attach Evidence Items to it.", @@ -50152,6 +51292,11 @@ "name": "Feature", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", diff --git a/client/src/app/views/features/features-detail/features-detail.module.ts b/client/src/app/views/features/features-detail/features-detail.module.ts index a2db71465..a697fb04d 100644 --- a/client/src/app/views/features/features-detail/features-detail.module.ts +++ b/client/src/app/views/features/features-detail/features-detail.module.ts @@ -18,6 +18,8 @@ import { FeaturesDetailRoutingModule } from './features-detail-routing.module' import { FeaturesDetailView } from './features-detail.view' import { NzAlertModule } from 'ng-zorro-antd/alert' import { CvcCommentBodyModule } from '@app/components/comments/comment-body/comment-body.module' +import { NzPopoverModule } from 'ng-zorro-antd/popover' +import { CvcFeatureDeprecateForm } from '@app/forms/components/feature-deprecate/feature-deprecate.form' @NgModule({ declarations: [FeaturesDetailView], @@ -33,6 +35,7 @@ import { CvcCommentBodyModule } from '@app/components/comments/comment-body/comm NzTypographyModule, NzGridModule, NzAlertModule, + NzPopoverModule, CvcPipesModule, CvcTabNavigationModule, CvcFlaggableModule, @@ -41,6 +44,7 @@ import { CvcCommentBodyModule } from '@app/components/comments/comment-body/comm CvcEntitySubscriptionButtonModule, CvcEventFeedModule, CvcCommentBodyModule, + CvcFeatureDeprecateForm, ], }) export class FeaturesDetailModule {} diff --git a/client/src/app/views/features/features-detail/features-detail.view.html b/client/src/app/views/features/features-detail/features-detail.view.html index dbe7dbc54..82f63f82d 100644 --- a/client/src/app/views/features/features-detail/features-detail.view.html +++ b/client/src/app/views/features/features-detail/features-detail.view.html @@ -65,6 +65,30 @@ + + + + + + + } + @case ('Fusion') { + + } } diff --git a/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql b/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql index 8b8c47eb3..91e26e8d2 100644 --- a/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql +++ b/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql @@ -17,6 +17,9 @@ fragment FeatureSummaryFields on Feature{ ... on Factor { ... FactorSummaryFields } + ... on Fusion { + ... FusionSummaryFields + } } # lastSubmittedRevisionEvent { # originatingUser { @@ -36,12 +39,56 @@ fragment FeatureSummaryFields on Feature{ # } } -fragment GeneSummaryFields on Gene { +fragment FusionSummaryFields on Fusion { + id + description + featureAliases + name + sources { + id + citation + link + sourceUrl + displayType + sourceType + } + fivePrimeGene { + ... GeneBaseFields + } + threePrimeGene { + ... GeneBaseFields + } + fivePrimePartnerStatus + threePrimePartnerStatus + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } +} + +fragment GeneBaseFields on Gene { id description featureAliases entrezId + deprecated + flagged name + link sources { id citation @@ -50,6 +97,10 @@ fragment GeneSummaryFields on Gene { displayType sourceType } +} + +fragment GeneSummaryFields on Gene { + ...GeneBaseFields myGeneInfoDetails } diff --git a/server/app/graphql/mutations/deprecate_feature.rb b/server/app/graphql/mutations/deprecate_feature.rb index 686af16fe..ed108f92e 100644 --- a/server/app/graphql/mutations/deprecate_feature.rb +++ b/server/app/graphql/mutations/deprecate_feature.rb @@ -37,6 +37,10 @@ def ready?(organization_id: nil, feature_id:, **kwargs) raise GraphQL::ExecutionError, "Feature is already deprecated." end + if feature.feature_instance_type == 'Features::Gene' + raise GraphQL::ExecutionError, "Gene Features may not be manually deprecated." + end + mps_with_eids = [] feature.variants.includes(:molecular_profiles).flat_map(&:molecular_profiles).each do |mp| if mp.evidence_items.where("evidence_items.status != 'rejected'").count > 0 diff --git a/server/app/graphql/types/entities/fusion_type.rb b/server/app/graphql/types/entities/fusion_type.rb new file mode 100644 index 000000000..f47507f0c --- /dev/null +++ b/server/app/graphql/types/entities/fusion_type.rb @@ -0,0 +1,18 @@ +module Types::Entities + class FusionType < Types::Entities::FeatureType + + field :five_prime_gene, Types::Entities::GeneType, null: true + field :three_prime_gene, Types::Entities::GeneType, null: true + + field :five_prime_partner_status, Types::Fusion::FusionPartnerStatus, null: false + field :three_prime_partner_status, Types::Fusion::FusionPartnerStatus, null: false + + def five_prime_gene + Loaders::AssociationLoader.for(Features::Fusion, :five_prime_gene).load(object) + end + + def three_prime_gene + Loaders::AssociationLoader.for(Features::Fusion, :three_prime_gene).load(object) + end + end +end diff --git a/server/app/graphql/types/feature_instance_type.rb b/server/app/graphql/types/feature_instance_type.rb index fa7692148..b1f4c71ec 100644 --- a/server/app/graphql/types/feature_instance_type.rb +++ b/server/app/graphql/types/feature_instance_type.rb @@ -1,13 +1,15 @@ module Types class FeatureInstanceType < Types::BaseUnion description 'The specific type of a feature instance' - possible_types "Types::Entities::GeneType", "Types::Entities::FactorType" + possible_types "Types::Entities::GeneType", "Types::Entities::FactorType", "Types::Entities::FusionType" def self.resolve_type(object, context) if object.is_a?(Features::Gene) Types::Entities::GeneType elsif object.is_a?(Features::Factor) Types::Entities::FactorType + elsif object.is_a?(Features::Fusion) + Types::Entities::FusionType else raise StandardError.new("Unknown feature instance type #{object.class}") end From b7477939a81b98c9b91380d8dacb8b1018666f94 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 19 Jun 2024 16:33:09 -0500 Subject: [PATCH 14/56] intitial fusion select form logic/model --- .../observe-query-param.extension.ts | 16 +- .../feature-select/feature-select.module.ts | 3 +- .../feature-select/feature-select.type.html | 35 +-- .../feature-select/feature-select.type.ts | 3 + .../fusion-select/fusion-select.form.html | 13 ++ .../fusion-select/fusion-select.form.less | 4 + .../fusion-select/fusion-select.form.ts | 217 ++++++++++++++++++ .../molecular-profile-select.type.ts | 2 +- client/src/app/generated/civic.apollo.ts | 1 + client/src/app/generated/server.model.graphql | 1 + client/src/app/generated/server.schema.json | 6 + .../graphql/types/feature_instance_types.rb | 1 + .../evidence_item_input_adaptor.rb | 4 +- 13 files changed, 283 insertions(+), 23 deletions(-) create mode 100644 client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.html create mode 100644 client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.less create mode 100644 client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts diff --git a/client/src/app/forms/extensions/observe-query-param.extension.ts b/client/src/app/forms/extensions/observe-query-param.extension.ts index 7b0660752..868d2ab6b 100644 --- a/client/src/app/forms/extensions/observe-query-param.extension.ts +++ b/client/src/app/forms/extensions/observe-query-param.extension.ts @@ -81,12 +81,13 @@ export class ObserveQueryParamExtension implements FormlyExtension { // set param value, end if undefined const paramValue = params[this.paramKey!] if (!paramValue) { - sub.unsubscribe() + //sub.unsubscribe() return } // parse param - let fieldValue: Maybe = undefined + let fieldValue: Maybe = + undefined try { fieldValue = JSON.parse(paramValue) } catch (error) { @@ -96,18 +97,21 @@ export class ObserveQueryParamExtension implements FormlyExtension { console.warn( `Note: Query values are parsed as JSON, therefore enum strings must be enclosed in double-quotes, and numeric entity IDs must be bare, unquoted.` ) - sub.unsubscribe() + //sub.unsubscribe() return } - if(!fieldValue) return + if (!fieldValue) return // ensure provided value is not an object, end if it is - if (Object.keys(fieldValue).length > 0 && fieldValue.constructor === Object) { + if ( + Object.keys(fieldValue).length > 0 && + fieldValue.constructor === Object + ) { console.warn( `observe-query-param may only set primitive types or arrays of primitive types, param ${ this.paramKey } is an object: ${JSON.stringify(fieldValue)}` ) - sub.unsubscribe() + //sub.unsubscribe() return } ctrl.setValue(fieldValue) diff --git a/client/src/app/forms/types/feature-select/feature-select.module.ts b/client/src/app/forms/types/feature-select/feature-select.module.ts index c9a041060..18ef48434 100644 --- a/client/src/app/forms/types/feature-select/feature-select.module.ts +++ b/client/src/app/forms/types/feature-select/feature-select.module.ts @@ -20,9 +20,9 @@ import { NzTypographyModule } from 'ng-zorro-antd/typography' import { CvcFeatureSelectField, CvcFeatureSelectFieldConfig, - CvcFeatureSelectFieldProps, } from './feature-select.type' import { CvcFeatureQuickAddForm } from './feature-quick-add/feature-quick-add.form' +import { CvcFusionSelectForm } from './fusion-select/fusion-select.form' const typeConfig: ConfigOption = { types: [ @@ -69,6 +69,7 @@ const typeConfig: ConfigOption = { CvcPipesModule, CvcEntityTagModule, CvcFeatureQuickAddForm, + CvcFusionSelectForm, ], exports: [CvcFeatureSelectField], }) diff --git a/client/src/app/forms/types/feature-select/feature-select.type.html b/client/src/app/forms/types/feature-select/feature-select.type.html index ef8a65f20..75aa1549c 100644 --- a/client/src/app/forms/types/feature-select/feature-select.type.html +++ b/client/src/app/forms/types/feature-select/feature-select.type.html @@ -1,21 +1,27 @@ - - - - - - - + + + + + + + @if (this.selectedFeatureType == instanceTypes.Fusion) { + + } @else { + } diff --git a/client/src/app/forms/types/feature-select/feature-select.type.ts b/client/src/app/forms/types/feature-select/feature-select.type.ts index bc7d303c5..e90991ea3 100644 --- a/client/src/app/forms/types/feature-select/feature-select.type.ts +++ b/client/src/app/forms/types/feature-select/feature-select.type.ts @@ -89,6 +89,7 @@ export class CvcFeatureSelectField description: 'Feature Name', featureType: FeatureInstanceTypes.Gene, canChangeFeatureType: true, + hideFeatureTypeSelect: false, }, } @@ -99,6 +100,8 @@ export class CvcFeatureSelectField onFeatureType$: BehaviorSubject> = new BehaviorSubject>(undefined) + instanceTypes = FeatureInstanceTypes + constructor( private taq: FeatureSelectTypeaheadGQL, private tq: FeatureSelectTagGQL, diff --git a/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.html b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.html new file mode 100644 index 000000000..8a40df60b --- /dev/null +++ b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.html @@ -0,0 +1,13 @@ +{{ this.model | json }} +
+ + +
diff --git a/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.less b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.less new file mode 100644 index 000000000..fe8bbc5f4 --- /dev/null +++ b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.less @@ -0,0 +1,4 @@ +:host { + display: block; + width: 100%; +} diff --git a/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts new file mode 100644 index 000000000..1914e1ccd --- /dev/null +++ b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts @@ -0,0 +1,217 @@ +import { + ChangeDetectionStrategy, + Component, + EventEmitter, + Output, +} from '@angular/core' +import { ReactiveFormsModule, UntypedFormGroup } from '@angular/forms' +import { FusionPartnerStatus, Maybe } from '@app/generated/civic.apollo' +import { + FormlyFieldConfig, + FormlyFormOptions, + FormlyModule, +} from '@ngx-formly/core' +import { BehaviorSubject } from 'rxjs' +import { NzFormLayoutType } from 'ng-zorro-antd/form' +import { CvcFormRowWrapperProps } from '@app/forms/wrappers/form-row/form-row.wrapper' +import { CommonModule } from '@angular/common' +import { NzFormModule } from 'ng-zorro-antd/form' +import { NzButtonModule } from 'ng-zorro-antd/button' +import { RouterModule } from '@angular/router' +import { LetDirective, PushPipe } from '@ngrx/component' +import { NzAlertModule } from 'ng-zorro-antd/alert' +import { Apollo } from 'apollo-angular' +import { UntilDestroy } from '@ngneat/until-destroy' + +type FusionSelectModel = { + fivePrimeGeneId?: number + fivePrimePartnerStatus?: FusionPartnerStatus + threePrimeGeneId?: number + threePrimePartnerStatus?: FusionPartnerStatus +} + +@UntilDestroy() +@Component({ + standalone: true, + selector: 'cvc-fusion-select-form', + templateUrl: './fusion-select.form.html', + styleUrls: ['./fusion-select.form.less'], + changeDetection: ChangeDetectionStrategy.OnPush, + imports: [ + CommonModule, + PushPipe, + ReactiveFormsModule, + LetDirective, + NzFormModule, + NzButtonModule, + NzAlertModule, + RouterModule, + FormlyModule, + ], +}) +export class CvcFusionSelectForm { + @Output() onFusionSelected = new EventEmitter() + + modelChange$ = new BehaviorSubject>(undefined) + model: FusionSelectModel + form: UntypedFormGroup + config: FormlyFieldConfig[] + layout: NzFormLayoutType = 'horizontal' + + options: FormlyFormOptions + + constructor(private apollo: Apollo) { + this.form = new UntypedFormGroup({}) + this.model = { + fivePrimeGeneId: undefined, + threePrimeGeneId: undefined, + fivePrimePartnerStatus: FusionPartnerStatus.Known, + threePrimePartnerStatus: FusionPartnerStatus.Known, + } + this.options = {} + + const selectOptions = [ + { + label: 'Known', + value: FusionPartnerStatus.Known, + }, + { + label: 'Unknown', + value: FusionPartnerStatus.Unknown, + }, + { + label: 'Multiple', + value: FusionPartnerStatus.Multiple, + }, + ] + + this.config = [ + { + wrappers: ['form-row'], + props: { + rows: 2, + formRowOptions: { + span: 12, + }, + }, + fieldGroup: [ + { + key: 'fivePrimePartnerStatus', + type: 'select', + props: { + required: true, + placeholder: "5' Partner Status", + options: selectOptions, + multiple: false, + }, + }, + { + key: 'fivePrimeGeneId', + type: 'feature-select', + props: { + placeholder: "5' Fusion Partner", + canChangeFeatureType: false, + hideFeatureTypeSelect: true, + layout: { + showExtra: false, + }, + hideLabel: true, + }, + expressions: { + 'props.disabled': (field) => + field.model.fivePrimePartnerStatus != FusionPartnerStatus.Known, + 'props.required': (field) => + field.model.fivePrimePartnerStatus == FusionPartnerStatus.Known, + }, + }, + { + key: 'threePrimePartnerStatus', + type: 'select', + props: { + required: true, + placeholder: "3' Partner Status", + options: selectOptions, + multiple: false, + }, + }, + { + key: 'threePrimeGeneId', + type: 'feature-select', + props: { + placeholder: "3' Fusion Partner", + canChangeFeatureType: false, + hideFeatureTypeSelect: true, + layout: { + showExtra: false, + }, + hideLabel: true, + }, + expressions: { + 'props.disabled': (field) => + field.model.threePrimePartnerStatus != + FusionPartnerStatus.Known, + 'props.required': (field) => + field.model.threePrimePartnerStatus == + FusionPartnerStatus.Known, + }, + }, + ], + }, + ] + } + + modelChange(model: Maybe) { + console.log(model) + if (model) { + if (this.model.fivePrimePartnerStatus != FusionPartnerStatus.Known) { + this.model = { + ...this.model, + fivePrimeGeneId: undefined, + } + } + if (this.model.threePrimePartnerStatus != FusionPartnerStatus.Known) { + this.model = { + ...this.model, + threePrimeGeneId: undefined, + } + } + + if ( + model.threePrimeGeneId && + model.threePrimePartnerStatus != FusionPartnerStatus.Known + ) { + return + } + if ( + model.fivePrimeGeneId && + model.fivePrimePartnerStatus != FusionPartnerStatus.Known + ) { + return + } + if ( + !model.fivePrimeGeneId && + model.fivePrimePartnerStatus == FusionPartnerStatus.Known + ) { + return + } + if ( + !model.threePrimeGeneId && + model.threePrimePartnerStatus == FusionPartnerStatus.Known + ) { + return + } + + if (model.threePrimeGeneId == model.fivePrimeGeneId) { + return + } + + this.onFusionSelected.next(this.getSelectedFusion(model)) + } + } + + getSelectedFusion(model: FusionSelectModel): number { + console.log(model) + // take in the model, query backend to get or create a fusion and return the id + return 1 + } +} diff --git a/client/src/app/forms/types/molecular-profile-select/molecular-profile-select.type.ts b/client/src/app/forms/types/molecular-profile-select/molecular-profile-select.type.ts index 2f989cf53..b08bc8ed1 100644 --- a/client/src/app/forms/types/molecular-profile-select/molecular-profile-select.type.ts +++ b/client/src/app/forms/types/molecular-profile-select/molecular-profile-select.type.ts @@ -119,7 +119,7 @@ export class CvcMolecularProfileSelectField 'A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated assertion.', isMultiSelect: false, description: - 'Select a Gene and Variant to specify a simple Molecular Profile.', + 'Select a Feature and Variant to specify a simple Molecular Profile.', entityName: { singular: 'Molecular Profile', diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 919c6646f..d98d60602 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2263,6 +2263,7 @@ export type FeatureInstance = Factor | Fusion | Gene; export enum FeatureInstanceTypes { Factor = 'FACTOR', + Fusion = 'FUSION', Gene = 'GENE' } diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 0bcc94515..46ec050a3 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -3788,6 +3788,7 @@ union FeatureInstance = Factor | Fusion | Gene enum FeatureInstanceTypes { FACTOR + FUSION GENE } diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index daf74a763..dfca9b4ff 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -18079,6 +18079,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "FUSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null diff --git a/server/app/graphql/types/feature_instance_types.rb b/server/app/graphql/types/feature_instance_types.rb index 992d22eb4..c1219e5ce 100644 --- a/server/app/graphql/types/feature_instance_types.rb +++ b/server/app/graphql/types/feature_instance_types.rb @@ -2,5 +2,6 @@ module Types class FeatureInstanceTypes < Types::BaseEnum value 'GENE', value: 'Features::Gene' value 'FACTOR', value: 'Features::Factor' + value 'FUSION', value: 'Features::Fusion' end end diff --git a/server/app/models/input_adaptors/evidence_item_input_adaptor.rb b/server/app/models/input_adaptors/evidence_item_input_adaptor.rb index f7c99be45..31c1be388 100644 --- a/server/app/models/input_adaptors/evidence_item_input_adaptor.rb +++ b/server/app/models/input_adaptors/evidence_item_input_adaptor.rb @@ -15,6 +15,8 @@ def self.check_input_for_errors(evidence_input_object: , revised_eid: nil) fields = evidence_input_object query_fields = evidence_fields(fields) + # if there is a matching rejected EID, still allow the revisions + query_fields[:status] = ['accepted', 'submitted'] query_fields.delete(:description) query_fields.delete(:therapy_ids) query_fields.delete(:phenotype_ids) @@ -56,7 +58,7 @@ def self.check_input_for_errors(evidence_input_object: , revised_eid: nil) end return errors - end + end def self.evidence_fields(input) { From e6d9d48e525ccf475ee9e43e032c06c73e532a7d Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Thu, 20 Jun 2024 12:38:36 -0500 Subject: [PATCH 15/56] fusion select/create hooked up + validations --- client/src/app/app.module.ts | 4 +- .../app/core/utilities/app-reload-handler.ts | 23 +-- .../feature-select/feature-select.type.html | 8 +- .../feature-select/feature-select.type.ts | 5 + .../fusion-select/fusion-add.query.gql | 19 +++ .../fusion-select/fusion-select.form.html | 2 +- .../fusion-select/fusion-select.form.ts | 134 +++++++++++++++--- client/src/app/generated/civic.apollo.ts | 34 +++++ 8 files changed, 196 insertions(+), 33 deletions(-) create mode 100644 client/src/app/forms/types/feature-select/fusion-select/fusion-add.query.gql diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index c8030afcf..0c11ced39 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -21,7 +21,7 @@ import { GraphQLModule } from '@app/graphql/graphql.module' import { NzIconModule } from 'ng-zorro-antd/icon' import { CvcNetworkErrorAlertModule } from './components/app/network-error-alert/network-error-alert.module' import { Observable } from 'rxjs' -import { AppLoadErrorHandler } from './core/utilities/app-reload-handler' +import { AppErrorHandler } from './core/utilities/app-reload-handler' import { CvcForms2Module } from '@app/forms/forms.module' registerLocaleData(en) @@ -59,7 +59,7 @@ function initializeApiFactory(httpClient: HttpClient): () => Observable { CookieService, { provide: ErrorHandler, - useClass: AppLoadErrorHandler, + useClass: AppErrorHandler, }, { provide: NZ_I18N, useValue: en_US }, { diff --git a/client/src/app/core/utilities/app-reload-handler.ts b/client/src/app/core/utilities/app-reload-handler.ts index 9b0c3aab7..2ad71b5b4 100644 --- a/client/src/app/core/utilities/app-reload-handler.ts +++ b/client/src/app/core/utilities/app-reload-handler.ts @@ -1,17 +1,22 @@ import { ErrorHandler, Injectable } from '@angular/core' +import { environment } from 'environments/environment' @Injectable() -export class AppLoadErrorHandler implements ErrorHandler { +export class AppErrorHandler implements ErrorHandler { handleError(error: any): void { - const chunkFailedMessage = /Loading chunk [\d]+ failed/ - if (chunkFailedMessage.test(error.message)) { - if ( - confirm( - 'There is an updated version of CiVIC available. Click OK to reload.' - ) - ) { - window.location.reload() + if (environment.production) { + const chunkFailedMessage = /Loading chunk [\d]+ failed/ + if (chunkFailedMessage.test(error.message)) { + if ( + confirm( + 'There is an updated version of CiVIC available. Click OK to reload.' + ) + ) { + window.location.reload() + } } + } else { + console.error(error) } } } diff --git a/client/src/app/forms/types/feature-select/feature-select.type.html b/client/src/app/forms/types/feature-select/feature-select.type.html index 75aa1549c..eae04aa22 100644 --- a/client/src/app/forms/types/feature-select/feature-select.type.html +++ b/client/src/app/forms/types/feature-select/feature-select.type.html @@ -6,7 +6,7 @@ + (ngModelChange)="this.onFeatureType$.next($event); this.formControl.setValue(undefined)"> @@ -19,8 +19,10 @@ - @if (this.selectedFeatureType == instanceTypes.Fusion) { - + @if (this.selectedFeatureType == instanceTypes.Fusion && + !this.model.featureId) { + } @else { () - modelChange$ = new BehaviorSubject>(undefined) model: FusionSelectModel form: UntypedFormGroup config: FormlyFieldConfig[] @@ -60,7 +73,20 @@ export class CvcFusionSelectForm { options: FormlyFormOptions - constructor(private apollo: Apollo) { + selectOrCreateFusionMutator: MutatorWithState< + SelectOrCreateFusionGQL, + SelectOrCreateFusionMutation, + SelectOrCreateFusionMutationVariables + > + + mutationState?: MutationState + + constructor( + private query: SelectOrCreateFusionGQL, + private errors: NetworkErrorsService + ) { + this.selectOrCreateFusionMutator = new MutatorWithState(errors) + this.form = new UntypedFormGroup({}) this.model = { fivePrimeGeneId: undefined, @@ -85,19 +111,77 @@ export class CvcFusionSelectForm { }, ] + // if they change the five prime value + let fivePrimeMatchesThreePrime = (c: AbstractControl) => { + let model = c?.parent?.value + if (model) { + if ( + c.value == FusionPartnerStatus.Known || + model.threePrimePartnerStatus == FusionPartnerStatus.Known + ) { + return true + } + } + return false + } + + // if they change the three prime value + let threePrimeMatchesFivePrime = (c: AbstractControl) => { + let model = c?.parent?.value + if (model) { + if ( + model.fivePrimePartnerStatus == FusionPartnerStatus.Known || + c.value == FusionPartnerStatus.Known + ) { + return true + } + } + return false + } + this.config = [ { wrappers: ['form-row'], props: { - rows: 2, formRowOptions: { span: 12, }, }, + validators: { + partnerStatus: { + message: "At least one of 5' or 3' partner status must be Known", + expression: (x: AbstractControl) => { + const model = x.value + if (model) { + if ( + model.fivePrimePartnerStatus == FusionPartnerStatus.Known || + model.threePrimePartnerStatus == FusionPartnerStatus.Known + ) { + return true + } + } + return false + }, + errorPath: 'fivePrimePartnerStatus', + }, + sameGene: { + message: "5' and 3' Genes must be different", + expression: (x: AbstractControl) => { + const model = x.value + if (model && model.fivePrimeGeneId && model.threePrimeGeneId) { + if (model.fivePrimeGeneId == model.threePrimeGeneId) { + return false + } + } + return true + }, + errorPath: 'fivePrimeGeneId', + }, + }, fieldGroup: [ { key: 'fivePrimePartnerStatus', - type: 'select', + type: 'base-select', props: { required: true, placeholder: "5' Partner Status", @@ -112,6 +196,7 @@ export class CvcFusionSelectForm { placeholder: "5' Fusion Partner", canChangeFeatureType: false, hideFeatureTypeSelect: true, + featureType: FeatureInstanceTypes.Gene, layout: { showExtra: false, }, @@ -126,7 +211,7 @@ export class CvcFusionSelectForm { }, { key: 'threePrimePartnerStatus', - type: 'select', + type: 'base-select', props: { required: true, placeholder: "3' Partner Status", @@ -141,6 +226,7 @@ export class CvcFusionSelectForm { placeholder: "3' Fusion Partner", canChangeFeatureType: false, hideFeatureTypeSelect: true, + featureType: FeatureInstanceTypes.Gene, layout: { showExtra: false, }, @@ -155,13 +241,19 @@ export class CvcFusionSelectForm { FusionPartnerStatus.Known, }, }, + { + key: 'organizationId', + type: 'org-submit-button', + props: { + submitLabel: 'Select', + }, + }, ], }, ] } modelChange(model: Maybe) { - console.log(model) if (model) { if (this.model.fivePrimePartnerStatus != FusionPartnerStatus.Known) { this.model = { @@ -176,6 +268,7 @@ export class CvcFusionSelectForm { } } + //mark form as invalid here? if ( model.threePrimeGeneId && model.threePrimePartnerStatus != FusionPartnerStatus.Known @@ -204,14 +297,19 @@ export class CvcFusionSelectForm { if (model.threePrimeGeneId == model.fivePrimeGeneId) { return } - - this.onFusionSelected.next(this.getSelectedFusion(model)) } } - getSelectedFusion(model: FusionSelectModel): number { - console.log(model) - // take in the model, query backend to get or create a fusion and return the id - return 1 + submitFusion(model: FusionSelectModel): void { + this.mutationState = this.selectOrCreateFusionMutator.mutate( + this.query, + model, + {}, + (data) => { + if (data.createFusionFeature?.feature.id) { + this.onFusionSelected.next(data.createFusionFeature.feature.id) + } + } + ) } } diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index d98d60602..b25dbc4b5 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -8186,6 +8186,17 @@ export type FeatureSelectTagQuery = { __typename: 'Query', feature?: { __typenam export type FeatureSelectTypeaheadFieldsFragment = { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene', entrezId: number } }; +export type SelectOrCreateFusionMutationVariables = Exact<{ + organizationId?: InputMaybe; + fivePrimeGeneId?: InputMaybe; + fivePrimePartnerStatus: FusionPartnerStatus; + threePrimeGeneId?: InputMaybe; + threePrimePartnerStatus: FusionPartnerStatus; +}>; + + +export type SelectOrCreateFusionMutation = { __typename: 'Mutation', createFusionFeature?: { __typename: 'CreateFusionFeaturePayload', new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } } | undefined }; + export type MolecularProfileSelectTypeaheadQueryVariables = Exact<{ name: Scalars['String']; geneId?: InputMaybe; @@ -14908,6 +14919,29 @@ export const FeatureSelectTagDocument = gql` export class FeatureSelectTagGQL extends Apollo.Query { document = FeatureSelectTagDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SelectOrCreateFusionDocument = gql` + mutation SelectOrCreateFusion($organizationId: Int, $fivePrimeGeneId: Int, $fivePrimePartnerStatus: FusionPartnerStatus!, $threePrimeGeneId: Int, $threePrimePartnerStatus: FusionPartnerStatus!) { + createFusionFeature( + input: {organizationId: $organizationId, fivePrimeGene: {geneId: $fivePrimeGeneId, partnerStatus: $fivePrimePartnerStatus}, threePrimeGene: {geneId: $threePrimeGeneId, partnerStatus: $threePrimePartnerStatus}} + ) { + new + feature { + ...FeatureSummaryFields + } + } +} + ${FeatureSummaryFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class SelectOrCreateFusionGQL extends Apollo.Mutation { + document = SelectOrCreateFusionDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } From 167ac647a134e50338e1d25547f2a3accba95a6f Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 3 Jul 2024 14:59:10 -0500 Subject: [PATCH 16/56] fusion variant creation form working, mp name generation handles fusions --- .../event-timeline-item.component.html | 3 + .../app/core/utilities/get-entity-color.ts | 1 + .../entity-tag/entity-tag.component.ts | 1 - .../entity-tag/entity-tag.queries.gql | 1 + .../feature-select/feature-select.module.ts | 4 + .../feature-select/feature-select.type.html | 23 +- .../feature-select/feature-select.type.ts | 36 +- .../fusion-select/fusion-select.form.ts | 227 +- .../mp-finder/mp-finder.component.ts | 13 +- .../fusion-variant-add.query.gql | 17 + .../fusion-variant-select.form.html | 13 + .../fusion-variant-select.form.less | 4 + .../fusion-variant-select.form.ts | 416 +++ .../variant-select/variant-select.module.ts | 3 + .../variant-select/variant-select.query.gql | 3 + .../variant-select/variant-select.type.html | 17 + .../variant-select/variant-select.type.ts | 35 +- .../src/app/generated/civic.apollo-helpers.ts | 92 +- client/src/app/generated/civic.apollo.ts | 402 +- .../src/app/generated/civic.possible-types.ts | 7 + client/src/app/generated/server.model.graphql | 339 +- client/src/app/generated/server.schema.json | 3322 ++++++++++++----- .../molecular_profile_segments_loader.rb | 2 +- .../mutations/create_fusion_feature.rb | 6 +- .../mutations/create_fusion_variant.rb | 88 + .../mutations/suggest_factor_revision.rb | 2 +- .../graphql/types/entities/feature_type.rb | 9 +- ...ve_prime_fusion_variant_coordinate_type.rb | 9 + .../fusion_variant_coordinate_type.rb | 13 + .../types/entities/molecular_profile_type.rb | 4 +- ...ee_prime_fusion_variant_coordinate_type.rb | 9 + .../types/fusion/fusion_offset_direction.rb | 6 + .../types/fusion/fusion_variant_input_type.rb | 44 + .../graphql/types/interfaces/commentable.rb | 2 + .../types/interfaces/event_origin_object.rb | 2 + .../graphql/types/interfaces/event_subject.rb | 2 + .../app/graphql/types/interfaces/flaggable.rb | 2 + .../types/interfaces/variant_interface.rb | 10 +- server/app/graphql/types/mutation_type.rb | 1 + .../app/graphql/types/variant_categories.rb | 1 + .../types/variants/fusion_variant_type.rb | 29 + .../models/actions/create_fusion_feature.rb | 28 +- server/app/models/actions/create_variant.rb | 5 +- .../activities/create_fusion_variant.rb | 56 + .../models/concerns/is_feature_instance.rb | 5 + server/app/models/feature.rb | 4 + server/app/models/features/fusion.rb | 5 + server/app/models/my_gene_info.rb | 4 +- server/app/models/variant.rb | 8 +- server/app/models/variant_coordinate.rb | 15 + server/app/models/variants/fusion_variant.rb | 75 +- server/app/validators/coordinate_validator.rb | 19 +- ...0240621143750_add_exon_offset_direction.rb | 17 + ...0240701162452_add_vicc_name_to_variants.rb | 6 + server/db/schema.rb | 6 +- 55 files changed, 4406 insertions(+), 1067 deletions(-) create mode 100644 client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-add.query.gql create mode 100644 client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.html create mode 100644 client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.less create mode 100644 client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts create mode 100644 server/app/graphql/mutations/create_fusion_variant.rb create mode 100644 server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb create mode 100644 server/app/graphql/types/entities/fusion_variant_coordinate_type.rb create mode 100644 server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb create mode 100644 server/app/graphql/types/fusion/fusion_offset_direction.rb create mode 100644 server/app/graphql/types/fusion/fusion_variant_input_type.rb create mode 100644 server/app/graphql/types/variants/fusion_variant_type.rb create mode 100644 server/app/models/activities/create_fusion_variant.rb create mode 100644 server/db/migrate/20240621143750_add_exon_offset_direction.rb create mode 100644 server/db/migrate/20240701162452_add_vicc_name_to_variants.rb diff --git a/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html b/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html index 050a468ca..61e1280fb 100644 --- a/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html +++ b/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html @@ -81,6 +81,9 @@ + diff --git a/client/src/app/core/utilities/get-entity-color.ts b/client/src/app/core/utilities/get-entity-color.ts index 4e6ae1218..cb7fca158 100644 --- a/client/src/app/core/utilities/get-entity-color.ts +++ b/client/src/app/core/utilities/get-entity-color.ts @@ -16,6 +16,7 @@ export const EntityColors = new Map([ ['Variant', '#74d34c'], ['GeneVariant', '#74d34c'], ['FactorVariant', '#74d34c'], + ['FusionVariant', '#74d34c'], ['VariantGroup', '#74d34c'], ['VariantType', '#74d34c'], diff --git a/client/src/app/forms/components/entity-tag/entity-tag.component.ts b/client/src/app/forms/components/entity-tag/entity-tag.component.ts index ad6da2bc6..e644c203e 100644 --- a/client/src/app/forms/components/entity-tag/entity-tag.component.ts +++ b/client/src/app/forms/components/entity-tag/entity-tag.component.ts @@ -145,7 +145,6 @@ export class CvcEntityTagComponent implements OnChanges { ) return } - console.log(typename) // get linkable entity let fragment = undefined if (!this.cvcDisableLink) { diff --git a/client/src/app/forms/components/entity-tag/entity-tag.queries.gql b/client/src/app/forms/components/entity-tag/entity-tag.queries.gql index efb6ecdee..3824fc3d3 100644 --- a/client/src/app/forms/components/entity-tag/entity-tag.queries.gql +++ b/client/src/app/forms/components/entity-tag/entity-tag.queries.gql @@ -27,5 +27,6 @@ query LinkableFeature($featureId: Int!) { id name link + featureType } } diff --git a/client/src/app/forms/types/feature-select/feature-select.module.ts b/client/src/app/forms/types/feature-select/feature-select.module.ts index 18ef48434..3e3dcba5e 100644 --- a/client/src/app/forms/types/feature-select/feature-select.module.ts +++ b/client/src/app/forms/types/feature-select/feature-select.module.ts @@ -23,6 +23,8 @@ import { } from './feature-select.type' import { CvcFeatureQuickAddForm } from './feature-quick-add/feature-quick-add.form' import { CvcFusionSelectForm } from './fusion-select/fusion-select.form' +import { NzSpaceModule } from 'ng-zorro-antd/space' +import { NzModalModule } from 'ng-zorro-antd/modal' const typeConfig: ConfigOption = { types: [ @@ -64,6 +66,8 @@ const typeConfig: ConfigOption = { NzAutocompleteModule, NzTypographyModule, NzTagModule, + NzSpaceModule, + NzModalModule, CvcFormFieldWrapperModule, CvcEntitySelectModule, CvcPipesModule, diff --git a/client/src/app/forms/types/feature-select/feature-select.type.html b/client/src/app/forms/types/feature-select/feature-select.type.html index eae04aa22..850810c99 100644 --- a/client/src/app/forms/types/feature-select/feature-select.type.html +++ b/client/src/app/forms/types/feature-select/feature-select.type.html @@ -19,11 +19,6 @@ - @if (this.selectedFeatureType == instanceTypes.Fusion && - !this.model.featureId) { - - } @else { - }
@@ -96,9 +90,26 @@ #addFeature let-searchStr let-model="model"> + @if (selectedFeatureType == 'FUSION') { + + {{searchStr}} does not match any existing Fusions + + + } @else { + } diff --git a/client/src/app/forms/types/feature-select/feature-select.type.ts b/client/src/app/forms/types/feature-select/feature-select.type.ts index d897c179a..ebb933914 100644 --- a/client/src/app/forms/types/feature-select/feature-select.type.ts +++ b/client/src/app/forms/types/feature-select/feature-select.type.ts @@ -33,7 +33,12 @@ import { NzSelectOptionInterface } from 'ng-zorro-antd/select' import mixin from 'ts-mixin-extended' import { FeatureIdWithCreationStatus } from './feature-quick-add/feature-quick-add.form' import { BehaviorSubject } from 'rxjs' -import { UntilDestroy } from '@ngneat/until-destroy' +import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' +import { NzModalService } from 'ng-zorro-antd/modal' +import { + CvcFusionSelectForm, + FusionSelectModalData, +} from './fusion-select/fusion-select.form' export type CvcFeatureSelectFieldOption = Partial< FieldTypeConfig> @@ -86,7 +91,7 @@ export class CvcFeatureSelectField placeholder: 'Search Features', isMultiSelect: false, entityName: { singular: 'Feature', plural: 'Features' }, - description: 'Feature Name', + description: '', featureType: FeatureInstanceTypes.Gene, canChangeFeatureType: true, hideFeatureTypeSelect: false, @@ -105,13 +110,20 @@ export class CvcFeatureSelectField constructor( private taq: FeatureSelectTypeaheadGQL, private tq: FeatureSelectTagGQL, - private changeDetectorRef: ChangeDetectorRef + private changeDetectorRef: ChangeDetectorRef, + private modal: NzModalService ) { super() } ngAfterViewInit(): void { this.selectedFeatureType = this.props.featureType + if (this.props.featureTypeCallback) { + this.onFeatureType$ + .pipe(untilDestroyed(this)) + .subscribe((ft) => this.props.featureTypeCallback(ft)) + this.onFeatureType$.next(this.selectedFeatureType) + } this.configureBaseField() // mixin fn this.configureEntitySelectField({ // mixin fn @@ -190,4 +202,22 @@ export class CvcFeatureSelectField this.onPopulate$.next(featureId) this.formControl.setValue(featureId) } + + createFusionModal() { + const modal = this.modal.create( + { + nzTitle: 'Add New Fusion Feature', + nzContent: CvcFusionSelectForm, + nzData: {}, + nzFooter: null, + } + ) + + modal.getContentComponent() + modal.afterClose.pipe(untilDestroyed(this)).subscribe((result) => { + if (result.featureId) { + this.onFusionSelected(result.featureId) + } + }) + } } diff --git a/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts index afeffdd3d..4a2f9abc1 100644 --- a/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts +++ b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts @@ -3,6 +3,7 @@ import { Component, EventEmitter, Output, + inject, } from '@angular/core' import { AbstractControl, @@ -23,7 +24,6 @@ import { FormlyModule, } from '@ngx-formly/core' import { NzFormLayoutType } from 'ng-zorro-antd/form' -import { CvcFormRowWrapperProps } from '@app/forms/wrappers/form-row/form-row.wrapper' import { CommonModule } from '@angular/common' import { NzFormModule } from 'ng-zorro-antd/form' import { NzButtonModule } from 'ng-zorro-antd/button' @@ -36,6 +36,7 @@ import { MutatorWithState, } from '@app/core/utilities/mutation-state-wrapper' import { NetworkErrorsService } from '@app/core/services/network-errors.service' +import { NZ_MODAL_DATA, NzModalModule, NzModalRef } from 'ng-zorro-antd/modal' type FusionSelectModel = { fivePrimeGeneId?: number @@ -44,6 +45,10 @@ type FusionSelectModel = { threePrimePartnerStatus: FusionPartnerStatus } +export interface FusionSelectModalData { + featureId?: number +} + @UntilDestroy() @Component({ standalone: true, @@ -59,6 +64,7 @@ type FusionSelectModel = { NzFormModule, NzButtonModule, NzAlertModule, + NzModalModule, RouterModule, FormlyModule, ], @@ -66,10 +72,13 @@ type FusionSelectModel = { export class CvcFusionSelectForm { @Output() onFusionSelected = new EventEmitter() + readonly #modal = inject(NzModalRef) + readonly nzModalData: FusionSelectModalData = inject(NZ_MODAL_DATA) + model: FusionSelectModel form: UntypedFormGroup config: FormlyFieldConfig[] - layout: NzFormLayoutType = 'horizontal' + layout: NzFormLayoutType = 'vertical' options: FormlyFormOptions @@ -88,6 +97,7 @@ export class CvcFusionSelectForm { this.selectOrCreateFusionMutator = new MutatorWithState(errors) this.form = new UntypedFormGroup({}) + this.model = { fivePrimeGeneId: undefined, threePrimeGeneId: undefined, @@ -111,41 +121,11 @@ export class CvcFusionSelectForm { }, ] - // if they change the five prime value - let fivePrimeMatchesThreePrime = (c: AbstractControl) => { - let model = c?.parent?.value - if (model) { - if ( - c.value == FusionPartnerStatus.Known || - model.threePrimePartnerStatus == FusionPartnerStatus.Known - ) { - return true - } - } - return false - } - - // if they change the three prime value - let threePrimeMatchesFivePrime = (c: AbstractControl) => { - let model = c?.parent?.value - if (model) { - if ( - model.fivePrimePartnerStatus == FusionPartnerStatus.Known || - c.value == FusionPartnerStatus.Known - ) { - return true - } - } - return false - } - this.config = [ { - wrappers: ['form-row'], - props: { - formRowOptions: { - span: 12, - }, + wrappers: ['form-layout'], + props: { + showDevPanel: false, }, validators: { partnerStatus: { @@ -180,73 +160,118 @@ export class CvcFusionSelectForm { }, fieldGroup: [ { - key: 'fivePrimePartnerStatus', - type: 'base-select', - props: { - required: true, - placeholder: "5' Partner Status", - options: selectOptions, - multiple: false, - }, - }, - { - key: 'fivePrimeGeneId', - type: 'feature-select', + wrappers: ['form-card'], props: { - placeholder: "5' Fusion Partner", - canChangeFeatureType: false, - hideFeatureTypeSelect: true, - featureType: FeatureInstanceTypes.Gene, - layout: { - showExtra: false, + formCardOptions: { + title: 'New Fusion Feature', }, - hideLabel: true, }, - expressions: { - 'props.disabled': (field) => - field.model.fivePrimePartnerStatus != FusionPartnerStatus.Known, - 'props.required': (field) => - field.model.fivePrimePartnerStatus == FusionPartnerStatus.Known, - }, - }, - { - key: 'threePrimePartnerStatus', - type: 'base-select', - props: { - required: true, - placeholder: "3' Partner Status", - options: selectOptions, - multiple: false, - }, - }, - { - key: 'threePrimeGeneId', - type: 'feature-select', - props: { - placeholder: "3' Fusion Partner", - canChangeFeatureType: false, - hideFeatureTypeSelect: true, - featureType: FeatureInstanceTypes.Gene, - layout: { - showExtra: false, + fieldGroup: [ + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 12, + }, + }, + fieldGroup: [ + { + key: 'fivePrimePartnerStatus', + type: 'base-select', + props: { + label: "5' Partner Status", + tooltip: + "Select Known if the specific 5' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 5' Gene partners", + required: true, + placeholder: "5' Partner Status", + options: selectOptions, + multiple: false, + }, + }, + { + key: 'fivePrimeGeneId', + type: 'feature-select', + props: { + label: "5' Fusion Partner", + placeholder: 'Select Gene', + tooltip: "Select the 5' Gene partner in the Fusion", + canChangeFeatureType: false, + hideFeatureTypeSelect: true, + featureType: FeatureInstanceTypes.Gene, + }, + expressions: { + 'props.disabled': (field) => + field.model.fivePrimePartnerStatus != + FusionPartnerStatus.Known, + 'props.required': (field) => + field.model.fivePrimePartnerStatus == + FusionPartnerStatus.Known, + }, + }, + ], }, - hideLabel: true, - }, - expressions: { - 'props.disabled': (field) => - field.model.threePrimePartnerStatus != - FusionPartnerStatus.Known, - 'props.required': (field) => - field.model.threePrimePartnerStatus == - FusionPartnerStatus.Known, - }, - }, - { - key: 'organizationId', - type: 'org-submit-button', - props: { - submitLabel: 'Select', - }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 12, + }, + }, + fieldGroup: [ + { + key: 'threePrimePartnerStatus', + type: 'base-select', + props: { + required: true, + placeholder: "3' Partner Status", + label: "3' Partner Status", + tooltip: + "Select Known if the specific 3' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 3' Gene partners", + options: selectOptions, + multiple: false, + }, + }, + { + key: 'threePrimeGeneId', + type: 'feature-select', + props: { + label: "3' Fusion Partner", + placeholder: 'Select Gene', + tooltip: "Select the 3' Gene partner in the Fusion", + canChangeFeatureType: false, + hideFeatureTypeSelect: true, + featureType: FeatureInstanceTypes.Gene, + }, + expressions: { + 'props.disabled': (field) => + field.model.threePrimePartnerStatus != + FusionPartnerStatus.Known, + 'props.required': (field) => + field.model.threePrimePartnerStatus == + FusionPartnerStatus.Known, + }, + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 24, + }, + }, + fieldGroup: [ + { + key: 'organizationId', + type: 'org-submit-button', + props: { + submitLabel: 'Create Fusion', + align: 'right', + }, + }, + ], + }, + ], }, ], }, @@ -307,7 +332,11 @@ export class CvcFusionSelectForm { {}, (data) => { if (data.createFusionFeature?.feature.id) { - this.onFusionSelected.next(data.createFusionFeature.feature.id) + const featureId = data.createFusionFeature.feature.id + this.onFusionSelected.next(featureId) + if (this.#modal) { + this.#modal.destroy({ featureId: featureId }) + } } } ) diff --git a/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts b/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts index feb0194ce..be97e111e 100644 --- a/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts +++ b/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts @@ -8,7 +8,7 @@ import { UntypedFormGroup } from '@angular/forms' import { EntityFieldSubjectMap } from '@app/forms/states/base.state' import { CvcFormRowWrapperProps } from '@app/forms/wrappers/form-row/form-row.wrapper' import { - CreateableFeatureTypes, + FeatureInstanceTypes, MolecularProfile, Variant, } from '@app/generated/civic.apollo' @@ -18,6 +18,7 @@ import { Maybe } from 'graphql/jsutils/Maybe' import { NzFormLayoutType } from 'ng-zorro-antd/form' import { BehaviorSubject } from 'rxjs' import { CvcVariantSelectFieldOption } from '../../variant-select/variant-select.type' +import { EnumToTitlePipe } from '@app/core/pipes/enum-to-title-pipe' type MpFinderModel = { featureId?: number @@ -43,6 +44,7 @@ export class MpFinderComponent { model: MpFinderModel form: UntypedFormGroup config: FormlyFieldConfig[] + featureType?: FeatureInstanceTypes finderState: MpFinderState = { formLayout: 'horizontal', @@ -79,6 +81,9 @@ export class MpFinderComponent { showExtra: false, showErrorTip: false, required: true, + featureTypeCallback: (ft: FeatureInstanceTypes) => { + this.featureType = ft + }, }, }, { @@ -113,10 +118,12 @@ export class MpFinderComponent { getSelectedVariant(variantId: Maybe): Maybe { if (!variantId) return + const feature = new EnumToTitlePipe().transform(this.featureType) + const fragment = { - id: `Variant:${variantId}`, + id: `${feature}Variant:${variantId}`, fragment: gql` - fragment VariantSelectQuery on Variant { + fragment VariantSelectQuery on ${feature}Variant { id name link diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-add.query.gql b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-add.query.gql new file mode 100644 index 000000000..8852f10c0 --- /dev/null +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-add.query.gql @@ -0,0 +1,17 @@ +mutation SelectOrCreateFusionVariant($organizationId: Int, $featureId: Int!, $coordinates: FusionVariantInput!) { + createFusionVariant(input: { + organizationId: $organizationId, + featureId: $featureId, + coordinates: $coordinates + }) { + ...CreateFusionVariantFields + } +} + +fragment CreateFusionVariantFields on CreateFusionVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.html b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.html new file mode 100644 index 000000000..f8c57f847 --- /dev/null +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.html @@ -0,0 +1,13 @@ +
+ + +
diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.less b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.less new file mode 100644 index 000000000..fe8bbc5f4 --- /dev/null +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.less @@ -0,0 +1,4 @@ +:host { + display: block; + width: 100%; +} diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts new file mode 100644 index 000000000..b0e07ae70 --- /dev/null +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts @@ -0,0 +1,416 @@ +import { + ChangeDetectionStrategy, + Component, + EventEmitter, + Output, + inject, +} from '@angular/core' +import { + AbstractControl, + ReactiveFormsModule, + UntypedFormGroup, +} from '@angular/forms' +import { + FusionOffsetDirection, + Maybe, + ReferenceBuild, + SelectOrCreateFusionVariantGQL, + SelectOrCreateFusionVariantMutation, + SelectOrCreateFusionVariantMutationVariables, +} from '@app/generated/civic.apollo' +import { + FormlyFieldConfig, + FormlyFormOptions, + FormlyModule, +} from '@ngx-formly/core' +import { NzFormLayoutType } from 'ng-zorro-antd/form' +import { CommonModule } from '@angular/common' +import { NzFormModule } from 'ng-zorro-antd/form' +import { NzButtonModule } from 'ng-zorro-antd/button' +import { RouterModule } from '@angular/router' +import { LetDirective, PushPipe } from '@ngrx/component' +import { NzAlertModule } from 'ng-zorro-antd/alert' +import { UntilDestroy } from '@ngneat/until-destroy' +import { + MutationState, + MutatorWithState, +} from '@app/core/utilities/mutation-state-wrapper' +import { NetworkErrorsService } from '@app/core/services/network-errors.service' +import { NZ_MODAL_DATA, NzModalModule, NzModalRef } from 'ng-zorro-antd/modal' +import { LinkableFeature } from '@app/components/features/feature-tag/feature-tag.component' +import { CvcFeatureTagModule } from '@app/components/features/feature-tag/feature-tag.module' + +type FusionVariantSelectModel = { + fivePrimeTranscript?: string + fivePrimeExonEnd?: string + fivePrimeOffset?: string + fivePrimeOffsetDirection?: FusionOffsetDirection + threePrimeTranscript?: string + threePrimeExonStart?: string + threePrimeOffset?: string + threePrimeOffsetDirection?: FusionOffsetDirection + referenceBuild?: ReferenceBuild + ensemblVersion?: number + organizationId?: number +} + +export interface FusionVariantSelectModalData { + feature?: LinkableFeature +} + +@UntilDestroy() +@Component({ + standalone: true, + selector: 'cvc-fusion-variant-select-form', + templateUrl: './fusion-variant-select.form.html', + styleUrls: ['./fusion-variant-select.form.less'], + changeDetection: ChangeDetectionStrategy.OnPush, + imports: [ + CommonModule, + PushPipe, + ReactiveFormsModule, + LetDirective, + NzFormModule, + NzButtonModule, + NzAlertModule, + NzModalModule, + RouterModule, + FormlyModule, + CvcFeatureTagModule, + ], +}) +export class CvcFusionVariantSelectForm { + @Output() onVariantSelected = new EventEmitter() + + readonly #modal = inject(NzModalRef) + readonly nzModalData: FusionVariantSelectModalData = inject(NZ_MODAL_DATA) + + model: FusionVariantSelectModel + form: UntypedFormGroup + config: FormlyFieldConfig[] + layout: NzFormLayoutType = 'vertical' + + options: FormlyFormOptions + + selectOrCreateFusionMutator: MutatorWithState< + SelectOrCreateFusionVariantGQL, + SelectOrCreateFusionVariantMutation, + SelectOrCreateFusionVariantMutationVariables + > + + mutationState?: MutationState + + constructor( + private query: SelectOrCreateFusionVariantGQL, + errors: NetworkErrorsService + ) { + this.selectOrCreateFusionMutator = new MutatorWithState(errors) + + this.form = new UntypedFormGroup({}) + + this.model = { + fivePrimeTranscript: undefined, + fivePrimeExonEnd: undefined, + fivePrimeOffset: undefined, + fivePrimeOffsetDirection: undefined, + threePrimeTranscript: undefined, + threePrimeExonStart: undefined, + threePrimeOffsetDirection: undefined, + ensemblVersion: undefined, + referenceBuild: undefined, + organizationId: undefined, + } + this.options = {} + + const isNumeric = (c: AbstractControl) => + c.value ? /^\d+$/.test(c.value) : true + + const selectOptions = [ + { + label: '+', + value: FusionOffsetDirection.Positive, + }, + { + label: '-', + value: FusionOffsetDirection.Negative, + }, + ] + + this.config = [ + { + wrappers: ['form-layout'], + props: { + showDevPanel: false, + }, + fieldGroup: [ + { + wrappers: ['form-card'], + props: { + formCardOptions: { + title: `New Fusion Variant for ${this.nzModalData.feature?.name}`, + }, + }, + fieldGroup: [ + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 12, + }, + }, + fieldGroup: [ + { + key: 'referenceBuild', + type: 'reference-build-select', + props: { + required: true, + }, + }, + { + key: 'ensemblVersion', + type: 'base-input', + validators: { + nccnVersionNumber: { + expression: (c: AbstractControl) => + c.value ? /^\d{2,3}$/.test(c.value) : true, + message: (_: any, field: FormlyFieldConfig) => + `"${field.formControl?.value}" does not appear to be an Ensembl version number`, + }, + }, + props: { + label: 'Ensembl Version', + description: + 'Enter a valid Ensembl database version (e.g. 75)', + required: true, + }, + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 6, + }, + }, + fieldGroup: [ + { + key: 'fivePrimeTranscript', + type: 'base-input', + props: { + label: "5' Transcript", + required: true, + tooltip: + "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected", + }, + }, + { + key: 'fivePrimeExonEnd', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "5' exon must be numeric", + }, + }, + props: { + label: "5' Exon End", + required: true, + tooltip: + 'The exon number counted from the 5’ end of the transcript.', + }, + }, + { + key: 'fivePrimeOffset', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "5' exon offset must be numeric", + }, + }, + props: { + label: "5' Exon Offset", + tooltip: + 'A value representing the offset from the segment boundary.', + }, + }, + { + key: 'fivePrimeOffsetDirection', + type: 'base-select', + props: { + label: "5' Exon Offset Direction", + tooltip: + 'Negative values offset towards the 5’ end of the transcript and positive values offset towards the 3’ end of the transcript.', + required: true, + placeholder: "5' Offset Direction", + options: selectOptions, + multiple: false, + }, + expressions: { + 'props.disabled': (field) => + Boolean(!field.model.fivePrimeOffset), + 'props.required': (field) => + Boolean(field.model.fivePrimeOffset), + }, + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 6, + }, + }, + fieldGroup: [ + { + key: 'threePrimeTranscript', + type: 'base-input', + props: { + required: true, + label: "3' Transcript", + tooltip: + "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected", + }, + }, + { + key: 'threePrimeExonStart', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "3' exon must be numeric", + }, + }, + props: { + label: "3' Exon Start", + tooltip: + 'The exon number counted from the 5’ end of the transcript.', + required: true, + }, + }, + { + key: 'threePrimeOffset', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "3' exon must be numeric", + }, + }, + props: { + label: "3' Exon Offset", + tooltip: + 'A value representing the offset from the segment boundary.', + }, + }, + { + key: 'threePrimeOffsetDirection', + type: 'base-select', + props: { + label: "3' Exon Offset Direction", + tooltip: + 'Negative values offset towards the 5’ end of the transcript and positive values offset towards the 3’ end of the transcript.', + required: true, + placeholder: "3' Offset Direction", + options: selectOptions, + multiple: false, + }, + expressions: { + 'props.disabled': (field) => + Boolean(!field.model.threePrimeOffset), + 'props.required': (field) => + Boolean(field.model.threePrimeOffset), + }, + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 24, + }, + }, + fieldGroup: [ + { + key: 'organizationId', + type: 'org-submit-button', + props: { + submitLabel: 'Create Fusion Variant', + align: 'right', + }, + }, + ], + }, + ], + }, + ], + }, + ] + } + + modelChange(model: Maybe) { + if (model) { + if (!this.model.fivePrimeOffset) { + this.model = { + ...this.model, + fivePrimeOffsetDirection: undefined, + } + } + if (!this.model.threePrimeOffset) { + this.model = { + ...this.model, + threePrimeOffsetDirection: undefined, + } + } + } + } + + submitFusion(model: FusionVariantSelectModel): void { + const numOrUndefined = (x?: string) => { + if (x) { + return +x + } else { + return undefined + } + } + + const featureId = this.nzModalData.feature?.id + + if (model && featureId) { + const coords = { + fivePrimeTranscript: model.fivePrimeTranscript!, + fivePrimeExonEnd: numOrUndefined(model.fivePrimeExonEnd), + fivePrimeOffset: numOrUndefined(model.fivePrimeOffset), + fivePrimeOffsetDirection: model.fivePrimeOffsetDirection, + threePrimeTranscript: model.threePrimeTranscript!, + threePrimeExonStart: numOrUndefined(model.threePrimeExonStart), + threePrimeOffset: numOrUndefined(model.threePrimeOffset), + threePrimeOffsetDirection: model.threePrimeOffsetDirection, + referenceBuild: model.referenceBuild!, + ensemblVersion: +model.ensemblVersion!, + } + + this.mutationState = this.selectOrCreateFusionMutator.mutate( + this.query, + { + organizationId: model.organizationId, + featureId: featureId, + coordinates: coords, + }, + {}, + (data) => { + if (data.createFusionVariant?.variant.id) { + const variantId = data.createFusionVariant.variant.id + this.onVariantSelected.next(variantId) + if (this.#modal) { + this.#modal.destroy({ variantId: variantId }) + } + } + } + ) + } + } +} diff --git a/client/src/app/forms/types/variant-select/variant-select.module.ts b/client/src/app/forms/types/variant-select/variant-select.module.ts index a98dc78b0..8bae9e142 100644 --- a/client/src/app/forms/types/variant-select/variant-select.module.ts +++ b/client/src/app/forms/types/variant-select/variant-select.module.ts @@ -38,6 +38,7 @@ import { TableScrollerDirective } from './variant-manager/table-scroller.directi import { CvcVariantManagerComponent } from './variant-manager/variant-manager.component' import { CvcVariantQuickAddForm } from './variant-quick-add/variant-quick-add.form' import { CvcVariantSelectField } from './variant-select.type' +import { NzSpaceModule } from 'ng-zorro-antd/space' const typeConfig: ConfigOption = { types: [ @@ -109,6 +110,8 @@ const typeConfig: ConfigOption = { NzTagModule, NzToolTipModule, NzTypographyModule, + NzModalModule, + NzSpaceModule, PushPipe, ReactiveFormsModule, ], diff --git a/client/src/app/forms/types/variant-select/variant-select.query.gql b/client/src/app/forms/types/variant-select/variant-select.query.gql index 158528a6d..9253f1b4a 100644 --- a/client/src/app/forms/types/variant-select/variant-select.query.gql +++ b/client/src/app/forms/types/variant-select/variant-select.query.gql @@ -15,6 +15,9 @@ query VariantSelectTag($variantId: Int!) { ... on FactorVariant { ...VariantSelectTypeaheadFields } + ... on FusionVariant { + ...VariantSelectTypeaheadFields + } } } diff --git a/client/src/app/forms/types/variant-select/variant-select.type.html b/client/src/app/forms/types/variant-select/variant-select.type.html index 291e9446a..ad494f4d1 100644 --- a/client/src/app/forms/types/variant-select/variant-select.type.html +++ b/client/src/app/forms/types/variant-select/variant-select.type.html @@ -111,10 +111,27 @@ #addVariant let-searchStr let-model="model"> + @if (selectedFeatureType == 'FUSION') { + + + {{searchStr}} does not match any existing Variants + + + } @else { + } diff --git a/client/src/app/forms/types/variant-select/variant-select.type.ts b/client/src/app/forms/types/variant-select/variant-select.type.ts index 223ff938d..6f8988f20 100644 --- a/client/src/app/forms/types/variant-select/variant-select.type.ts +++ b/client/src/app/forms/types/variant-select/variant-select.type.ts @@ -30,6 +30,7 @@ import { FormlyFieldConfig, FormlyFieldProps, } from '@ngx-formly/core' +import { NzModalService } from 'ng-zorro-antd/modal' import { NzSelectOptionInterface } from 'ng-zorro-antd/select' import { BehaviorSubject, @@ -45,6 +46,11 @@ import { take, } from 'rxjs' import mixin from 'ts-mixin-extended' +import { + CvcFusionVariantSelectForm, + FusionVariantSelectModalData, +} from './fusion-variant-select/fusion-variant-select.form' +import { LinkableFeature } from '@app/components/features/feature-tag/feature-tag.component' export interface VariantIdWithCreationStatus { new: boolean @@ -108,6 +114,8 @@ export class CvcVariantSelectField onModel$ = new Observable() selectedFeatureId?: number + selectedFeatureType?: string + selectedFeature?: LinkableFeature // FieldTypeConfig defaults defaultOptions = { @@ -133,7 +141,8 @@ export class CvcVariantSelectField private taq: VariantSelectTypeaheadGQL, private tq: VariantSelectTagGQL, private featureQuery: LinkableFeatureGQL, - private changeDetectorRef: ChangeDetectorRef + private changeDetectorRef: ChangeDetectorRef, + private modal: NzModalService ) { super() this.onFeatureName$ = new BehaviorSubject>(undefined) @@ -269,6 +278,7 @@ export class CvcVariantSelectField onSelectOrCreate(variant: VariantIdWithCreationStatus) { this.onPopulate$.next(variant.id) + this.formControl.setValue(variant.id) if (this.props.isNewlyCreatedCallback) { this.props.isNewlyCreatedCallback(variant.new) } @@ -301,6 +311,8 @@ export class CvcVariantSelectField `${this.field.id} could not fetch feature name for Feature:${fid}.` ) } else { + this.selectedFeatureType = data.feature.featureType + this.selectedFeature = data.feature if (this.props.requireFeature) { this.props.placeholder = this.props.requireFeaturePlaceholderFn( data.feature.name @@ -314,4 +326,25 @@ export class CvcVariantSelectField }) } } + + createFusionVariantModal() { + const modal = this.modal.create< + CvcFusionVariantSelectForm, + FusionVariantSelectModalData + >({ + nzTitle: 'Add New Fusion Variant', + nzContent: CvcFusionVariantSelectForm, + nzData: { feature: this.selectedFeature }, + nzFooter: null, + nzWidth: '60%', + }) + + modal.getContentComponent() + modal.afterClose.pipe(untilDestroyed(this)).subscribe((result) => { + if (result.variantId) { + this.onSelectOrCreate({ id: result.variantId, new: true }) + this.onVid$.next(result.variantId) + } + }) + } } diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 06fe3e4f6..efb7f4df1 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -583,6 +583,13 @@ export type CreateFusionFeaturePayloadFieldPolicy = { feature?: FieldPolicy | FieldReadFunction, new?: FieldPolicy | FieldReadFunction }; +export type CreateFusionVariantPayloadKeySpecifier = ('clientMutationId' | 'molecularProfile' | 'new' | 'variant' | CreateFusionVariantPayloadKeySpecifier)[]; +export type CreateFusionVariantPayloadFieldPolicy = { + clientMutationId?: FieldPolicy | FieldReadFunction, + molecularProfile?: FieldPolicy | FieldReadFunction, + new?: FieldPolicy | FieldReadFunction, + variant?: FieldPolicy | FieldReadFunction +}; export type CreateMolecularProfilePayloadKeySpecifier = ('clientMutationId' | 'molecularProfile' | CreateMolecularProfilePayloadKeySpecifier)[]; export type CreateMolecularProfilePayloadFieldPolicy = { clientMutationId?: FieldPolicy | FieldReadFunction, @@ -821,7 +828,7 @@ export type EvidenceItemsByTypeFieldPolicy = { predisposingCount?: FieldPolicy | FieldReadFunction, prognosticCount?: FieldPolicy | FieldReadFunction }; -export type FactorKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'ncitDetails' | 'ncitId' | 'revisions' | 'sources' | 'variants' | FactorKeySpecifier)[]; +export type FactorKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'ncitDetails' | 'ncitId' | 'revisions' | 'sources' | 'variants' | FactorKeySpecifier)[]; export type FactorFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -832,6 +839,7 @@ export type FactorFieldPolicy = { events?: FieldPolicy | FieldReadFunction, featureAliases?: FieldPolicy | FieldReadFunction, featureInstance?: FieldPolicy | FieldReadFunction, + featureType?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, flags?: FieldPolicy | FieldReadFunction, fullName?: FieldPolicy | FieldReadFunction, @@ -878,7 +886,7 @@ export type FdaCodeFieldPolicy = { code?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction }; -export type FeatureKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'variants' | FeatureKeySpecifier)[]; +export type FeatureKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'variants' | FeatureKeySpecifier)[]; export type FeatureFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -889,6 +897,7 @@ export type FeatureFieldPolicy = { events?: FieldPolicy | FieldReadFunction, featureAliases?: FieldPolicy | FieldReadFunction, featureInstance?: FieldPolicy | FieldReadFunction, + featureType?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, flags?: FieldPolicy | FieldReadFunction, fullName?: FieldPolicy | FieldReadFunction, @@ -912,6 +921,19 @@ export type FieldValidationErrorFieldPolicy = { error?: FieldPolicy | FieldReadFunction, fieldName?: FieldPolicy | FieldReadFunction }; +export type FivePrimeFusionVariantCoordinateKeySpecifier = ('chromosome' | 'endExon' | 'ensemblVersion' | 'exonBoundary' | 'exonOffset' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | FivePrimeFusionVariantCoordinateKeySpecifier)[]; +export type FivePrimeFusionVariantCoordinateFieldPolicy = { + chromosome?: FieldPolicy | FieldReadFunction, + endExon?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + exonBoundary?: FieldPolicy | FieldReadFunction, + exonOffset?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + referenceBuild?: FieldPolicy | FieldReadFunction, + representativeTranscript?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction, + stop?: FieldPolicy | FieldReadFunction +}; export type FlagKeySpecifier = ('comments' | 'createdAt' | 'events' | 'flaggable' | 'flaggingUser' | 'id' | 'lastCommentEvent' | 'link' | 'name' | 'openActivity' | 'resolutionActivity' | 'resolvingUser' | 'state' | FlagKeySpecifier)[]; export type FlagFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, @@ -970,7 +992,7 @@ export type FlaggableFieldPolicy = { link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type FusionKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'fivePrimeGene' | 'fivePrimePartnerStatus' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'threePrimeGene' | 'threePrimePartnerStatus' | 'variants' | FusionKeySpecifier)[]; +export type FusionKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'fivePrimeGene' | 'fivePrimePartnerStatus' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'threePrimeGene' | 'threePrimePartnerStatus' | 'variants' | FusionKeySpecifier)[]; export type FusionFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -981,6 +1003,7 @@ export type FusionFieldPolicy = { events?: FieldPolicy | FieldReadFunction, featureAliases?: FieldPolicy | FieldReadFunction, featureInstance?: FieldPolicy | FieldReadFunction, + featureType?: FieldPolicy | FieldReadFunction, fivePrimeGene?: FieldPolicy | FieldReadFunction, fivePrimePartnerStatus?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, @@ -998,7 +1021,35 @@ export type FusionFieldPolicy = { threePrimePartnerStatus?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction }; -export type GeneKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'entrezId' | 'events' | 'featureAliases' | 'featureInstance' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'myGeneInfoDetails' | 'name' | 'revisions' | 'sources' | 'variants' | GeneKeySpecifier)[]; +export type FusionVariantKeySpecifier = ('clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'variantAliases' | 'variantTypes' | FusionVariantKeySpecifier)[]; +export type FusionVariantFieldPolicy = { + clinvarIds?: FieldPolicy | FieldReadFunction, + comments?: FieldPolicy | FieldReadFunction, + creationActivity?: FieldPolicy | FieldReadFunction, + deprecated?: FieldPolicy | FieldReadFunction, + deprecationActivity?: FieldPolicy | FieldReadFunction, + deprecationReason?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + feature?: FieldPolicy | FieldReadFunction, + fivePrimeCoordinates?: FieldPolicy | FieldReadFunction, + flagged?: FieldPolicy | FieldReadFunction, + flags?: FieldPolicy | FieldReadFunction, + hgvsDescriptions?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, + lastCommentEvent?: FieldPolicy | FieldReadFunction, + lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, + link?: FieldPolicy | FieldReadFunction, + molecularProfiles?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + revisions?: FieldPolicy | FieldReadFunction, + singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, + singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, + threePrimeCoordinates?: FieldPolicy | FieldReadFunction, + variantAliases?: FieldPolicy | FieldReadFunction, + variantTypes?: FieldPolicy | FieldReadFunction +}; +export type GeneKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'entrezId' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'myGeneInfoDetails' | 'name' | 'revisions' | 'sources' | 'variants' | GeneKeySpecifier)[]; export type GeneFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -1010,6 +1061,7 @@ export type GeneFieldPolicy = { events?: FieldPolicy | FieldReadFunction, featureAliases?: FieldPolicy | FieldReadFunction, featureInstance?: FieldPolicy | FieldReadFunction, + featureType?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, flags?: FieldPolicy | FieldReadFunction, fullName?: FieldPolicy | FieldReadFunction, @@ -1311,7 +1363,7 @@ export type MolecularProfileTextSegmentKeySpecifier = ('text' | MolecularProfile export type MolecularProfileTextSegmentFieldPolicy = { text?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createFusionFeature' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; +export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createFusionFeature' | 'createFusionVariant' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; export type MutationFieldPolicy = { acceptRevisions?: FieldPolicy | FieldReadFunction, addComment?: FieldPolicy | FieldReadFunction, @@ -1320,6 +1372,7 @@ export type MutationFieldPolicy = { addTherapy?: FieldPolicy | FieldReadFunction, createFeature?: FieldPolicy | FieldReadFunction, createFusionFeature?: FieldPolicy | FieldReadFunction, + createFusionVariant?: FieldPolicy | FieldReadFunction, createMolecularProfile?: FieldPolicy | FieldReadFunction, createVariant?: FieldPolicy | FieldReadFunction, deprecateComplexMolecularProfile?: FieldPolicy | FieldReadFunction, @@ -2040,6 +2093,19 @@ export type TherapyPopoverFieldPolicy = { therapyAliases?: FieldPolicy | FieldReadFunction, therapyUrl?: FieldPolicy | FieldReadFunction }; +export type ThreePrimeFusionVariantCoordinateKeySpecifier = ('chromosome' | 'ensemblVersion' | 'exonBoundary' | 'exonOffset' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'startExon' | 'stop' | ThreePrimeFusionVariantCoordinateKeySpecifier)[]; +export type ThreePrimeFusionVariantCoordinateFieldPolicy = { + chromosome?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + exonBoundary?: FieldPolicy | FieldReadFunction, + exonOffset?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + referenceBuild?: FieldPolicy | FieldReadFunction, + representativeTranscript?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction, + startExon?: FieldPolicy | FieldReadFunction, + stop?: FieldPolicy | FieldReadFunction +}; export type TimePointCountsKeySpecifier = ('allTime' | 'newThisMonth' | 'newThisWeek' | 'newThisYear' | TimePointCountsKeySpecifier)[]; export type TimePointCountsFieldPolicy = { allTime?: FieldPolicy | FieldReadFunction, @@ -2519,6 +2585,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | CreateFusionFeaturePayloadKeySpecifier | (() => undefined | CreateFusionFeaturePayloadKeySpecifier), fields?: CreateFusionFeaturePayloadFieldPolicy, }, + CreateFusionVariantPayload?: Omit & { + keyFields?: false | CreateFusionVariantPayloadKeySpecifier | (() => undefined | CreateFusionVariantPayloadKeySpecifier), + fields?: CreateFusionVariantPayloadFieldPolicy, + }, CreateMolecularProfilePayload?: Omit & { keyFields?: false | CreateMolecularProfilePayloadKeySpecifier | (() => undefined | CreateMolecularProfilePayloadKeySpecifier), fields?: CreateMolecularProfilePayloadFieldPolicy, @@ -2643,6 +2713,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | FieldValidationErrorKeySpecifier | (() => undefined | FieldValidationErrorKeySpecifier), fields?: FieldValidationErrorFieldPolicy, }, + FivePrimeFusionVariantCoordinate?: Omit & { + keyFields?: false | FivePrimeFusionVariantCoordinateKeySpecifier | (() => undefined | FivePrimeFusionVariantCoordinateKeySpecifier), + fields?: FivePrimeFusionVariantCoordinateFieldPolicy, + }, Flag?: Omit & { keyFields?: false | FlagKeySpecifier | (() => undefined | FlagKeySpecifier), fields?: FlagFieldPolicy, @@ -2671,6 +2745,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | FusionKeySpecifier | (() => undefined | FusionKeySpecifier), fields?: FusionFieldPolicy, }, + FusionVariant?: Omit & { + keyFields?: false | FusionVariantKeySpecifier | (() => undefined | FusionVariantKeySpecifier), + fields?: FusionVariantFieldPolicy, + }, Gene?: Omit & { keyFields?: false | GeneKeySpecifier | (() => undefined | GeneKeySpecifier), fields?: GeneFieldPolicy, @@ -3043,6 +3121,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | TherapyPopoverKeySpecifier | (() => undefined | TherapyPopoverKeySpecifier), fields?: TherapyPopoverFieldPolicy, }, + ThreePrimeFusionVariantCoordinate?: Omit & { + keyFields?: false | ThreePrimeFusionVariantCoordinateKeySpecifier | (() => undefined | ThreePrimeFusionVariantCoordinateKeySpecifier), + fields?: ThreePrimeFusionVariantCoordinateFieldPolicy, + }, TimePointCounts?: Omit & { keyFields?: false | TimePointCountsKeySpecifier | (() => undefined | TimePointCountsKeySpecifier), fields?: TimePointCountsFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index b25dbc4b5..13229e0b2 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -1238,6 +1238,35 @@ export type CreateFusionFeaturePayload = { new: Scalars['Boolean']; }; +/** Autogenerated input type of CreateFusionVariant */ +export type CreateFusionVariantInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + coordinates: FusionVariantInput; + /** The CIViC ID of the Feature to which the new variant belongs. */ + featureId: Scalars['Int']; + /** + * The ID of the organization to credit the user's contributions to. + * If the user belongs to a single organization or no organizations, this field is not required. + * This field is required if the user belongs to more than one organization. + * The user must belong to the organization provided. + */ + organizationId?: InputMaybe; +}; + +/** Autogenerated return type of CreateFusionVariant. */ +export type CreateFusionVariantPayload = { + __typename: 'CreateFusionVariantPayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The newly created molecular profile for the new variant. */ + molecularProfile: MolecularProfile; + /** True if the variant was newly created. False if the returned variant was already in the database. */ + new: Scalars['Boolean']; + /** The newly created Variant. */ + variant: VariantInterface; +}; + /** Autogenerated input type of CreateMolecularProfile */ export type CreateMolecularProfileInput = { /** A unique identifier for the client performing the mutation. */ @@ -1949,6 +1978,7 @@ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable events: EventConnection; featureAliases: Array; featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; flagged: Scalars['Boolean']; /** List and filter flags. */ flags: FlagConnection; @@ -2171,6 +2201,7 @@ export type Feature = Commentable & EventOriginObject & EventSubject & Flaggable events: EventConnection; featureAliases: Array; featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; flagged: Scalars['Boolean']; /** List and filter flags. */ flags: FlagConnection; @@ -2299,6 +2330,20 @@ export type FieldValidationError = { fieldName: Scalars['String']; }; +export type FivePrimeFusionVariantCoordinate = { + __typename: 'FivePrimeFusionVariantCoordinate'; + chromosome?: Maybe; + endExon?: Maybe; + ensemblVersion?: Maybe; + exonBoundary?: Maybe; + exonOffset?: Maybe; + id: Scalars['Int']; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + start?: Maybe; + stop?: Maybe; +}; + export type Flag = Commentable & EventOriginObject & EventSubject & { __typename: 'Flag'; /** List and filter comments. */ @@ -2476,6 +2521,7 @@ export type Fusion = Commentable & EventOriginObject & EventSubject & Flaggable events: EventConnection; featureAliases: Array; featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; fivePrimeGene?: Maybe; fivePrimePartnerStatus: FusionPartnerStatus; flagged: Scalars['Boolean']; @@ -2561,6 +2607,11 @@ export type FusionVariantsArgs = { name?: InputMaybe; }; +export enum FusionOffsetDirection { + Negative = 'NEGATIVE', + Positive = 'POSITIVE' +} + /** The fusion partner's status and gene ID (if applicable) */ export type FusionPartnerInput = { /** The CIViC gene ID of the partner, if known */ @@ -2575,6 +2626,112 @@ export enum FusionPartnerStatus { Unknown = 'UNKNOWN' } +export type FusionVariant = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions & { + __typename: 'FusionVariant'; + clinvarIds: Array; + /** List and filter comments. */ + comments: CommentConnection; + creationActivity?: Maybe; + deprecated: Scalars['Boolean']; + deprecationActivity?: Maybe; + deprecationReason?: Maybe; + /** List and filter events for an object */ + events: EventConnection; + feature: Feature; + fivePrimeCoordinates?: Maybe; + flagged: Scalars['Boolean']; + /** List and filter flags. */ + flags: FlagConnection; + hgvsDescriptions: Array; + id: Scalars['Int']; + lastAcceptedRevisionEvent?: Maybe; + lastCommentEvent?: Maybe; + lastSubmittedRevisionEvent?: Maybe; + link: Scalars['String']; + molecularProfiles: MolecularProfileConnection; + name: Scalars['String']; + /** List and filter revisions. */ + revisions: RevisionConnection; + singleVariantMolecularProfile: MolecularProfile; + singleVariantMolecularProfileId: Scalars['Int']; + threePrimeCoordinates?: Maybe; + variantAliases: Array; + variantTypes: Array; +}; + + +export type FusionVariantCommentsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + mentionedEntity?: InputMaybe; + mentionedRole?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + + +export type FusionVariantEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + + +export type FusionVariantFlagsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; + sortBy?: InputMaybe; + state?: InputMaybe; +}; + + +export type FusionVariantMolecularProfilesArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + +export type FusionVariantRevisionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; + sortBy?: InputMaybe; + status?: InputMaybe; +}; + +/** The fields required to create a fusion variant */ +export type FusionVariantInput = { + ensemblVersion: Scalars['Int']; + fivePrimeExonEnd?: InputMaybe; + fivePrimeOffset?: InputMaybe; + fivePrimeOffsetDirection?: InputMaybe; + fivePrimeTranscript: Scalars['String']; + /** The reference build for the genomic coordinates of this Variant. */ + referenceBuild?: InputMaybe; + threePrimeExonStart?: InputMaybe; + threePrimeOffset?: InputMaybe; + threePrimeOffsetDirection?: InputMaybe; + threePrimeTranscript: Scalars['String']; +}; + /** The Feature that a Variant can belong to */ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions & { __typename: 'Gene'; @@ -2590,6 +2747,7 @@ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & events: EventConnection; featureAliases: Array; featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; flagged: Scalars['Boolean']; /** List and filter flags. */ flags: FlagConnection; @@ -3431,6 +3589,8 @@ export type Mutation = { createFeature?: Maybe; /** Create a new Fusion Feature in the database. */ createFusionFeature?: Maybe; + /** Create a new Fusion Variant in the database. */ + createFusionVariant?: Maybe; /** Create a new Molecular Profile in order to attach Evidence Items to it. */ createMolecularProfile?: Maybe; /** Create a new Variant to the database. */ @@ -3539,6 +3699,11 @@ export type MutationCreateFusionFeatureArgs = { }; +export type MutationCreateFusionVariantArgs = { + input: CreateFusionVariantInput; +}; + + export type MutationCreateMolecularProfileArgs = { input: CreateMolecularProfileInput; }; @@ -5715,7 +5880,7 @@ export type SuggestFactorRevisionPayload = { __typename: 'SuggestFactorRevisionPayload'; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; - /** The Gene the user has proposed a Revision to. */ + /** The Factor the user has proposed a Revision to. */ factor: Factor; /** * A list of Revisions generated as a result of this suggestion. @@ -6045,6 +6210,20 @@ export enum TherapySortColumns { NcitId = 'NCIT_ID' } +export type ThreePrimeFusionVariantCoordinate = { + __typename: 'ThreePrimeFusionVariantCoordinate'; + chromosome?: Maybe; + ensemblVersion?: Maybe; + exonBoundary?: Maybe; + exonOffset?: Maybe; + id: Scalars['Int']; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + start?: Maybe; + startExon?: Maybe; + stop?: Maybe; +}; + export type TimePointCounts = { __typename: 'TimePointCounts'; allTime: Scalars['Int']; @@ -6412,6 +6591,7 @@ export type VariantAlias = { export enum VariantCategories { Factor = 'FACTOR', + Fusion = 'FUSION', Gene = 'GENE' } @@ -6849,45 +7029,45 @@ export type ActivityFeedQueryVariables = Exact<{ }>; -export type ActivityFeedQuery = { __typename: 'Query', activities: { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> } }; +export type ActivityFeedQuery = { __typename: 'Query', activities: { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> } }; -export type ActivityFeedFragment = { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> }; +export type ActivityFeedFragment = { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> }; -type ActivityFeedNode_AcceptRevisionsActivity_Fragment = { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_AcceptRevisionsActivity_Fragment = { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CommentActivity_Fragment = { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CommentActivity_Fragment = { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment = { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment = { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateFeatureActivity_Fragment = { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateFeatureActivity_Fragment = { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateVariantActivity_Fragment = { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateVariantActivity_Fragment = { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment = { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment = { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateFeatureActivity_Fragment = { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateFeatureActivity_Fragment = { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateVariantActivity_Fragment = { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateVariantActivity_Fragment = { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_FlagEntityActivity_Fragment = { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_FlagEntityActivity_Fragment = { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ModerateAssertionActivity_Fragment = { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ModerateAssertionActivity_Fragment = { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ModerateEvidenceItemActivity_Fragment = { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ModerateEvidenceItemActivity_Fragment = { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_RejectRevisionsActivity_Fragment = { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_RejectRevisionsActivity_Fragment = { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ResolveFlagActivity_Fragment = { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ResolveFlagActivity_Fragment = { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SubmitAssertionActivity_Fragment = { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SubmitAssertionActivity_Fragment = { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SubmitEvidenceItemActivity_Fragment = { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SubmitEvidenceItemActivity_Fragment = { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SuggestRevisionSetActivity_Fragment = { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SuggestRevisionSetActivity_Fragment = { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SuggestSourceActivity_Fragment = { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SuggestSourceActivity_Fragment = { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment = { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment = { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; export type ActivityFeedNodeFragment = ActivityFeedNode_AcceptRevisionsActivity_Fragment | ActivityFeedNode_CommentActivity_Fragment | ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_CreateFeatureActivity_Fragment | ActivityFeedNode_CreateVariantActivity_Fragment | ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_DeprecateFeatureActivity_Fragment | ActivityFeedNode_DeprecateVariantActivity_Fragment | ActivityFeedNode_FlagEntityActivity_Fragment | ActivityFeedNode_ModerateAssertionActivity_Fragment | ActivityFeedNode_ModerateEvidenceItemActivity_Fragment | ActivityFeedNode_RejectRevisionsActivity_Fragment | ActivityFeedNode_ResolveFlagActivity_Fragment | ActivityFeedNode_SubmitAssertionActivity_Fragment | ActivityFeedNode_SubmitEvidenceItemActivity_Fragment | ActivityFeedNode_SuggestRevisionSetActivity_Fragment | ActivityFeedNode_SuggestSourceActivity_Fragment | ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment; @@ -6986,9 +7166,9 @@ export type CommentPopoverQueryVariables = Exact<{ }>; -export type CommentPopoverQuery = { __typename: 'Query', comment?: { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } } | undefined }; +export type CommentPopoverQuery = { __typename: 'Query', comment?: { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } } | undefined }; -export type CommentPopoverFragment = { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } }; +export type CommentPopoverFragment = { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, name: string, link: string } }; export type DiseasePopoverQueryVariables = Exact<{ diseaseId: Scalars['Int']; @@ -7044,11 +7224,11 @@ export type EventFeedQueryVariables = Exact<{ }>; -export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; +export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; -export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; +export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; -export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; +export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; export type EvidencePopoverQueryVariables = Exact<{ evidenceId: Scalars['Int']; @@ -7134,20 +7314,20 @@ export type FlagListQueryVariables = Exact<{ }>; -export type FlagListQuery = { __typename: 'Query', flags: { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> } }; +export type FlagListQuery = { __typename: 'Query', flags: { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> } }; -export type FlagListFragment = { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> }; +export type FlagListFragment = { __typename: 'FlagConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueFlaggingUsers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvingUsers?: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }> | undefined, edges: Array<{ __typename: 'FlagEdge', node?: { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }> }; -export type FlagFragment = { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type FlagFragment = { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; export type FlagPopoverQueryVariables = Exact<{ flagId: Scalars['Int']; }>; -export type FlagPopoverQuery = { __typename: 'Query', flag?: { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } } | undefined }; +export type FlagPopoverQuery = { __typename: 'Query', flag?: { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } } | undefined }; -export type FlagPopoverFragment = { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } }; +export type FlagPopoverFragment = { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } }; export type QuicksearchQueryVariables = Exact<{ query: Scalars['String']; @@ -7325,9 +7505,9 @@ export type RevisionPopoverQueryVariables = Exact<{ }>; -export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } } | undefined }; +export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } } | undefined }; -export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; +export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; export type RevisionsQueryVariables = Exact<{ subject?: InputMaybe; @@ -7593,30 +7773,34 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; +type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string }; + type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; -export type CoordinatesCardFieldsFragment = CoordinatesCardFields_FactorVariant_Fragment | CoordinatesCardFields_GeneVariant_Fragment | CoordinatesCardFields_Variant_Fragment; +export type CoordinatesCardFieldsFragment = CoordinatesCardFields_FactorVariant_Fragment | CoordinatesCardFields_FusionVariant_Fragment | CoordinatesCardFields_GeneVariant_Fragment | CoordinatesCardFields_Variant_Fragment; export type VariantPopoverQueryVariables = Exact<{ variantId: Scalars['Int']; }>; -export type VariantPopoverQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | undefined }; +export type VariantPopoverQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | undefined }; type VariantPopoverFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; +type VariantPopoverFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; + type VariantPopoverFields_GeneVariant_Fragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; type VariantPopoverFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; -export type VariantPopoverFieldsFragment = VariantPopoverFields_FactorVariant_Fragment | VariantPopoverFields_GeneVariant_Fragment | VariantPopoverFields_Variant_Fragment; +export type VariantPopoverFieldsFragment = VariantPopoverFields_FactorVariant_Fragment | VariantPopoverFields_FusionVariant_Fragment | VariantPopoverFields_GeneVariant_Fragment | VariantPopoverFields_Variant_Fragment; export type VariantsMenuQueryVariables = Exact<{ featureId?: InputMaybe; @@ -7631,7 +7815,7 @@ export type VariantsMenuQueryVariables = Exact<{ }>; -export type VariantsMenuQuery = { __typename: 'Query', variants: { __typename: 'VariantInterfaceConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean }, nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, flagged: boolean } | { __typename: 'GeneVariant', id: number, name: string, link: string, flagged: boolean } | { __typename: 'Variant', id: number, name: string, link: string, flagged: boolean }> } }; +export type VariantsMenuQuery = { __typename: 'Query', variants: { __typename: 'VariantInterfaceConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean }, nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, flagged: boolean } | { __typename: 'FusionVariant', id: number, name: string, link: string, flagged: boolean } | { __typename: 'GeneVariant', id: number, name: string, link: string, flagged: boolean } | { __typename: 'Variant', id: number, name: string, link: string, flagged: boolean }> } }; export type VariantTypesForFeatureQueryVariables = Exact<{ featureId?: InputMaybe; @@ -7644,11 +7828,13 @@ export type MenuVariantTypeFragment = { __typename: 'BrowseVariantType', id: num type MenuVariant_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, flagged: boolean }; +type MenuVariant_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, flagged: boolean }; + type MenuVariant_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, flagged: boolean }; type MenuVariant_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, flagged: boolean }; -export type MenuVariantFragment = MenuVariant_FactorVariant_Fragment | MenuVariant_GeneVariant_Fragment | MenuVariant_Variant_Fragment; +export type MenuVariantFragment = MenuVariant_FactorVariant_Fragment | MenuVariant_FusionVariant_Fragment | MenuVariant_GeneVariant_Fragment | MenuVariant_Variant_Fragment; export type BrowseVariantsQueryVariables = Exact<{ variantName?: InputMaybe; @@ -7740,7 +7926,7 @@ export type LinkableVariantQueryVariables = Exact<{ }>; -export type LinkableVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; +export type LinkableVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; export type LinkableTherapyQueryVariables = Exact<{ therapyId: Scalars['Int']; @@ -7754,7 +7940,7 @@ export type LinkableFeatureQueryVariables = Exact<{ }>; -export type LinkableFeatureQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, link: string } | undefined }; +export type LinkableFeatureQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, link: string, featureType: FeatureInstanceTypes } | undefined }; export type DeprecateFeatureMutationVariables = Exact<{ featureId: Scalars['Int']; @@ -7771,7 +7957,7 @@ export type VariantsForFeatureQueryVariables = Exact<{ }>; -export type VariantsForFeatureQuery = { __typename: 'Query', variants: { __typename: 'VariantInterfaceConnection', nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> } }; +export type VariantsForFeatureQuery = { __typename: 'Query', variants: { __typename: 'VariantInterfaceConnection', nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'FusionVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> } }; export type FlagEntityMutationVariables = Exact<{ input: FlagEntityInput; @@ -7821,7 +8007,7 @@ export type DeprecateVariantMutationVariables = Exact<{ }>; -export type DeprecateVariantMutation = { __typename: 'Mutation', deprecateVariant?: { __typename: 'DeprecateVariantPayload', newlyDeprecatedMolecularProfiles?: Array<{ __typename: 'MolecularProfile', id: number }> | undefined, variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | undefined } | undefined }; +export type DeprecateVariantMutation = { __typename: 'Mutation', deprecateVariant?: { __typename: 'DeprecateVariantPayload', newlyDeprecatedMolecularProfiles?: Array<{ __typename: 'MolecularProfile', id: number }> | undefined, variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | undefined } | undefined }; export type MolecularProfilesForVariantQueryVariables = Exact<{ variantId: Scalars['Int']; @@ -7930,7 +8116,7 @@ export type FactorVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type FactorVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }> } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number } | undefined }; +export type FactorVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }> } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number } | undefined }; export type RevisableFactorVariantFieldsFragment = { __typename: 'FactorVariant', name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }> }; @@ -7962,7 +8148,7 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; @@ -8047,7 +8233,7 @@ export type EntityTagsTestQueryVariables = Exact<{ }>; -export type EntityTagsTestQuery = { __typename: 'Query', evidenceItem?: { __typename: 'EvidenceItem', id: number, name: string, link: string } | undefined, molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, gene?: { __typename: 'Gene', id: number, name: string, link: string } | undefined, variant?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined, therapy?: { __typename: 'Therapy', id: number, name: string, link: string } | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined }; +export type EntityTagsTestQuery = { __typename: 'Query', evidenceItem?: { __typename: 'EvidenceItem', id: number, name: string, link: string } | undefined, molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, gene?: { __typename: 'Gene', id: number, name: string, link: string } | undefined, variant?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined, therapy?: { __typename: 'Therapy', id: number, name: string, link: string } | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined }; export type AcmgCodeSelectTypeaheadQueryVariables = Exact<{ code: Scalars['String']; @@ -8219,7 +8405,7 @@ export type PreviewMolecularProfileName2QueryVariables = Exact<{ }>; -export type PreviewMolecularProfileName2Query = { __typename: 'Query', previewMolecularProfileName: { __typename: 'MolecularProfileNamePreview', existingMolecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, segments: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string }>, deprecatedVariants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string }> } }; +export type PreviewMolecularProfileName2Query = { __typename: 'Query', previewMolecularProfileName: { __typename: 'MolecularProfileNamePreview', existingMolecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, segments: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string }>, deprecatedVariants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string }> } }; export type MpExpressionEditorPrepopulateQueryVariables = Exact<{ mpId: Scalars['Int']; @@ -8334,6 +8520,17 @@ export type TherapySelectTagQuery = { __typename: 'Query', therapy?: { __typenam export type TherapySelectTypeaheadFieldsFragment = { __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array }; +export type SelectOrCreateFusionVariantMutationVariables = Exact<{ + organizationId?: InputMaybe; + featureId: Scalars['Int']; + coordinates: FusionVariantInput; +}>; + + +export type SelectOrCreateFusionVariantMutation = { __typename: 'Mutation', createFusionVariant?: { __typename: 'CreateFusionVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } } | undefined }; + +export type CreateFusionVariantFieldsFragment = { __typename: 'CreateFusionVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } }; + export type VariantManagerQueryVariables = Exact<{ variantName?: InputMaybe; featureName?: InputMaybe; @@ -8361,9 +8558,9 @@ export type QuickAddVariantMutationVariables = Exact<{ }>; -export type QuickAddVariantMutation = { __typename: 'Mutation', createVariant?: { __typename: 'CreateVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } } | undefined }; +export type QuickAddVariantMutation = { __typename: 'Mutation', createVariant?: { __typename: 'CreateVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } } | undefined }; -export type QuickAddVariantFieldsFragment = { __typename: 'CreateVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } }; +export type QuickAddVariantFieldsFragment = { __typename: 'CreateVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } }; export type VariantSelectTypeaheadQueryVariables = Exact<{ name: Scalars['String']; @@ -8378,15 +8575,17 @@ export type VariantSelectTagQueryVariables = Exact<{ }>; -export type VariantSelectTagQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | undefined }; +export type VariantSelectTagQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | undefined }; type VariantSelectTypeaheadFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } }; +type VariantSelectTypeaheadFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } }; + type VariantSelectTypeaheadFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } }; type VariantSelectTypeaheadFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } }; -export type VariantSelectTypeaheadFieldsFragment = VariantSelectTypeaheadFields_FactorVariant_Fragment | VariantSelectTypeaheadFields_GeneVariant_Fragment | VariantSelectTypeaheadFields_Variant_Fragment; +export type VariantSelectTypeaheadFieldsFragment = VariantSelectTypeaheadFields_FactorVariant_Fragment | VariantSelectTypeaheadFields_FusionVariant_Fragment | VariantSelectTypeaheadFields_GeneVariant_Fragment | VariantSelectTypeaheadFields_Variant_Fragment; export type VariantTypeSelectTypeaheadQueryVariables = Exact<{ name: Scalars['String']; @@ -8509,18 +8708,18 @@ export type MolecularProfileDetailQueryVariables = Exact<{ }>; -export type MolecularProfileDetailQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, deprecationReason?: MolecularProfileDeprecationReason | undefined, molecularProfileAliases: Array, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, deprecatedVariants: Array<{ __typename: 'FactorVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'GeneVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Variant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, variants: Array<{ __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number }> } | undefined }; +export type MolecularProfileDetailQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, deprecationReason?: MolecularProfileDeprecationReason | undefined, molecularProfileAliases: Array, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, deprecatedVariants: Array<{ __typename: 'FactorVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'FusionVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'GeneVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Variant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, variants: Array<{ __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number }> } | undefined }; -export type MolecularProfileDetailFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, deprecationReason?: MolecularProfileDeprecationReason | undefined, molecularProfileAliases: Array, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, deprecatedVariants: Array<{ __typename: 'FactorVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'GeneVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Variant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, variants: Array<{ __typename: 'FactorVariant', id: number } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number }> }; +export type MolecularProfileDetailFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, deprecationReason?: MolecularProfileDeprecationReason | undefined, molecularProfileAliases: Array, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, deprecatedVariants: Array<{ __typename: 'FactorVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'FusionVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'GeneVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Variant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string } }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, variants: Array<{ __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number }> }; export type MolecularProfileSummaryQueryVariables = Exact<{ mpId: Scalars['Int']; }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8532,11 +8731,13 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; +type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; + type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; -export type VariantMolecularProfileCardFieldsFragment = VariantMolecularProfileCardFields_FactorVariant_Fragment | VariantMolecularProfileCardFields_GeneVariant_Fragment | VariantMolecularProfileCardFields_Variant_Fragment; +export type VariantMolecularProfileCardFieldsFragment = VariantMolecularProfileCardFields_FactorVariant_Fragment | VariantMolecularProfileCardFields_FusionVariant_Fragment | VariantMolecularProfileCardFields_GeneVariant_Fragment | VariantMolecularProfileCardFields_Variant_Fragment; export type OrganizationDetailQueryVariables = Exact<{ organizationId: Scalars['Int']; @@ -8643,22 +8844,22 @@ export type UserNotificationsQueryVariables = Exact<{ }>; -export type UserNotificationsQuery = { __typename: 'Query', notifications: { __typename: 'NotificationConnection', eventTypes: Array, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, notificationSubjects: Array<{ __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined } | undefined }> } }; +export type UserNotificationsQuery = { __typename: 'Query', notifications: { __typename: 'NotificationConnection', eventTypes: Array, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, notificationSubjects: Array<{ __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined } | undefined }> } }; export type NotificationOrganizationFragment = { __typename: 'Organization', id: number, name: string }; export type NotificationOriginatingUsersFragment = { __typename: 'User', id: number, displayName: string }; -export type NotificationFeedSubjectsFragment = { __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }; +export type NotificationFeedSubjectsFragment = { __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }; -export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; +export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; export type UpdateNotificationStatusMutationVariables = Exact<{ input: UpdateNotificationStatusInput; }>; -export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; +export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; export type UnsubscribeMutationVariables = Exact<{ input: UnsubscribeInput; @@ -8706,45 +8907,51 @@ export type VariantDetailQueryVariables = Exact<{ }>; -export type VariantDetailQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'GeneVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; +export type VariantDetailQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'FusionVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'GeneVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; type VariantDetailFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +type VariantDetailFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; + type VariantDetailFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; type VariantDetailFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; -export type VariantDetailFieldsFragment = VariantDetailFields_FactorVariant_Fragment | VariantDetailFields_GeneVariant_Fragment | VariantDetailFields_Variant_Fragment; +export type VariantDetailFieldsFragment = VariantDetailFields_FactorVariant_Fragment | VariantDetailFields_FusionVariant_Fragment | VariantDetailFields_GeneVariant_Fragment | VariantDetailFields_Variant_Fragment; export type CoordinateIdsForVariantQueryVariables = Exact<{ variantId: Scalars['Int']; }>; -export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'GeneVariant', coordinates: { __typename: 'GeneVariantCoordinate', id: number } } | { __typename: 'Variant' } | undefined }; +export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant' } | { __typename: 'GeneVariant', coordinates: { __typename: 'GeneVariantCoordinate', id: number } } | { __typename: 'Variant' } | undefined }; type VariantCoordinateIds_FactorVariant_Fragment = { __typename: 'FactorVariant' }; +type VariantCoordinateIds_FusionVariant_Fragment = { __typename: 'FusionVariant' }; + type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates: { __typename: 'GeneVariantCoordinate', id: number } }; type VariantCoordinateIds_Variant_Fragment = { __typename: 'Variant' }; -export type VariantCoordinateIdsFragment = VariantCoordinateIds_FactorVariant_Fragment | VariantCoordinateIds_GeneVariant_Fragment | VariantCoordinateIds_Variant_Fragment; +export type VariantCoordinateIdsFragment = VariantCoordinateIds_FactorVariant_Fragment | VariantCoordinateIds_FusionVariant_Fragment | VariantCoordinateIds_GeneVariant_Fragment | VariantCoordinateIds_Variant_Fragment; export type VariantSummaryQueryVariables = Exact<{ variantId: Scalars['Int']; }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; +type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; + type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; -export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fragment | VariantSummaryFields_GeneVariant_Fragment | VariantSummaryFields_Variant_Fragment; +export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fragment | VariantSummaryFields_FusionVariant_Fragment | VariantSummaryFields_GeneVariant_Fragment | VariantSummaryFields_Variant_Fragment; export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; @@ -10570,6 +10777,30 @@ export const QuickAddTherapyFieldsFragmentDoc = gql` } } ${TherapySelectTypeaheadFieldsFragmentDoc}`; +export const VariantSelectTypeaheadFieldsFragmentDoc = gql` + fragment VariantSelectTypeaheadFields on VariantInterface { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } +} + `; +export const CreateFusionVariantFieldsFragmentDoc = gql` + fragment CreateFusionVariantFields on CreateFusionVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} + ${VariantSelectTypeaheadFieldsFragmentDoc}`; export const VariantManagerFieldsFragmentDoc = gql` fragment VariantManagerFields on BrowseVariant { id @@ -10593,21 +10824,6 @@ export const VariantManagerFieldsFragmentDoc = gql` } } `; -export const VariantSelectTypeaheadFieldsFragmentDoc = gql` - fragment VariantSelectTypeaheadFields on VariantInterface { - id - name - link - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } -} - `; export const QuickAddVariantFieldsFragmentDoc = gql` fragment QuickAddVariantFields on CreateVariantPayload { clientMutationId @@ -13797,6 +14013,7 @@ export const LinkableFeatureDocument = gql` id name link + featureType } } `; @@ -15256,6 +15473,26 @@ export const TherapySelectTagDocument = gql` export class TherapySelectTagGQL extends Apollo.Query { document = TherapySelectTagDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SelectOrCreateFusionVariantDocument = gql` + mutation SelectOrCreateFusionVariant($organizationId: Int, $featureId: Int!, $coordinates: FusionVariantInput!) { + createFusionVariant( + input: {organizationId: $organizationId, featureId: $featureId, coordinates: $coordinates} + ) { + ...CreateFusionVariantFields + } +} + ${CreateFusionVariantFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class SelectOrCreateFusionVariantGQL extends Apollo.Mutation { + document = SelectOrCreateFusionVariantDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } @@ -15355,6 +15592,9 @@ export const VariantSelectTagDocument = gql` ... on FactorVariant { ...VariantSelectTypeaheadFields } + ... on FusionVariant { + ...VariantSelectTypeaheadFields + } } } ${VariantSelectTypeaheadFieldsFragmentDoc}`; diff --git a/client/src/app/generated/civic.possible-types.ts b/client/src/app/generated/civic.possible-types.ts index 4c452d8b0..a5c948551 100644 --- a/client/src/app/generated/civic.possible-types.ts +++ b/client/src/app/generated/civic.possible-types.ts @@ -39,6 +39,7 @@ "Feature", "Flag", "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -57,6 +58,7 @@ "Feature", "Flag", "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -72,6 +74,7 @@ "Feature", "Flag", "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -96,6 +99,7 @@ "FactorVariant", "Feature", "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -115,6 +119,7 @@ "FactorVariant", "Feature", "Fusion", + "FusionVariant", "Gene", "GeneVariant", "Variant" @@ -126,6 +131,7 @@ ], "VariantInterface": [ "FactorVariant", + "FusionVariant", "GeneVariant", "Variant" ], @@ -136,6 +142,7 @@ "FactorVariant", "Feature", "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 46ec050a3..8dc3fc127 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -1952,6 +1952,55 @@ type CreateFusionFeaturePayload { new: Boolean! } +""" +Autogenerated input type of CreateFusionVariant +""" +input CreateFusionVariantInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + coordinates: FusionVariantInput! + + """ + The CIViC ID of the Feature to which the new variant belongs. + """ + featureId: Int! + + """ + The ID of the organization to credit the user's contributions to. + If the user belongs to a single organization or no organizations, this field is not required. + This field is required if the user belongs to more than one organization. + The user must belong to the organization provided. + """ + organizationId: Int +} + +""" +Autogenerated return type of CreateFusionVariant. +""" +type CreateFusionVariantPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The newly created molecular profile for the new variant. + """ + molecularProfile: MolecularProfile! + + """ + True if the variant was newly created. False if the returned variant was already in the database. + """ + new: Boolean! + + """ + The newly created Variant. + """ + variant: VariantInterface! +} + """ Autogenerated input type of CreateMolecularProfile """ @@ -3119,6 +3168,7 @@ type Factor implements Commentable & EventOriginObject & EventSubject & Flaggabl ): EventConnection! featureAliases: [String!]! featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! flagged: Boolean! """ @@ -3639,6 +3689,7 @@ type Feature implements Commentable & EventOriginObject & EventSubject & Flaggab ): EventConnection! featureAliases: [String!]! featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! flagged: Boolean! """ @@ -3832,6 +3883,19 @@ type FieldValidationError { fieldName: String! } +type FivePrimeFusionVariantCoordinate { + chromosome: String + endExon: Int + ensemblVersion: Int + exonBoundary: Int + exonOffset: Int + id: Int! + referenceBuild: ReferenceBuild + representativeTranscript: String + start: Int + stop: Int +} + type Flag implements Commentable & EventOriginObject & EventSubject { """ List and filter comments. @@ -4225,6 +4289,7 @@ type Fusion implements Commentable & EventOriginObject & EventSubject & Flaggabl ): EventConnection! featureAliases: [String!]! featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! fivePrimeGene: Gene fivePrimePartnerStatus: FusionPartnerStatus! flagged: Boolean! @@ -4365,6 +4430,11 @@ type Fusion implements Commentable & EventOriginObject & EventSubject & Flaggabl ): VariantConnection! } +enum FusionOffsetDirection { + NEGATIVE + POSITIVE +} + """ The fusion partner's status and gene ID (if applicable) """ @@ -4386,6 +4456,248 @@ enum FusionPartnerStatus { UNKNOWN } +type FusionVariant implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions { + clinvarIds: [String!]! + + """ + List and filter comments. + """ + comments( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to comments that mention a certain entity + """ + mentionedEntity: TaggableEntityInput + + """ + Limit to comments that mention a certain user role + """ + mentionedRole: UserRole + + """ + Limit to comments that mention a certain user + """ + mentionedUserId: Int + + """ + Limit to comments by a certain user + """ + originatingUserId: Int + + """ + Sort order for the comments. Defaults to most recent. + """ + sortBy: DateSort + ): CommentConnection! + creationActivity: CreateVariantActivity + deprecated: Boolean! + deprecationActivity: DeprecateVariantActivity + deprecationReason: VariantDeprecationReason + + """ + List and filter events for an object + """ + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + eventType: EventAction + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + organizationId: Int + originatingUserId: Int + + """ + Sort order for the events. Defaults to most recent. + """ + sortBy: DateSort + ): EventConnection! + feature: Feature! + fivePrimeCoordinates: FivePrimeFusionVariantCoordinate + flagged: Boolean! + + """ + List and filter flags. + """ + flags( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Limit to flags added by a certain user + """ + flaggingUserId: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to flags resolved by a certain user + """ + resolvingUserId: Int + + """ + Sort order for the flags. Defaults to most recent. + """ + sortBy: DateSort + + """ + Limit to flags in a particular state + """ + state: FlagState + ): FlagConnection! + hgvsDescriptions: [String!]! + id: Int! + lastAcceptedRevisionEvent: Event + lastCommentEvent: Event + lastSubmittedRevisionEvent: Event + link: String! + molecularProfiles( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): MolecularProfileConnection! + name: String! + + """ + List and filter revisions. + """ + revisions( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Limit to revisions on a particular field. + """ + fieldName: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to revisions by a certain user + """ + originatingUserId: Int + + """ + Limit to revisions suggested as part of a single Revision Set. + """ + revisionSetId: Int + + """ + Sort order for the comments. Defaults to most recent. + """ + sortBy: DateSort + + """ + Limit to revisions with a certain status + """ + status: RevisionStatus + ): RevisionConnection! + singleVariantMolecularProfile: MolecularProfile! + singleVariantMolecularProfileId: Int! + threePrimeCoordinates: ThreePrimeFusionVariantCoordinate + variantAliases: [String!]! + variantTypes: [VariantType!]! +} + +""" +The fields required to create a fusion variant +""" +input FusionVariantInput { + ensemblVersion: Int! + fivePrimeExonEnd: Int + fivePrimeOffset: Int + fivePrimeOffsetDirection: FusionOffsetDirection + fivePrimeTranscript: String! + + """ + The reference build for the genomic coordinates of this Variant. + """ + referenceBuild: ReferenceBuild + threePrimeExonStart: Int + threePrimeOffset: Int + threePrimeOffsetDirection: FusionOffsetDirection + threePrimeTranscript: String! +} + """ The Feature that a Variant can belong to """ @@ -4480,6 +4792,7 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable ): EventConnection! featureAliases: [String!]! featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! flagged: Boolean! """ @@ -5982,6 +6295,16 @@ type Mutation { input: CreateFusionFeatureInput! ): CreateFusionFeaturePayload + """ + Create a new Fusion Variant in the database. + """ + createFusionVariant( + """ + Parameters for CreateFusionVariant + """ + input: CreateFusionVariantInput! + ): CreateFusionVariantPayload + """ Create a new Molecular Profile in order to attach Evidence Items to it. """ @@ -9575,7 +9898,7 @@ type SuggestFactorRevisionPayload { clientMutationId: String """ - The Gene the user has proposed a Revision to. + The Factor the user has proposed a Revision to. """ factor: Factor! @@ -10033,6 +10356,19 @@ enum TherapySortColumns { NCIT_ID } +type ThreePrimeFusionVariantCoordinate { + chromosome: String + ensemblVersion: Int + exonBoundary: Int + exonOffset: Int + id: Int! + referenceBuild: ReferenceBuild + representativeTranscript: String + start: Int + startExon: Int + stop: Int +} + type TimePointCounts { allTime: Int! newThisMonth: Int! @@ -10698,6 +11034,7 @@ type VariantAlias { enum VariantCategories { FACTOR + FUSION GENE } diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index dfca9b4ff..b1828bb13 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -8939,6 +8939,16 @@ "name": "Fusion", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -9915,8 +9925,8 @@ }, { "kind": "INPUT_OBJECT", - "name": "CreateMolecularProfileInput", - "description": "Autogenerated input type of CreateMolecularProfile", + "name": "CreateFusionVariantInput", + "description": "Autogenerated input type of CreateFusionVariant", "fields": null, "inputFields": [ { @@ -9944,289 +9954,427 @@ "deprecationReason": null }, { - "name": "structure", - "description": "Representation of the constituent parts of the Molecular Profile along with the logic used to combine them.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "MolecularProfileComponentInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CreateMolecularProfilePayload", - "description": "Autogenerated return type of CreateMolecularProfile.", - "fields": [ - { - "name": "clientMutationId", - "description": "A unique identifier for the client performing the mutation.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "molecularProfile", - "description": "The newly created (or already existing) Molecular Profile.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MolecularProfile", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CreateVariantActivity", - "description": null, - "fields": [ - { - "name": "createdAt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ISO8601DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "events", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Event", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "molecularProfile", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MolecularProfile", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "note", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "organization", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Organization", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "parsedNote", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "CommentBodySegment", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "subject", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INTERFACE", - "name": "EventSubject", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "User", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "verbiage", + "name": "coordinates", "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "ActivityInterface", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CreateVariantInput", - "description": "Autogenerated input type of CreateVariant", - "fields": null, - "inputFields": [ - { - "name": "clientMutationId", - "description": "A unique identifier for the client performing the mutation.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "organizationId", - "description": "The ID of the organization to credit the user's contributions to.\nIf the user belongs to a single organization or no organizations, this field is not required.\nThis field is required if the user belongs to more than one organization.\nThe user must belong to the organization provided.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": "The name of the variant to create.", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "String", + "kind": "INPUT_OBJECT", + "name": "FusionVariantInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "featureId", + "description": "The CIViC ID of the Feature to which the new variant belongs.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CreateFusionVariantPayload", + "description": "Autogenerated return type of CreateFusionVariant.", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "molecularProfile", + "description": "The newly created molecular profile for the new variant.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MolecularProfile", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "new", + "description": "True if the variant was newly created. False if the returned variant was already in the database.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variant", + "description": "The newly created Variant.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "VariantInterface", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CreateMolecularProfileInput", + "description": "Autogenerated input type of CreateMolecularProfile", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": "The ID of the organization to credit the user's contributions to.\nIf the user belongs to a single organization or no organizations, this field is not required.\nThis field is required if the user belongs to more than one organization.\nThe user must belong to the organization provided.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "structure", + "description": "Representation of the constituent parts of the Molecular Profile along with the logic used to combine them.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "MolecularProfileComponentInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CreateMolecularProfilePayload", + "description": "Autogenerated return type of CreateMolecularProfile.", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "molecularProfile", + "description": "The newly created (or already existing) Molecular Profile.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MolecularProfile", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "CreateVariantActivity", + "description": null, + "fields": [ + { + "name": "createdAt", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ISO8601DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "events", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "molecularProfile", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MolecularProfile", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "note", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organization", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Organization", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "parsedNote", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "UNION", + "name": "CommentBodySegment", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "subject", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "EventSubject", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "user", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "verbiage", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "ActivityInterface", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "CreateVariantInput", + "description": "Autogenerated input type of CreateVariant", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": "The ID of the organization to credit the user's contributions to.\nIf the user belongs to a single organization or no organizations, this field is not required.\nThis field is required if the user belongs to more than one organization.\nThe user must belong to the organization provided.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": "The name of the variant to create.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -12858,6 +13006,16 @@ "name": "Fusion", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -13111,6 +13269,16 @@ "name": "Fusion", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -15525,6 +15693,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "featureType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FeatureInstanceTypes", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "flagged", "description": null, @@ -17517,6 +17701,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "featureType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FeatureInstanceTypes", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "flagged", "description": null, @@ -18279,291 +18479,426 @@ }, { "kind": "OBJECT", - "name": "Flag", + "name": "FivePrimeFusionVariantCoordinate", "description": null, "fields": [ { - "name": "comments", - "description": "List and filter comments.", - "args": [ - { - "name": "originatingUserId", - "description": "Limit to comments by a certain user", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort order for the comments. Defaults to most recent.", - "type": { - "kind": "INPUT_OBJECT", - "name": "DateSort", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mentionedUserId", - "description": "Limit to comments that mention a certain user", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mentionedRole", - "description": "Limit to comments that mention a certain user role", - "type": { - "kind": "ENUM", - "name": "UserRole", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mentionedEntity", - "description": "Limit to comments that mention a certain entity", - "type": { - "kind": "INPUT_OBJECT", - "name": "TaggableEntityInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Returns the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Returns the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Returns the first _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Returns the last _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], + "name": "chromosome", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CommentConnection", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "createdAt", + "name": "endExon", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ISO8601DateTime", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "events", - "description": "List and filter events for an object", - "args": [ - { - "name": "eventType", - "description": null, - "type": { - "kind": "ENUM", - "name": "EventAction", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "originatingUserId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "organizationId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sortBy", - "description": "Sort order for the events. Defaults to most recent.", - "type": { - "kind": "INPUT_OBJECT", - "name": "DateSort", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Returns the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Returns the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Returns the first _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Returns the last _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], + "name": "ensemblVersion", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "EventConnection", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "flaggable", + "name": "exonBoundary", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INTERFACE", - "name": "Flaggable", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "flaggingUser", + "name": "exonOffset", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "User", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "representativeTranscript", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Flag", + "description": null, + "fields": [ + { + "name": "comments", + "description": "List and filter comments.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to comments by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedUserId", + "description": "Limit to comments that mention a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedRole", + "description": "Limit to comments that mention a certain user role", + "type": { + "kind": "ENUM", + "name": "UserRole", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedEntity", + "description": "Limit to comments that mention a certain entity", + "type": { + "kind": "INPUT_OBJECT", + "name": "TaggableEntityInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CommentConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ISO8601DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "events", + "description": "List and filter events for an object", + "args": [ + { + "name": "eventType", + "description": null, + "type": { + "kind": "ENUM", + "name": "EventAction", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "originatingUserId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the events. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "flaggable", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "Flaggable", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "flaggingUser", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -19445,6 +19780,16 @@ "name": "Fusion", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -19890,39 +20235,1025 @@ "deprecationReason": null }, { - "name": "featureAliases", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "featureInstance", + "name": "featureAliases", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "featureInstance", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "UNION", + "name": "FeatureInstance", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "featureType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FeatureInstanceTypes", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeGene", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Gene", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimePartnerStatus", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FusionPartnerStatus", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "flagged", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "flags", + "description": "List and filter flags.", + "args": [ + { + "name": "flaggingUserId", + "description": "Limit to flags added by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "resolvingUserId", + "description": "Limit to flags resolved by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "state", + "description": "Limit to flags in a particular state", + "type": { + "kind": "ENUM", + "name": "FlagState", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the flags. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "FlagConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fullName", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastAcceptedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastCommentEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastSubmittedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "link", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "revisions", + "description": "List and filter revisions.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to revisions by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "Limit to revisions with a certain status", + "type": { + "kind": "ENUM", + "name": "RevisionStatus", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fieldName", + "description": "Limit to revisions on a particular field.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "revisionSetId", + "description": "Limit to revisions suggested as part of a single Revision Set.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RevisionConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sources", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Source", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeGene", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Gene", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimePartnerStatus", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FusionPartnerStatus", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variants", + "description": "List and filter variants.", + "args": [ + { + "name": "name", + "description": "Left anchored filtering for variant name and aliases.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "VariantConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Commentable", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "EventOriginObject", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "EventSubject", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "Flaggable", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "MolecularProfileComponent", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "WithRevisions", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "FusionOffsetDirection", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "POSITIVE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NEGATIVE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "FusionPartnerInput", + "description": "The fusion partner's status and gene ID (if applicable)", + "fields": null, + "inputFields": [ + { + "name": "partnerStatus", + "description": "The status of the fusion partner", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FusionPartnerStatus", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "geneId", + "description": "The CIViC gene ID of the partner, if known", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "FusionPartnerStatus", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "KNOWN", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "UNKNOWN", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "MULTIPLE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "description": null, + "fields": [ + { + "name": "clinvarIds", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "comments", + "description": "List and filter comments.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to comments by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedUserId", + "description": "Limit to comments that mention a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedRole", + "description": "Limit to comments that mention a certain user role", + "type": { + "kind": "ENUM", + "name": "UserRole", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "mentionedEntity", + "description": "Limit to comments that mention a certain entity", + "type": { + "kind": "INPUT_OBJECT", + "name": "TaggableEntityInput", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CommentConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "creationActivity", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "CreateVariantActivity", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecated", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationActivity", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "DeprecateVariantActivity", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecationReason", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "VariantDeprecationReason", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "events", + "description": "List and filter events for an object", + "args": [ + { + "name": "eventType", + "description": null, + "type": { + "kind": "ENUM", + "name": "EventAction", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "originatingUserId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the events. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "feature", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "UNION", - "name": "FeatureInstance", + "kind": "OBJECT", + "name": "Feature", "ofType": null } }, @@ -19930,33 +21261,17 @@ "deprecationReason": null }, { - "name": "fivePrimeGene", + "name": "fivePrimeCoordinates", "description": null, "args": [], "type": { "kind": "OBJECT", - "name": "Gene", + "name": "FivePrimeFusionVariantCoordinate", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, - { - "name": "fivePrimePartnerStatus", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "FusionPartnerStatus", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "flagged", "description": null, @@ -20087,13 +21402,25 @@ "deprecationReason": null }, { - "name": "fullName", + "name": "hgvsDescriptions", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } }, "isDeprecated": false, "deprecationReason": null @@ -20166,6 +21493,71 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "molecularProfiles", + "description": null, + "args": [ + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MolecularProfileConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "name", "description": null, @@ -20308,129 +21700,92 @@ "deprecationReason": null }, { - "name": "sources", + "name": "singleVariantMolecularProfile", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Source", - "ofType": null - } - } + "kind": "OBJECT", + "name": "MolecularProfile", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "threePrimeGene", + "name": "singleVariantMolecularProfileId", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeCoordinates", "description": null, "args": [], "type": { "kind": "OBJECT", - "name": "Gene", + "name": "ThreePrimeFusionVariantCoordinate", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "threePrimePartnerStatus", + "name": "variantAliases", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "ENUM", - "name": "FusionPartnerStatus", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "variants", - "description": "List and filter variants.", - "args": [ - { - "name": "name", - "description": "Left anchored filtering for variant name and aliases.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "after", - "description": "Returns the elements in the list that come after the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": "Returns the elements in the list that come before the specified cursor.", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": "Returns the first _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": "Returns the last _n_ elements from the list.", - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], + "name": "variantTypes", + "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "VariantConnection", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "VariantType", + "ofType": null + } + } } }, "isDeprecated": false, @@ -20464,6 +21819,11 @@ "name": "MolecularProfileComponent", "ofType": null }, + { + "kind": "INTERFACE", + "name": "VariantInterface", + "ofType": null + }, { "kind": "INTERFACE", "name": "WithRevisions", @@ -20475,19 +21835,19 @@ }, { "kind": "INPUT_OBJECT", - "name": "FusionPartnerInput", - "description": "The fusion partner's status and gene ID (if applicable)", + "name": "FusionVariantInput", + "description": "The fields required to create a fusion variant", "fields": null, "inputFields": [ { - "name": "partnerStatus", - "description": "The status of the fusion partner", + "name": "fivePrimeTranscript", + "description": null, "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "ENUM", - "name": "FusionPartnerStatus", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -20496,8 +21856,8 @@ "deprecationReason": null }, { - "name": "geneId", - "description": "The CIViC gene ID of the partner, if known", + "name": "fivePrimeExonEnd", + "description": null, "type": { "kind": "SCALAR", "name": "Int", @@ -20506,39 +21866,114 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "FusionPartnerStatus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + }, { - "name": "KNOWN", + "name": "fivePrimeOffset", "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "UNKNOWN", + "name": "fivePrimeOffsetDirection", "description": null, + "type": { + "kind": "ENUM", + "name": "FusionOffsetDirection", + "ofType": null + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "MULTIPLE", + "name": "threePrimeTranscript", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeExonStart", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeOffset", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeOffsetDirection", + "description": null, + "type": { + "kind": "ENUM", + "name": "FusionOffsetDirection", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": "The reference build for the genomic coordinates of this Variant.", + "type": { + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ensemblVersion", "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null } ], + "interfaces": null, + "enumValues": null, "possibleTypes": null }, { @@ -20904,6 +22339,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "featureType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FeatureInstanceTypes", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "flagged", "description": null, @@ -26804,6 +28255,16 @@ "name": "Fusion", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -27624,6 +29085,35 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "createFusionVariant", + "description": "Create a new Fusion Variant in the database.", + "args": [ + { + "name": "input", + "description": "Parameters for CreateFusionVariant", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "CreateFusionVariantInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "CreateFusionVariantPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "createMolecularProfile", "description": "Create a new Molecular Profile in order to attach Evidence Items to it.", @@ -43740,7 +45230,7 @@ }, { "name": "factor", - "description": "The Gene the user has proposed a Revision to.", + "description": "The Factor the user has proposed a Revision to.", "args": [], "type": { "kind": "NON_NULL", @@ -45253,26 +46743,271 @@ }, { "kind": "ENUM", - "name": "TherapyInteraction", + "name": "TherapyInteraction", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "COMBINATION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SEQUENTIAL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "SUBSTITUTES", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "TherapyPopover", + "description": null, + "fields": [ + { + "name": "assertionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "evidenceItemCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "link", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "molecularProfileCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "myChemInfo", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "MyChemInfo", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ncitId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "therapyAliases", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "therapyUrl", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "TherapySort", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "column", + "description": "Available columns for sorting", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "TherapySortColumns", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "direction", + "description": "Sort direction", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SortDirection", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "TherapySortColumns", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { - "name": "COMBINATION", + "name": "NAME", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "SEQUENTIAL", + "name": "NCIT_ID", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "SUBSTITUTES", + "name": "EVIDENCE_ITEM_COUNT", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ASSERTION_COUNT", "description": null, "isDeprecated": false, "deprecationReason": null @@ -45282,75 +47017,59 @@ }, { "kind": "OBJECT", - "name": "TherapyPopover", + "name": "ThreePrimeFusionVariantCoordinate", "description": null, "fields": [ { - "name": "assertionCount", + "name": "chromosome", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "evidenceItemCount", + "name": "ensemblVersion", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "id", + "name": "exonBoundary", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "link", + "name": "exonOffset", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "molecularProfileCount", + "name": "id", "description": null, "args": [], "type": { @@ -45366,76 +47085,60 @@ "deprecationReason": null }, { - "name": "myChemInfo", + "name": "referenceBuild", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "MyChemInfo", + "kind": "ENUM", + "name": "ReferenceBuild", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", + "name": "representativeTranscript", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "ncitId", + "name": "start", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "therapyAliases", + "name": "startExon", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "therapyUrl", + "name": "stop", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "isDeprecated": false, @@ -45447,84 +47150,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "INPUT_OBJECT", - "name": "TherapySort", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "column", - "description": "Available columns for sorting", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "TherapySortColumns", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "direction", - "description": "Sort direction", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "SortDirection", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "TherapySortColumns", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "NAME", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NCIT_ID", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "EVIDENCE_ITEM_COUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ASSERTION_COUNT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, { "kind": "OBJECT", "name": "TimePointCounts", @@ -48351,6 +49976,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "FUSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -50460,6 +52091,11 @@ "name": "FactorVariant", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "GeneVariant", @@ -51303,6 +52939,16 @@ "name": "Fusion", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", diff --git a/server/app/graphql/loaders/molecular_profile_segments_loader.rb b/server/app/graphql/loaders/molecular_profile_segments_loader.rb index 991da5f5f..b36f85ffd 100644 --- a/server/app/graphql/loaders/molecular_profile_segments_loader.rb +++ b/server/app/graphql/loaders/molecular_profile_segments_loader.rb @@ -24,7 +24,7 @@ def perform(ids) Variant.where(id: resolved_variants.keys) .each { |v| resolved_variants[v.id] = v } - Feature.where(id: resolved_variants.map{|id, v| v.feature_id}) + Feature.includes(:feature_instance).where(id: resolved_variants.map{|id, v| v.feature_id}) .each { |f| resolved_features[f.id] = f } ids.each do |id| diff --git a/server/app/graphql/mutations/create_fusion_feature.rb b/server/app/graphql/mutations/create_fusion_feature.rb index 90c3161b6..021e5bdff 100644 --- a/server/app/graphql/mutations/create_fusion_feature.rb +++ b/server/app/graphql/mutations/create_fusion_feature.rb @@ -55,7 +55,7 @@ def authorized?(organization_id: nil, **kwargs) def resolve(five_prime_gene:, three_prime_gene:, organization_id: nil) - existing_feature = Features::Fusion + existing_feature_instance = Features::Fusion .find_by( five_prime_gene_id: five_prime_gene.gene_id, three_prime_gene_id: three_prime_gene.gene_id, @@ -63,9 +63,9 @@ def resolve(five_prime_gene:, three_prime_gene:, organization_id: nil) three_prime_partner_status: three_prime_gene.partner_status, ) - if existing_feature.present? + if existing_feature_instance.present? return { - feature: existing_feature, + feature: existing_feature_instance.feature, new: false, } diff --git a/server/app/graphql/mutations/create_fusion_variant.rb b/server/app/graphql/mutations/create_fusion_variant.rb new file mode 100644 index 000000000..54d472330 --- /dev/null +++ b/server/app/graphql/mutations/create_fusion_variant.rb @@ -0,0 +1,88 @@ +class Mutations::CreateFusionVariant < Mutations::MutationWithOrg + description 'Create a new Fusion Variant in the database.' + + argument :coordinates, Types::Fusion::FusionVariantInputType, required: true + + argument :feature_id, Int, required: true, + description: 'The CIViC ID of the Feature to which the new variant belongs.' + + field :variant, Types::Interfaces::VariantInterface, null: false, + description: 'The newly created Variant.' + + field :molecular_profile, Types::Entities::MolecularProfileType, null: false, + description: "The newly created molecular profile for the new variant." + + field :new, Boolean, null: false, + description: 'True if the variant was newly created. False if the returned variant was already in the database.' + + def ready?(feature_id:, coordinates:, organization_id: nil, **kwargs) + validate_user_logged_in + validate_user_org(organization_id) + + if Feature.find_by(id: feature_id).blank? + raise GraphQL::ExecutionError, "Feature with id #{feature_id} doesn't exist." + end + + coordinates.each do |_, variant_coords| + if !variant_coords.valid? + errs = variant_coords.errors + #no variant is present yet, ignore this for now + errs.delete(:variant) + if errs.any? + raise GraphQL::ExecutionError, "#{variant_coords.coordinate_type} is invalid: #{variant_coords.errors.full_messages.join("\n")}." + end + end + end + + return true + end + + def authorized?(organization_id: nil, **kwargs) + validate_user_acting_as_org(user: context[:current_user], organization_id: organization_id) + return true + end + + def resolve(coordinates:, feature_id:, organization_id: nil) + stubbed_variant = Variants::FusionVariant.new( + feature_id: feature_id, + five_prime_coordinates: coordinates[:five_prime_coords], + three_prime_coordinates: coordinates[:three_prime_coords] + ) + + vicc_name = stubbed_variant.generate_vicc_name + civic_name = stubbed_variant.generate_name + + existing_variant = Variants::FusionVariant.find_by(vicc_compliant_name: vicc_name) + + if existing_variant.present? + return { + variant: existing_variant, + new: false, + molecular_profile: existing_variant.single_variant_molecular_profile + } + + else + cmd = Activities::CreateFusionVariant.new( + three_prime_coords: coordinates[:three_prime_coords], + five_prime_coords: coordinates[:five_prime_coords], + feature_id: feature_id, + originating_user: context[:current_user], + organization_id: organization_id, + civic_name: civic_name, + vicc_name: vicc_name + ) + + res = cmd.perform + + if res.succeeded? + return { + variant: res.variant, + new: true, + molecular_profile: res.molecular_profile + } + else + raise GraphQL::ExecutionError, res.errors.join(', ') + end + end + end +end diff --git a/server/app/graphql/mutations/suggest_factor_revision.rb b/server/app/graphql/mutations/suggest_factor_revision.rb index 4bbb89749..4dfd77b31 100644 --- a/server/app/graphql/mutations/suggest_factor_revision.rb +++ b/server/app/graphql/mutations/suggest_factor_revision.rb @@ -15,7 +15,7 @@ class Mutations::SuggestFactorRevision < Mutations::MutationWithOrg description: 'Text describing the reason for the change. Will be attached to the Revision as a comment.' field :factor, Types::Entities::FactorType, null: false, - description: 'The Gene the user has proposed a Revision to.' + description: 'The Factor the user has proposed a Revision to.' field :results, [Types::Revisions::RevisionResult], null: false, description: <<~DOC.strip diff --git a/server/app/graphql/types/entities/feature_type.rb b/server/app/graphql/types/entities/feature_type.rb index 014457b60..c6764c26a 100644 --- a/server/app/graphql/types/entities/feature_type.rb +++ b/server/app/graphql/types/entities/feature_type.rb @@ -18,15 +18,12 @@ class FeatureType < Types::BaseObject field :variants, resolver: Resolvers::Variants field :link, String, null: false field :feature_instance, Types::FeatureInstanceType, null: false + field :feature_type, Types::FeatureInstanceTypes, null: false field :deprecation_activity, Types::Activities::DeprecateFeatureActivityType, null: true field :deprecated, Boolean, null: false field :deprecation_reason, Types::FeatureDeprecationReasonType, null: true field :creation_activity, Types::Activities::CreateFeatureActivityType, null: true - def id - object.id - end - def feature_aliases if object.class.name == 'Feature' to_load = object @@ -58,5 +55,9 @@ def link def feature_instance object.feature_instance end + + def feature_type + object.feature_instance_type + end end end diff --git a/server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb b/server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb new file mode 100644 index 000000000..8516c0a16 --- /dev/null +++ b/server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb @@ -0,0 +1,9 @@ +module Types::Entities + class FivePrimeFusionVariantCoordinateType < Types::Entities::FusionVariantCoordinateType + field :end_exon, Int, null: true + + def end_exon + object.exon_boundary + end + end +end diff --git a/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb b/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb new file mode 100644 index 000000000..06015352c --- /dev/null +++ b/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb @@ -0,0 +1,13 @@ +module Types::Entities + class FusionVariantCoordinateType < Types::BaseObject + field :id, Int, null: false + field :representative_transcript, String, null: true + field :reference_build, Types::ReferenceBuildType, null: true + field :ensembl_version, Int, null: true + field :exon_offset, Int, null: true + field :exon_boundary, Int, null: true + field :chromosome, String, null: true + field :start, Int, null: true + field :stop, Int, null: true + end +end diff --git a/server/app/graphql/types/entities/molecular_profile_type.rb b/server/app/graphql/types/entities/molecular_profile_type.rb index e702713b1..b1d479225 100644 --- a/server/app/graphql/types/entities/molecular_profile_type.rb +++ b/server/app/graphql/types/entities/molecular_profile_type.rb @@ -45,7 +45,9 @@ def molecular_profile_score def name Loaders::MolecularProfileSegmentsLoader.for(MolecularProfile).load(object.id).then do |segments| - segments.map { |s| s.respond_to?(:name) ? s.name : s }.join(' ') + segments.map { |s| s.respond_to?(:mp_name) ? s.mp_name : s } + .compact + .join(' ') end end diff --git a/server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb b/server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb new file mode 100644 index 000000000..1278ba0d3 --- /dev/null +++ b/server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb @@ -0,0 +1,9 @@ +module Types::Entities + class ThreePrimeFusionVariantCoordinateType < Types::Entities::FusionVariantCoordinateType + field :start_exon, Int, null: true + + def start_exon + object.exon_boundary + end + end +end diff --git a/server/app/graphql/types/fusion/fusion_offset_direction.rb b/server/app/graphql/types/fusion/fusion_offset_direction.rb new file mode 100644 index 000000000..5fcc61a93 --- /dev/null +++ b/server/app/graphql/types/fusion/fusion_offset_direction.rb @@ -0,0 +1,6 @@ +module Types::Fusion + class FusionOffsetDirection < Types::BaseEnum + value 'POSITIVE', value: 'positive' + value 'NEGATIVE', value: 'negative' + end +end diff --git a/server/app/graphql/types/fusion/fusion_variant_input_type.rb b/server/app/graphql/types/fusion/fusion_variant_input_type.rb new file mode 100644 index 000000000..6c04fdc56 --- /dev/null +++ b/server/app/graphql/types/fusion/fusion_variant_input_type.rb @@ -0,0 +1,44 @@ +module Types::Fusion + class FusionVariantInputType < Types::BaseInputObject + description 'The fields required to create a fusion variant' + + argument :five_prime_transcript, String, required: true + argument :five_prime_exon_end, Int, required: false + argument :five_prime_offset, Int, required: false + argument :five_prime_offset_direction, Types::Fusion::FusionOffsetDirection, required: false + + argument :three_prime_transcript, String, required: true + argument :three_prime_exon_start, Int, required: false + argument :three_prime_offset, Int, required: false + argument :three_prime_offset_direction, Types::Fusion::FusionOffsetDirection, required: false + + argument :reference_build, Types::ReferenceBuildType, required: false, + description: 'The reference build for the genomic coordinates of this Variant.' + + argument :ensembl_version, Int, required: true + + def prepare + { + five_prime_coords: VariantCoordinate.new( + coordinate_type: 'Five Prime Fusion Coordinate', + reference_build: reference_build, + ensembl_version: ensembl_version, + representative_transcript: five_prime_transcript, + exon_boundary: five_prime_exon_end, + exon_offset: five_prime_offset, + exon_offset_direction: five_prime_offset_direction, + + ), + three_prime_coords: VariantCoordinate.new( + coordinate_type: 'Three Prime Fusion Coordinate', + reference_build: reference_build, + ensembl_version: ensembl_version, + representative_transcript: three_prime_transcript, + exon_boundary: three_prime_exon_start, + exon_offset: three_prime_offset, + exon_offset_direction: three_prime_offset_direction, + ) + } + end + end +end diff --git a/server/app/graphql/types/interfaces/commentable.rb b/server/app/graphql/types/interfaces/commentable.rb index 3c498d4d8..b88066321 100644 --- a/server/app/graphql/types/interfaces/commentable.rb +++ b/server/app/graphql/types/interfaces/commentable.rb @@ -27,6 +27,8 @@ def resolve_type(object, context) Types::Variants::GeneVariantType when Variants::FactorVariant Types::Variants::FactorVariantType + when Variants::FusionVariant + Types::Variants::FusionVariantType when VariantGroup Types::Entities::VariantGroupType when Source diff --git a/server/app/graphql/types/interfaces/event_origin_object.rb b/server/app/graphql/types/interfaces/event_origin_object.rb index 692f4ddf2..bdc7097df 100644 --- a/server/app/graphql/types/interfaces/event_origin_object.rb +++ b/server/app/graphql/types/interfaces/event_origin_object.rb @@ -40,6 +40,8 @@ def resolve_type(object, context) Types::Variants::GeneVariantType when Variants::FactorVariant Types::Variants::FactorVariantType + when Variants::FusionVariant + Types::Variants::FusionVariantType when MolecularProfile Types::Entities::MolecularProfileType when Feature diff --git a/server/app/graphql/types/interfaces/event_subject.rb b/server/app/graphql/types/interfaces/event_subject.rb index 14aa8c164..9e0e11406 100644 --- a/server/app/graphql/types/interfaces/event_subject.rb +++ b/server/app/graphql/types/interfaces/event_subject.rb @@ -19,6 +19,8 @@ def resolve_type(object, context) Types::Variants::GeneVariantType when Variants::FactorVariant Types::Variants::FactorVariantType + when Variants::FusionVariant + Types::Variants::FusionVariantType when VariantCoordinate Types::Entities::GeneVariantCoordinateType when EvidenceItem diff --git a/server/app/graphql/types/interfaces/flaggable.rb b/server/app/graphql/types/interfaces/flaggable.rb index 6eaa79392..b4f7a8152 100644 --- a/server/app/graphql/types/interfaces/flaggable.rb +++ b/server/app/graphql/types/interfaces/flaggable.rb @@ -20,6 +20,8 @@ def resolve_type(object, context) Types::Variants::GeneVariantType when Variants::FactorVariant Types::Variants::FactorVariantType + when Variants::FusionVariant + Types::Variants::FusionVariantType when EvidenceItem Types::Entities::EvidenceItemType when Assertion diff --git a/server/app/graphql/types/interfaces/variant_interface.rb b/server/app/graphql/types/interfaces/variant_interface.rb index 678d04bef..064945c32 100644 --- a/server/app/graphql/types/interfaces/variant_interface.rb +++ b/server/app/graphql/types/interfaces/variant_interface.rb @@ -3,6 +3,9 @@ module VariantInterface include Types::BaseInterface connection_type_class Types::Connections::VariantsConnection + #TODO: Remove Me + orphan_types Types::Variants::FusionVariantType + implements Types::Interfaces::Commentable implements Types::Interfaces::Flaggable implements Types::Interfaces::WithRevisions @@ -54,11 +57,6 @@ def variant_aliases end end - #orphan_types( - #Types::Variants::FactorVariantType, - #Types::Variants::GeneVariantType, - #) - definition_methods do def resolve_type(object, context) case object @@ -66,6 +64,8 @@ def resolve_type(object, context) Types::Variants::GeneVariantType when Variants::FactorVariant Types::Variants::FactorVariantType + when Variants::FusionVariant + Types::Variants::FusionVariantType else raise "Unexpected Variant type #{object.class}" end diff --git a/server/app/graphql/types/mutation_type.rb b/server/app/graphql/types/mutation_type.rb index 87c9fb851..4ebcfd8b3 100644 --- a/server/app/graphql/types/mutation_type.rb +++ b/server/app/graphql/types/mutation_type.rb @@ -58,5 +58,6 @@ class MutationType < Types::BaseObject field :create_variant, mutation: Mutations::CreateVariant field :create_feature, mutation: Mutations::CreateFeature field :create_fusion_feature, mutation: Mutations::CreateFusionFeature + field :create_fusion_variant, mutation: Mutations::CreateFusionVariant end end diff --git a/server/app/graphql/types/variant_categories.rb b/server/app/graphql/types/variant_categories.rb index d0da9378f..761cc5568 100644 --- a/server/app/graphql/types/variant_categories.rb +++ b/server/app/graphql/types/variant_categories.rb @@ -2,5 +2,6 @@ module Types class VariantCategories < Types::BaseEnum value 'GENE', value: 'Variants::GeneVariant' value 'FACTOR', value: 'Variants::FactorVariant' + value 'FUSION', value: 'Variants::FusionVariant' end end diff --git a/server/app/graphql/types/variants/fusion_variant_type.rb b/server/app/graphql/types/variants/fusion_variant_type.rb new file mode 100644 index 000000000..47fe8c3dc --- /dev/null +++ b/server/app/graphql/types/variants/fusion_variant_type.rb @@ -0,0 +1,29 @@ +module Types::Variants + class FusionVariantType < Types::Entities::VariantType + + field :five_prime_coordinates, Types::Entities::FivePrimeFusionVariantCoordinateType, null: true + field :three_prime_coordinates, Types::Entities::ThreePrimeFusionVariantCoordinateType, null: true + field :clinvar_ids, [String], null: false + field :hgvs_descriptions, [String], null: false + + def five_prime_coordinates + Loaders::AssociationLoader.for(Variants::FusionVariant, :five_prime_coordinates).load(object) + end + + def three_prime_coordinates + Loaders::AssociationLoader.for(Variants::FusionVariant, :three_prime_coordinates).load(object) + end + + def clinvar_ids + Loaders::AssociationLoader.for(Variant, :clinvar_entries).load(object).then do |clinvar_entries| + clinvar_entries.map(&:clinvar_id) + end + end + + def hgvs_descriptions + Loaders::AssociationLoader.for(Variant, :hgvs_descriptions).load(object).then do |hgvs| + hgvs.map(&:description) + end + end + end +end diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index 605bba859..b006a5003 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -30,6 +30,32 @@ def construct_fusion_partner_name(gene_id, partner_status) end end + def create_representative_variant + stubbed_variant = Variants::FusionVariant.new( + feature: feature, + name: 'Fusion' + ) + + vicc_compliant_name = stubbed_variant.generate_vicc_name + + cmd = Actions::CreateVariant.new( + variant_name: 'Fusion', + feature_id: feature.id, + originating_user: originating_user, + organization_id: organization_id, + additional_attrs: { vicc_compliant_name: vicc_compliant_name } + ) + cmd.perform + + if cmd.errors.any? + errors.each do |err| + errors << err + end + end + + events << cmd.events + end + private def execute feature.save! @@ -42,8 +68,8 @@ def execute originating_object: feature ) + create_representative_variant events << event - end end end diff --git a/server/app/models/actions/create_variant.rb b/server/app/models/actions/create_variant.rb index 2d4ce4c48..6befc9a54 100644 --- a/server/app/models/actions/create_variant.rb +++ b/server/app/models/actions/create_variant.rb @@ -4,7 +4,7 @@ class CreateVariant attr_reader :variant, :molecular_profile, :originating_user, :organization_id - def initialize(variant_name:, feature_id:, originating_user:, organization_id: nil) + def initialize(variant_name:, feature_id:, originating_user:, organization_id: nil, additional_attrs: {}) variant_type = Feature.find(feature_id).compatible_variant_type #TODO - REMOVE gene_id @@ -12,7 +12,8 @@ def initialize(variant_name:, feature_id:, originating_user:, organization_id: n name: variant_name, feature_id: feature_id, type: variant_type, - gene_id: 999 + gene_id: 999, + **additional_attrs ) @originating_user = originating_user @organization_id = organization_id diff --git a/server/app/models/activities/create_fusion_variant.rb b/server/app/models/activities/create_fusion_variant.rb new file mode 100644 index 000000000..415e6b588 --- /dev/null +++ b/server/app/models/activities/create_fusion_variant.rb @@ -0,0 +1,56 @@ +module Activities + class CreateFusionVariant < Base + attr_reader :variant_name, :three_prime_coords, :five_prime_coords, :feature_id, :variant, :molecular_profile, :vicc_name + + def initialize(originating_user:, organization_id:, three_prime_coords:, five_prime_coords:, civic_name:, vicc_name:, feature_id:) + super(organization_id: organization_id, user: originating_user) + @variant_name = civic_name + @vicc_name = vicc_name + @five_prime_coords = five_prime_coords + @three_prime_coords = three_prime_coords + @feature_id = feature_id + end + + private + def create_activity + @activity = CreateVariantActivity.new( + user: user, + organization: organization, + ) + end + + def call_actions + cmd = Actions::CreateVariant.new( + variant_name: variant_name, + feature_id: feature_id, + originating_user: user, + organization_id: organization&.id, + additional_attrs: { vicc_compliant_name: vicc_name } + ) + + cmd.perform + + if !cmd.succeeded? + raise StandardError.new(cmd.errors.join(', ')) + end + + @variant = cmd.variant + @molecular_profile = cmd.molecular_profile + + variant.five_prime_coordinates = five_prime_coords + variant.three_prime_coordinates = three_prime_coords + variant.save! + + events << cmd.events + end + + def linked_entities + molecular_profile + end + + def after_actions + activity.subject = variant + activity.save! + end + end +end diff --git a/server/app/models/concerns/is_feature_instance.rb b/server/app/models/concerns/is_feature_instance.rb index e2dd03de2..5677f1191 100644 --- a/server/app/models/concerns/is_feature_instance.rb +++ b/server/app/models/concerns/is_feature_instance.rb @@ -6,6 +6,11 @@ module IsFeatureInstance delegate_missing_to :feature + #Name to be used when displayed as part of a Molecular Profile + def mp_name + name + end + #What variant type can be attached to this feature def compatible_variant_type raise StandardError.new("Must implement in FeatureInstance type") diff --git a/server/app/models/feature.rb b/server/app/models/feature.rb index 943af4861..7c4434588 100644 --- a/server/app/models/feature.rb +++ b/server/app/models/feature.rb @@ -36,6 +36,10 @@ def search_data } end + #Name to be used when displayed as part of a Molecular Profile + def mp_name + feature_instance.mp_name + end def link Rails.application.routes.url_helpers.url_for("/features/#{self.id}") diff --git a/server/app/models/features/fusion.rb b/server/app/models/features/fusion.rb index e088e2487..0f3d85371 100644 --- a/server/app/models/features/fusion.rb +++ b/server/app/models/features/fusion.rb @@ -27,6 +27,11 @@ class Fusion < ActiveRecord::Base validate :partner_status_valid_for_gene_ids validate :at_least_one_gene_id + #When displayed as part of an MP, the Variant Name specifies the feature + def mp_name + nil + end + def partner_status_valid_for_gene_ids [self.five_prime_gene, self.three_prime_gene].zip([self.five_prime_partner_status, self.three_prime_partner_status], [:five_prime_gene, :three_prime_gene]).each do |gene, status, fk| if gene.nil? && status == 'known' diff --git a/server/app/models/my_gene_info.rb b/server/app/models/my_gene_info.rb index 0b5f0c57d..7f983cf44 100644 --- a/server/app/models/my_gene_info.rb +++ b/server/app/models/my_gene_info.rb @@ -13,6 +13,8 @@ def self.refresh_cache_for_gene_id(gene_id) def self.make_request(gene_id) entrez_id = Features::Gene.find_by!(id: gene_id).entrez_id ScrapingUtils.make_get_request(my_gene_info_url(entrez_id)) + rescue StandardError + "" end def self.my_gene_info_url(entrez_id) @@ -22,4 +24,4 @@ def self.my_gene_info_url(entrez_id) def self.cache_key(gene_id) "mygene_info_#{gene_id}" end -end \ No newline at end of file +end diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index dd0f6c152..99b11645d 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -78,6 +78,11 @@ def link Rails.application.routes.url_helpers.url_for("/variants/#{self.id}") end + #Name to be used when displayed as part of a Molecular Profile + def mp_name + name + end + def self.timepoint_query ->(x) { self.joins(molecular_profiles: [:evidence_items]) @@ -184,7 +189,8 @@ def required_fields def self.known_subclasses [ Variants::GeneVariant, - Variants::FactorVariant + Variants::FactorVariant, + Variants::FusionVariant ] end end diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb index 455500cad..197ff490a 100644 --- a/server/app/models/variant_coordinate.rb +++ b/server/app/models/variant_coordinate.rb @@ -21,6 +21,11 @@ class VariantCoordinate < ApplicationRecord message: "%{value} is not a valid coordinate type" } + enum exon_offset_direction: { + positive: 'positive', + negative: 'negative' + } + validates_with CoordinateValidator def editable_fields @@ -36,4 +41,14 @@ def editable_fields ] end + def formatted_offset + if exon_offset_direction.nil? + '' + elsif exon_offset_direction == 'positive' + '+' + elsif exon_offset_direction == 'negative' + '-' + end + end + end diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 3a7f0c742..9f0044cd4 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -1,6 +1,6 @@ module Variants class FusionVariant < Variant - belongs_to :fusion, class_name: 'Features::Fusion', optional: true + has_one :fusion, through: :feature, source: :feature_instance, source_type: 'Features::Fusion' has_one :five_prime_coordinates, ->() { where(coordinate_type: 'Five Prime Fusion Coordinate') }, @@ -30,7 +30,78 @@ def unique_editable_fields end def required_fields - [] + [ + :vicc_compliant_name + ] + end + + def mp_name + if name == 'Fusion' + "#{feature.name} Fusion" + else + [ + construct_five_prime_name(name_type: :molecular_profile), + construct_three_prime_name(name_type: :molecular_profile) + ].join("::") + end + + end + + def generate_vicc_name + if name == 'Fusion' + "#{construct_five_prime_name(name_type: :representative)}::#{construct_three_prime_name(name_type: :representative)}" + else + "#{construct_five_prime_name(name_type: :vicc)}::#{construct_three_prime_name(name_type: :vicc)}" + end + end + + def generate_name + if name == 'Fusion' + name + else + [ + construct_five_prime_name(name_type: :civic), + construct_three_prime_name(name_type: :civic) + ].join("::") + end + end + + private + def construct_five_prime_name(name_type:) + construct_partner_name( + name_type: name_type, + partner_status: fusion.five_prime_partner_status, + gene: fusion.five_prime_gene, + coords: five_prime_coordinates + ) + end + + def construct_three_prime_name(name_type:) + construct_partner_name( + name_type: name_type, + partner_status: fusion.three_prime_partner_status, + gene: fusion.three_prime_gene, + coords: three_prime_coordinates + ) + end + + def construct_partner_name(name_type:, partner_status:, gene:, coords:) + if partner_status == 'known' + case name_type + when :representative + "#{gene.name}(entrez:#{gene.entrez_id})" + when :civic + "e.#{coords.exon_boundary}#{coords.formatted_offset}#{coords.exon_offset}" + when :vicc + "#{coords.representative_transcript}(#{gene.name}):e.#{coords.exon_boundary}#{coords.formatted_offset}#{coords.exon_offset}" + when :molecular_profile + "#{gene.name}:e.#{coords.exon_boundary}#{coords.formatted_offset}#{coords.exon_offset}" + end + elsif partner_status == 'unknown' + '?' + elsif partner_status == 'multiple' + 'v' + end end def correct_coordinate_type diff --git a/server/app/validators/coordinate_validator.rb b/server/app/validators/coordinate_validator.rb index bb83eaf86..7ba0cfcde 100644 --- a/server/app/validators/coordinate_validator.rb +++ b/server/app/validators/coordinate_validator.rb @@ -16,26 +16,33 @@ def validate(record) def validate_gene_variant_coordinates(record) validate_not_present(record, :exon_boundary) validate_not_present(record, :exon_offset) - require_transcript_and_build_for_coords + validate_not_present(record, :exon_offset_direction) + require_transcript_and_build_for_coords(record) end def validate_fusion_variant_coordinates(record) - require_transcript_and_build_for_coords + require_transcript_and_build_for_coords(record) + + if record.exon_boundary.present? + validate_present(record, :representative_transcript, "You must specify a transcript if you supply an exon boundary") + end if record.exon_offset.present? validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset value") + validate_present(record, :exon_offset_direction, "You must specify an offset direction if you supply an offset value") end - if record.exon_boundary.present? - validate_present(record, :transcript, "You must specify a transcript if you supply an exon boundary") + if record.exon_offset_direction.present? + validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset direction") + validate_present(record, :exon_offset, "You must specify an exon offset if you supply an offset direction") end end - def require_transcript_and_build_for_coords + def require_transcript_and_build_for_coords(record) #if any of these are set if [:chromosome, :start, :stop].map { |field| record.send(field) }.any?(&:present?) validate_present(record, :reference_build, "You must specify a reference_build if you supply coordinate information") - validate_present(record, :transcript, "You must specify a transcript if you supply coordinate information") + validate_present(record, :representative_transcript, "You must specify a transcript if you supply coordinate information") end end diff --git a/server/db/migrate/20240621143750_add_exon_offset_direction.rb b/server/db/migrate/20240621143750_add_exon_offset_direction.rb new file mode 100644 index 000000000..c5699ed1a --- /dev/null +++ b/server/db/migrate/20240621143750_add_exon_offset_direction.rb @@ -0,0 +1,17 @@ +class AddExonOffsetDirection < ActiveRecord::Migration[7.1] + def up + create_enum :exon_offset_direction, ["positive", "negative"] + + change_table :variant_coordinates do |t| + t.enum :exon_offset_direction, enum_type: "exon_offset_direction", null: true + end + end + + def down + remove_column :variant_coordinates, :exon_offset_direction + + execute <<-SQL + DROP TYPE exon_offset_direction; + SQL + end +end diff --git a/server/db/migrate/20240701162452_add_vicc_name_to_variants.rb b/server/db/migrate/20240701162452_add_vicc_name_to_variants.rb new file mode 100644 index 000000000..9f9519d0a --- /dev/null +++ b/server/db/migrate/20240701162452_add_vicc_name_to_variants.rb @@ -0,0 +1,6 @@ +class AddViccNameToVariants < ActiveRecord::Migration[7.1] + def change + add_column :variants, :vicc_compliant_name, :string, null: true + add_index :variants, :vicc_compliant_name + end +end diff --git a/server/db/schema.rb b/server/db/schema.rb index f9c12cf13..f44286927 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -10,12 +10,13 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_06_13_134015) do +ActiveRecord::Schema[7.1].define(version: 2024_07_01_162452) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" # Custom types defined in this database. # Note that some types may not work with other database engines. Be careful if changing database. + create_enum "exon_offset_direction", ["positive", "negative"] create_enum "fusion_partner_status", ["known", "unknown", "multiple"] create_table "acmg_codes", id: :serial, force: :cascade do |t| @@ -897,6 +898,7 @@ t.text "coordinate_type", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.enum "exon_offset_direction", enum_type: "exon_offset_direction" t.index ["chromosome"], name: "index_variant_coordinates_on_chromosome" t.index ["reference_build"], name: "index_variant_coordinates_on_reference_build" t.index ["representative_transcript"], name: "index_variant_coordinates_on_representative_transcript" @@ -978,6 +980,7 @@ t.bigint "feature_id" t.string "type", null: false t.string "ncit_id" + t.string "vicc_compliant_name" t.index "lower((name)::text) varchar_pattern_ops", name: "idx_case_insensitive_variant_name" t.index "lower((name)::text)", name: "variant_lower_name_idx" t.index ["chromosome"], name: "index_variants_on_chromosome" @@ -994,6 +997,7 @@ t.index ["stop"], name: "index_variants_on_stop" t.index ["stop2"], name: "index_variants_on_stop2" t.index ["variant_bases"], name: "index_variants_on_variant_bases" + t.index ["vicc_compliant_name"], name: "index_variants_on_vicc_compliant_name" end create_table "view_last_updated_timestamps", force: :cascade do |t| From 8d9683794e41232b27b6328a23289aa25104ba94 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 8 Jul 2024 14:04:35 -0500 Subject: [PATCH 17/56] fusion variant creation form is aware of gene partner status --- .../feature-select/feature-select.query.gql | 5 ++ .../fusion-variant-select.form.ts | 31 ++++++++-- .../variant-select/variant-select.type.ts | 7 ++- client/src/app/generated/civic.apollo.ts | 15 +++-- client/src/app/generated/server.model.graphql | 4 +- client/src/app/generated/server.schema.json | 20 ++----- .../mutations/create_fusion_variant.rb | 2 + .../types/fusion/fusion_variant_input_type.rb | 56 ++++++++++++------- 8 files changed, 90 insertions(+), 50 deletions(-) diff --git a/client/src/app/forms/types/feature-select/feature-select.query.gql b/client/src/app/forms/types/feature-select/feature-select.query.gql index ccf6721e0..58c0679ab 100644 --- a/client/src/app/forms/types/feature-select/feature-select.query.gql +++ b/client/src/app/forms/types/feature-select/feature-select.query.gql @@ -15,6 +15,7 @@ fragment FeatureSelectTypeaheadFields on Feature { name featureAliases link + featureType featureInstance { __typename ... on Gene { @@ -23,5 +24,9 @@ fragment FeatureSelectTypeaheadFields on Feature { ... on Factor { ncitId } + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } } } diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts index b0e07ae70..7547e92be 100644 --- a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts @@ -11,7 +11,9 @@ import { UntypedFormGroup, } from '@angular/forms' import { + FeatureSelectTypeaheadFieldsFragment, FusionOffsetDirection, + FusionPartnerStatus, Maybe, ReferenceBuild, SelectOrCreateFusionVariantGQL, @@ -55,7 +57,7 @@ type FusionVariantSelectModel = { } export interface FusionVariantSelectModalData { - feature?: LinkableFeature + feature?: FeatureSelectTypeaheadFieldsFragment } @UntilDestroy() @@ -136,6 +138,17 @@ export class CvcFusionVariantSelectForm { }, ] + let fivePrimeDisabled = false + let threePrimeDisabled = false + + if (this.nzModalData.feature?.featureInstance.__typename == 'Fusion') { + const feature = this.nzModalData.feature.featureInstance + fivePrimeDisabled = + feature.fivePrimePartnerStatus != FusionPartnerStatus.Known + threePrimeDisabled = + feature.threePrimePartnerStatus != FusionPartnerStatus.Known + } + this.config = [ { wrappers: ['form-layout'], @@ -199,7 +212,8 @@ export class CvcFusionVariantSelectForm { type: 'base-input', props: { label: "5' Transcript", - required: true, + required: !fivePrimeDisabled, + disabled: fivePrimeDisabled, tooltip: "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected", }, @@ -215,7 +229,8 @@ export class CvcFusionVariantSelectForm { }, props: { label: "5' Exon End", - required: true, + required: !fivePrimeDisabled, + disabled: fivePrimeDisabled, tooltip: 'The exon number counted from the 5’ end of the transcript.', }, @@ -233,6 +248,8 @@ export class CvcFusionVariantSelectForm { label: "5' Exon Offset", tooltip: 'A value representing the offset from the segment boundary.', + required: false, + disabled: fivePrimeDisabled, }, }, { @@ -268,7 +285,8 @@ export class CvcFusionVariantSelectForm { key: 'threePrimeTranscript', type: 'base-input', props: { - required: true, + required: !threePrimeDisabled, + disabled: threePrimeDisabled, label: "3' Transcript", tooltip: "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected", @@ -287,7 +305,8 @@ export class CvcFusionVariantSelectForm { label: "3' Exon Start", tooltip: 'The exon number counted from the 5’ end of the transcript.', - required: true, + required: !threePrimeDisabled, + disabled: threePrimeDisabled, }, }, { @@ -301,6 +320,8 @@ export class CvcFusionVariantSelectForm { }, props: { label: "3' Exon Offset", + disabled: threePrimeDisabled, + required: false, tooltip: 'A value representing the offset from the segment boundary.', }, diff --git a/client/src/app/forms/types/variant-select/variant-select.type.ts b/client/src/app/forms/types/variant-select/variant-select.type.ts index 6f8988f20..07360796a 100644 --- a/client/src/app/forms/types/variant-select/variant-select.type.ts +++ b/client/src/app/forms/types/variant-select/variant-select.type.ts @@ -14,7 +14,8 @@ import { BaseFieldType } from '@app/forms/mixins/base/base-field' import { EntitySelectField } from '@app/forms/mixins/entity-select-field.mixin' import { CvcFormFieldExtraType } from '@app/forms/wrappers/form-field/form-field.wrapper' import { - LinkableFeatureGQL, + FeatureSelectTagGQL, + FeatureSelectTypeaheadFieldsFragment, Maybe, VariantSelectTagGQL, VariantSelectTagQuery, @@ -115,7 +116,7 @@ export class CvcVariantSelectField selectedFeatureId?: number selectedFeatureType?: string - selectedFeature?: LinkableFeature + selectedFeature?: FeatureSelectTypeaheadFieldsFragment // FieldTypeConfig defaults defaultOptions = { @@ -140,7 +141,7 @@ export class CvcVariantSelectField constructor( private taq: VariantSelectTypeaheadGQL, private tq: VariantSelectTagGQL, - private featureQuery: LinkableFeatureGQL, + private featureQuery: FeatureSelectTagGQL, private changeDetectorRef: ChangeDetectorRef, private modal: NzModalService ) { diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 13229e0b2..e6bd5e6d5 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2723,13 +2723,13 @@ export type FusionVariantInput = { fivePrimeExonEnd?: InputMaybe; fivePrimeOffset?: InputMaybe; fivePrimeOffsetDirection?: InputMaybe; - fivePrimeTranscript: Scalars['String']; + fivePrimeTranscript?: InputMaybe; /** The reference build for the genomic coordinates of this Variant. */ referenceBuild?: InputMaybe; threePrimeExonStart?: InputMaybe; threePrimeOffset?: InputMaybe; threePrimeOffsetDirection?: InputMaybe; - threePrimeTranscript: Scalars['String']; + threePrimeTranscript?: InputMaybe; }; /** The Feature that a Variant can belong to */ @@ -8361,16 +8361,16 @@ export type FeatureSelectTypeaheadQueryVariables = Exact<{ }>; -export type FeatureSelectTypeaheadQuery = { __typename: 'Query', featureTypeahead: Array<{ __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene', entrezId: number } }> }; +export type FeatureSelectTypeaheadQuery = { __typename: 'Query', featureTypeahead: Array<{ __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureType: FeatureInstanceTypes, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene', entrezId: number } }> }; export type FeatureSelectTagQueryVariables = Exact<{ featureId: Scalars['Int']; }>; -export type FeatureSelectTagQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene', entrezId: number } } | undefined }; +export type FeatureSelectTagQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureType: FeatureInstanceTypes, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene', entrezId: number } } | undefined }; -export type FeatureSelectTypeaheadFieldsFragment = { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion' } | { __typename: 'Gene', entrezId: number } }; +export type FeatureSelectTypeaheadFieldsFragment = { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureType: FeatureInstanceTypes, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene', entrezId: number } }; export type SelectOrCreateFusionMutationVariables = Exact<{ organizationId?: InputMaybe; @@ -10734,6 +10734,7 @@ export const FeatureSelectTypeaheadFieldsFragmentDoc = gql` name featureAliases link + featureType featureInstance { __typename ... on Gene { @@ -10742,6 +10743,10 @@ export const FeatureSelectTypeaheadFieldsFragmentDoc = gql` ... on Factor { ncitId } + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } } } `; diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 8dc3fc127..9ab667ab5 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4686,7 +4686,7 @@ input FusionVariantInput { fivePrimeExonEnd: Int fivePrimeOffset: Int fivePrimeOffsetDirection: FusionOffsetDirection - fivePrimeTranscript: String! + fivePrimeTranscript: String """ The reference build for the genomic coordinates of this Variant. @@ -4695,7 +4695,7 @@ input FusionVariantInput { threePrimeExonStart: Int threePrimeOffset: Int threePrimeOffsetDirection: FusionOffsetDirection - threePrimeTranscript: String! + threePrimeTranscript: String } """ diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index b1828bb13..b0748a64b 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -21843,13 +21843,9 @@ "name": "fivePrimeTranscript", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, @@ -21895,13 +21891,9 @@ "name": "threePrimeTranscript", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, diff --git a/server/app/graphql/mutations/create_fusion_variant.rb b/server/app/graphql/mutations/create_fusion_variant.rb index 54d472330..9b80fd95d 100644 --- a/server/app/graphql/mutations/create_fusion_variant.rb +++ b/server/app/graphql/mutations/create_fusion_variant.rb @@ -24,6 +24,8 @@ def ready?(feature_id:, coordinates:, organization_id: nil, **kwargs) end coordinates.each do |_, variant_coords| + next unless variant_coords.present? + if !variant_coords.valid? errs = variant_coords.errors #no variant is present yet, ignore this for now diff --git a/server/app/graphql/types/fusion/fusion_variant_input_type.rb b/server/app/graphql/types/fusion/fusion_variant_input_type.rb index 6c04fdc56..41d13ab65 100644 --- a/server/app/graphql/types/fusion/fusion_variant_input_type.rb +++ b/server/app/graphql/types/fusion/fusion_variant_input_type.rb @@ -2,12 +2,12 @@ module Types::Fusion class FusionVariantInputType < Types::BaseInputObject description 'The fields required to create a fusion variant' - argument :five_prime_transcript, String, required: true + argument :five_prime_transcript, String, required: false argument :five_prime_exon_end, Int, required: false argument :five_prime_offset, Int, required: false argument :five_prime_offset_direction, Types::Fusion::FusionOffsetDirection, required: false - argument :three_prime_transcript, String, required: true + argument :three_prime_transcript, String, required: false argument :three_prime_exon_start, Int, required: false argument :three_prime_offset, Int, required: false argument :three_prime_offset_direction, Types::Fusion::FusionOffsetDirection, required: false @@ -18,27 +18,41 @@ class FusionVariantInputType < Types::BaseInputObject argument :ensembl_version, Int, required: true def prepare + five_prime_coords = if five_prime_transcript.present? + VariantCoordinate.new( + coordinate_type: 'Five Prime Fusion Coordinate', + reference_build: reference_build, + ensembl_version: ensembl_version, + representative_transcript: five_prime_transcript, + exon_boundary: five_prime_exon_end, + exon_offset: five_prime_offset, + exon_offset_direction: five_prime_offset_direction, + + ) + else + nil + end + + three_prime_coords = if three_prime_transcript.present? + VariantCoordinate.new( + coordinate_type: 'Three Prime Fusion Coordinate', + reference_build: reference_build, + ensembl_version: ensembl_version, + representative_transcript: three_prime_transcript, + exon_boundary: three_prime_exon_start, + exon_offset: three_prime_offset, + exon_offset_direction: three_prime_offset_direction, + ) + else + nil + end + + { - five_prime_coords: VariantCoordinate.new( - coordinate_type: 'Five Prime Fusion Coordinate', - reference_build: reference_build, - ensembl_version: ensembl_version, - representative_transcript: five_prime_transcript, - exon_boundary: five_prime_exon_end, - exon_offset: five_prime_offset, - exon_offset_direction: five_prime_offset_direction, - - ), - three_prime_coords: VariantCoordinate.new( - coordinate_type: 'Three Prime Fusion Coordinate', - reference_build: reference_build, - ensembl_version: ensembl_version, - representative_transcript: three_prime_transcript, - exon_boundary: three_prime_exon_start, - exon_offset: three_prime_offset, - exon_offset_direction: three_prime_offset_direction, - ) + five_prime_coords: five_prime_coords, + three_prime_coords: three_prime_coords } + end end end From c592c28d8d8e49e0531f7966fc4477eb33631e0c Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Tue, 9 Jul 2024 13:48:14 -0500 Subject: [PATCH 18/56] coordinate card working on fusion display --- ...profile-fusion-variant-card.component.html | 162 ++++++ ...profile-fusion-variant-card.component.less | 3 + ...r-profile-fusion-variant-card.component.ts | 33 ++ ...ular-profile-fusion-variant-card.module.ts | 51 ++ .../coordinates-card.component.html | 322 +++++++---- .../coordinates-card.component.ts | 3 + .../coordinates-card.module.ts | 2 + .../coordinates-card.query.gql | 8 + .../fusion-variant-summary.page.html | 198 +++++++ .../fusion-variant-summary.page.less | 9 + .../fusion-variant-summary.page.ts | 55 ++ .../variants-table.component.html | 4 + .../src/app/core/pipes/enum-to-title-pipe.ts | 7 + .../gene-variant-revise.query.gql | 1 + .../src/app/generated/civic.apollo-helpers.ts | 61 +-- client/src/app/generated/civic.apollo.ts | 158 ++++-- client/src/app/generated/server.model.graphql | 53 +- client/src/app/generated/server.schema.json | 502 ++++++++---------- .../molecular-profiles-summary.module.ts | 2 + .../molecular-profiles-summary.page.html | 35 +- .../molecular-profiles-summary.query.gql | 3 + .../variants-summary.module.ts | 2 + .../variants-summary.page.html | 3 + .../variants-summary.query.gql | 47 ++ .../types/entities/coordinate_type_type.rb | 7 + ...ve_prime_fusion_variant_coordinate_type.rb | 9 - .../fusion_variant_coordinate_type.rb | 2 + .../entities/gene_variant_coordinate_type.rb | 1 + ...ee_prime_fusion_variant_coordinate_type.rb | 9 - .../types/variants/fusion_variant_type.rb | 10 +- .../types/variants/gene_variant_type.rb | 2 +- 31 files changed, 1240 insertions(+), 524 deletions(-) create mode 100644 client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html create mode 100644 client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.less create mode 100644 client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.ts create mode 100644 client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.module.ts create mode 100644 client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html create mode 100644 client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.less create mode 100644 client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.ts create mode 100644 server/app/graphql/types/entities/coordinate_type_type.rb delete mode 100644 server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb delete mode 100644 server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb diff --git a/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html new file mode 100644 index 000000000..7053be791 --- /dev/null +++ b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html @@ -0,0 +1,162 @@ +@if (variant.__typename == 'FusionVariant') { + + + + {{ variant.name }} + + + + + + + + + + + + + + + {{ + alias + }} + + + + None specified + + + + + + + + + + + + + None provided + + + + + + + + + + {{ id }} + + + + + + + N/A + + + + None provided + + + + + + + + + + + + view + {{ + variant.molecularProfiles.totalCount - + this.displayMps.length + }} + more + + + + + + + + + + + + + + + + + + + +} diff --git a/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.less b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.less new file mode 100644 index 000000000..3e2f98759 --- /dev/null +++ b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.less @@ -0,0 +1,3 @@ +.card-title { + font-size: 120%; +} diff --git a/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.ts b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.ts new file mode 100644 index 000000000..2a6a46dc4 --- /dev/null +++ b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.ts @@ -0,0 +1,33 @@ +import { Component, Input, OnInit } from '@angular/core' +import { VariantMolecularProfileCardFieldsFragment } from '@app/generated/civic.apollo' +import { LinkableMolecularProfile } from '../molecular-profile-tag/molecular-profile-tag.component' + +@Component({ + selector: 'cvc-mp-fusion-variant-card', + templateUrl: './molecular-profile-fusion-variant-card.component.html', + styleUrls: ['./molecular-profile-fusion-variant-card.component.less'], +}) +export class CvcMolecularProfileFusionVariantCardComponent implements OnInit { + @Input() variant!: VariantMolecularProfileCardFieldsFragment + @Input() currentMolecularProfileId!: number + + displayMps: LinkableMolecularProfile[] = [] + + ngOnInit() { + if (this.variant === undefined) { + throw new Error('Must pass a Variant into the MP Variant Card Component') + } + + if (this.currentMolecularProfileId === undefined) { + throw new Error('Must pass a MP ID into the MP Variant Card Component') + } + + if (this.variant.__typename !== 'FusionVariant') { + throw new Error('This card is for FusionVariant variant types only.') + } + + this.displayMps = this.variant.molecularProfiles.nodes.filter( + (mp) => mp.id != this.currentMolecularProfileId + ) + } +} diff --git a/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.module.ts b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.module.ts new file mode 100644 index 000000000..5107a443c --- /dev/null +++ b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.module.ts @@ -0,0 +1,51 @@ +import { NgModule } from '@angular/core' +import { CommonModule } from '@angular/common' +import { CvcVariantTagModule } from '@app/components/variants/variant-tag/variant-tag.module' +import { NzTagModule } from 'ng-zorro-antd/tag' +import { NzIconModule } from 'ng-zorro-antd/icon' +import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions' +import { NzTypographyModule } from 'ng-zorro-antd/typography' +import { CvcEmptyRevisableModule } from '@app/components/shared/empty-revisable/empty-revisable.module' +import { CvcTagListModule } from '@app/components/shared/tag-list/tag-list.module' +import { CvcVariantTypeTagModule } from '@app/components/variant-types/variant-type-tag/variant-type-tag.module' +import { CvcLinkTagModule } from '@app/components/shared/link-tag/link-tag.module' +import { NzCardModule } from 'ng-zorro-antd/card' +import { CvcPipesModule } from '@app/core/pipes/pipes.module' +import { CvcMolecularProfileTagModule } from '../molecular-profile-tag/molecular-profile-tag.module' +import { RouterModule } from '@angular/router' +import { NzCollapseModule } from 'ng-zorro-antd/collapse' +import { CvcCoordinatesCardModule } from '@app/components/variants/coordinates-card/coordinates-card.module' +import { NzSpaceModule } from 'ng-zorro-antd/space' +import { CvcFeatureTagModule } from '@app/components/features/feature-tag/feature-tag.module' +import { CvcFeatureVariantTagModule } from '@app/components/shared/feature-variant-tag/feature-variant-tag.module' +import { CvcMolecularProfileFusionVariantCardComponent } from './molecular-profile-fusion-variant-card.component' + +@NgModule({ + declarations: [CvcMolecularProfileFusionVariantCardComponent], + imports: [ + CommonModule, + RouterModule, + NzTagModule, + NzIconModule, + NzGridModule, + NzDescriptionsModule, + NzTypographyModule, + NzCardModule, + NzCollapseModule, + NzSpaceModule, + CvcPipesModule, + CvcVariantTagModule, + CvcFeatureTagModule, + CvcEmptyRevisableModule, + CvcTagListModule, + CvcVariantTypeTagModule, + CvcLinkTagModule, + CvcTagListModule, + CvcMolecularProfileTagModule, + CvcCoordinatesCardModule, + CvcFeatureVariantTagModule, + ], + exports: [CvcMolecularProfileFusionVariantCardComponent], +}) +export class CvcMolecularProfileFusionVariantCardModule {} diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html index 100dcda72..7cc1faf51 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html @@ -1,18 +1,105 @@ - @if (variant.__typename == 'GeneVariant') { - - + @switch (variant.__typename) { + @case ('GeneVariant') { + + + } + @case ('FusionVariant') { + + @if (variant.fivePrimeCoordinates) { + + + + + + + } + @if (variant.threePrimeCoordinates) { + + + + + + + } + + } } - @if (this.cvcCoordinates.__typename == 'GeneVariant') { - - + @switch (this.cvcCoordinates.__typename) { + @case ('GeneVariant') { + + + + + } + @case ('FusionVariant') { + + @if (this.cvcCoordinates.fivePrimeCoordinates) { + + + + + + + } + @if (this.cvcCoordinates.threePrimeCoordinates) { + + + + + + + } + + } } @@ -26,94 +113,56 @@ - - - - + let-variant="variant" + let-coords> + @if (coords) { + + + - - - - {{ coords.referenceBuild }} - - - - - - {{ coords.ensemblVersion }} - - - - - - - - - {{ coords.chromosome }} - - - - - - - {{ coords.start }} - - + + + {{ coords.referenceBuild }} + + - - - - {{ coords.stop }} - - + + + {{ coords.ensemblVersion }} + + + + + + {{ coords.chromosome }} + + - - - - - {{ coords.referenceBases | ifEmpty: '--' }} - - + + + + {{ coords.start }} + + - - - - {{ coords.variantBases | ifEmpty: '--' }} - - + + + + {{ coords.stop }} + + - - - - - - - - - + + + + {{ coords.referenceBases | ifEmpty: '--' }} + + + + + + + {{ coords.variantBases | ifEmpty: '--' }} + + + + + {{ coords.exonBoundary | ifEmpty: '--' }} + + + + + {{ coords.exonBoundary | ifEmpty: '--' }} + + + + + {{ coords.exonOffsetDirection | enumToTitle + }}{{ coords.exonOffset | ifEmpty: '--' }} + + + + + + } @else { + + + } diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts b/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts index aa241e45e..62d2cf7f1 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts @@ -1,5 +1,6 @@ import { Component, Input, OnInit } from '@angular/core' import { + CoordinateType, CoordinatesCardFieldsFragment, CoordinatesCardGQL, CoordinatesCardQuery, @@ -26,6 +27,8 @@ export class CvcCoordinatesCard implements OnInit { loading$?: Observable variant$?: Observable> + coordinateTypes = CoordinateType + constructor(private gql: CoordinatesCardGQL) {} ngOnInit(): void { diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts index fb22843a2..53ce1a95a 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts @@ -8,6 +8,7 @@ import { CvcEmptyRevisableModule } from '@app/components/shared/empty-revisable/ import { LetDirective, PushPipe } from '@ngrx/component' import { CvcPipesModule } from '@app/core/pipes/pipes.module' import { NzTypographyModule } from 'ng-zorro-antd/typography' +import { NzGridModule } from 'ng-zorro-antd/grid' @NgModule({ declarations: [CvcCoordinatesCard], @@ -19,6 +20,7 @@ import { NzTypographyModule } from 'ng-zorro-antd/typography' NzCardModule, NzDescriptionsModule, NzTypographyModule, + NzGridModule, CvcPipesModule, CvcLinkTagModule, CvcEmptyRevisableModule, diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql index 0fb7f1244..acf5a75ab 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql @@ -12,4 +12,12 @@ fragment CoordinatesCardFields on VariantInterface { ...CoordinateFields } } + ... on FusionVariant { + fivePrimeCoordinates { + ...FusionCoordinateFields + } + threePrimeCoordinates { + ...FusionCoordinateFields + } + } } diff --git a/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html new file mode 100644 index 000000000..53f57319b --- /dev/null +++ b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html @@ -0,0 +1,198 @@ +@if (variant.__typename == 'FusionVariant') { + + + + + + + + + + + + + + {{ + alias + }} + + + + None specified + + + + + + + + + + + + None specified + + + + + + + + {{ + desc + }} + + + + None specified + + + + + + + + + + + + + + + + + + by + + + + Created + + ({{ variant.creationActivity.createdAt | timeAgo }}) + + + + + + by + + + + Deprecated + + ({{ variant.deprecationActivity.createdAt | timeAgo }}) + + + + + + + + + + + + + + + + + + + + + + + + {{ variant.fusion.fivePrimePartnerStatus | enumToTitle }} + + + + {{ + variant.fusion.threePrimePartnerStatus | enumToTitle + }} + + + + + + + + + + + + + + + + + +} diff --git a/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.less b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.less new file mode 100644 index 000000000..b2848ee08 --- /dev/null +++ b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.less @@ -0,0 +1,9 @@ +@import "themes/overrides/descriptions-overrides.less"; +:host { + display: block; +} + +nz-space, +nz-space-item { + width: 100%; +} diff --git a/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.ts b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.ts new file mode 100644 index 000000000..ab6b0f212 --- /dev/null +++ b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.ts @@ -0,0 +1,55 @@ +import { CommonModule } from '@angular/common' +import { Component, Input, OnInit } from '@angular/core' +import { CvcTagListModule } from '@app/components/shared/tag-list/tag-list.module' + +import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions' +import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzTagModule } from 'ng-zorro-antd/tag' +import { CvcVariantTypeTagModule } from '@app/components/variant-types/variant-type-tag/variant-type-tag.module' +import { CvcCoordinatesCardModule } from '../coordinates-card/coordinates-card.module' +import { CvcLinkTagModule } from '@app/components/shared/link-tag/link-tag.module' +import { NzCardModule } from 'ng-zorro-antd/card' +import { CvcEmptyRevisableModule } from '@app/components/shared/empty-revisable/empty-revisable.module' +import { CvcMolecularProfilesTableModule } from '@app/components/molecular-profiles/molecular-profile-table/molecular-profile-table.module' +import { CvcMyVariantInfoModule } from '../my-variant-info/my-variant-info.module' +import { PushPipe } from '@ngrx/component' +import { VariantSummaryFieldsFragment } from '@app/generated/civic.apollo' +import { CvcUserTagModule } from '@app/components/users/user-tag/user-tag.module' +import { CvcFeatureTagModule } from '@app/components/features/feature-tag/feature-tag.module' +import { CvcPipesModule } from '@app/core/pipes/pipes.module' +import { NzTypographyModule } from 'ng-zorro-antd/typography' + +@Component({ + standalone: true, + selector: 'cvc-fusion-variant-summary', + templateUrl: './fusion-variant-summary.page.html', + styleUrls: ['./fusion-variant-summary.page.less'], + imports: [ + CommonModule, + PushPipe, + NzGridModule, + NzDescriptionsModule, + NzTagModule, + NzCardModule, + NzTypographyModule, + CvcEmptyRevisableModule, + CvcTagListModule, + CvcVariantTypeTagModule, + CvcCoordinatesCardModule, + CvcLinkTagModule, + CvcUserTagModule, + CvcFeatureTagModule, + CvcMolecularProfilesTableModule, + CvcMyVariantInfoModule, + CvcPipesModule, + ], +}) +export class CvcFusionVariantSummaryComponent implements OnInit { + @Input() variant!: VariantSummaryFieldsFragment + + ngOnInit() { + if (this.variant == undefined) { + throw new Error('Must pass FusionVariant into FusionVariant summary') + } + } +} diff --git a/client/src/app/components/variants/variants-table/variants-table.component.html b/client/src/app/components/variants/variants-table/variants-table.component.html index c3e2b541c..60516c4b5 100644 --- a/client/src/app/components/variants/variants-table/variants-table.component.html +++ b/client/src/app/components/variants/variants-table/variants-table.component.html @@ -104,6 +104,10 @@ [nzValue]="variantCategories.Factor" nzLabel="Factor"> + + diff --git a/client/src/app/core/pipes/enum-to-title-pipe.ts b/client/src/app/core/pipes/enum-to-title-pipe.ts index c4b360772..7eb94cfb2 100644 --- a/client/src/app/core/pipes/enum-to-title-pipe.ts +++ b/client/src/app/core/pipes/enum-to-title-pipe.ts @@ -7,6 +7,13 @@ import { Pipe, PipeTransform } from '@angular/core' export class EnumToTitlePipe implements PipeTransform { transform(enum_text?: string): string { if (enum_text) { + if (enum_text === 'POSITIVE') { + return '+' + } + if (enum_text === 'NEGATIVE') { + return '-' + } + let str = enum_text.toLowerCase().replace(/_/g, ' ').split(' ') for (var i = 0; i < str.length; i++) { str[i] = str[i].charAt(0).toUpperCase() + str[i].slice(1) diff --git a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql index 215a233f7..4b8d149c3 100644 --- a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql +++ b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql @@ -36,6 +36,7 @@ fragment CoordinateFields on GeneVariantCoordinate { stop referenceBases variantBases + coordinateType } mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index efb7f4df1..e9d5c343e 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -921,19 +921,6 @@ export type FieldValidationErrorFieldPolicy = { error?: FieldPolicy | FieldReadFunction, fieldName?: FieldPolicy | FieldReadFunction }; -export type FivePrimeFusionVariantCoordinateKeySpecifier = ('chromosome' | 'endExon' | 'ensemblVersion' | 'exonBoundary' | 'exonOffset' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | FivePrimeFusionVariantCoordinateKeySpecifier)[]; -export type FivePrimeFusionVariantCoordinateFieldPolicy = { - chromosome?: FieldPolicy | FieldReadFunction, - endExon?: FieldPolicy | FieldReadFunction, - ensemblVersion?: FieldPolicy | FieldReadFunction, - exonBoundary?: FieldPolicy | FieldReadFunction, - exonOffset?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - referenceBuild?: FieldPolicy | FieldReadFunction, - representativeTranscript?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; export type FlagKeySpecifier = ('comments' | 'createdAt' | 'events' | 'flaggable' | 'flaggingUser' | 'id' | 'lastCommentEvent' | 'link' | 'name' | 'openActivity' | 'resolutionActivity' | 'resolvingUser' | 'state' | FlagKeySpecifier)[]; export type FlagFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, @@ -1021,7 +1008,7 @@ export type FusionFieldPolicy = { threePrimePartnerStatus?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction }; -export type FusionVariantKeySpecifier = ('clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'variantAliases' | 'variantTypes' | FusionVariantKeySpecifier)[]; +export type FusionVariantKeySpecifier = ('clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'flagged' | 'flags' | 'fusion' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'variantAliases' | 'variantTypes' | 'viccCompliantName' | FusionVariantKeySpecifier)[]; export type FusionVariantFieldPolicy = { clinvarIds?: FieldPolicy | FieldReadFunction, comments?: FieldPolicy | FieldReadFunction, @@ -1034,6 +1021,7 @@ export type FusionVariantFieldPolicy = { fivePrimeCoordinates?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, flags?: FieldPolicy | FieldReadFunction, + fusion?: FieldPolicy | FieldReadFunction, hgvsDescriptions?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, @@ -1047,7 +1035,22 @@ export type FusionVariantFieldPolicy = { singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, threePrimeCoordinates?: FieldPolicy | FieldReadFunction, variantAliases?: FieldPolicy | FieldReadFunction, - variantTypes?: FieldPolicy | FieldReadFunction + variantTypes?: FieldPolicy | FieldReadFunction, + viccCompliantName?: FieldPolicy | FieldReadFunction +}; +export type FusionVariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'exonBoundary' | 'exonOffset' | 'exonOffsetDirection' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | FusionVariantCoordinateKeySpecifier)[]; +export type FusionVariantCoordinateFieldPolicy = { + chromosome?: FieldPolicy | FieldReadFunction, + coordinateType?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + exonBoundary?: FieldPolicy | FieldReadFunction, + exonOffset?: FieldPolicy | FieldReadFunction, + exonOffsetDirection?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + referenceBuild?: FieldPolicy | FieldReadFunction, + representativeTranscript?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction, + stop?: FieldPolicy | FieldReadFunction }; export type GeneKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'entrezId' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'myGeneInfoDetails' | 'name' | 'revisions' | 'sources' | 'variants' | GeneKeySpecifier)[]; export type GeneFieldPolicy = { @@ -1120,9 +1123,10 @@ export type GeneVariantFieldPolicy = { variantAliases?: FieldPolicy | FieldReadFunction, variantTypes?: FieldPolicy | FieldReadFunction }; -export type GeneVariantCoordinateKeySpecifier = ('chromosome' | 'ensemblVersion' | 'id' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | GeneVariantCoordinateKeySpecifier)[]; +export type GeneVariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'id' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | GeneVariantCoordinateKeySpecifier)[]; export type GeneVariantCoordinateFieldPolicy = { chromosome?: FieldPolicy | FieldReadFunction, + coordinateType?: FieldPolicy | FieldReadFunction, ensemblVersion?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, referenceBases?: FieldPolicy | FieldReadFunction, @@ -2093,19 +2097,6 @@ export type TherapyPopoverFieldPolicy = { therapyAliases?: FieldPolicy | FieldReadFunction, therapyUrl?: FieldPolicy | FieldReadFunction }; -export type ThreePrimeFusionVariantCoordinateKeySpecifier = ('chromosome' | 'ensemblVersion' | 'exonBoundary' | 'exonOffset' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'startExon' | 'stop' | ThreePrimeFusionVariantCoordinateKeySpecifier)[]; -export type ThreePrimeFusionVariantCoordinateFieldPolicy = { - chromosome?: FieldPolicy | FieldReadFunction, - ensemblVersion?: FieldPolicy | FieldReadFunction, - exonBoundary?: FieldPolicy | FieldReadFunction, - exonOffset?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - referenceBuild?: FieldPolicy | FieldReadFunction, - representativeTranscript?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - startExon?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; export type TimePointCountsKeySpecifier = ('allTime' | 'newThisMonth' | 'newThisWeek' | 'newThisYear' | TimePointCountsKeySpecifier)[]; export type TimePointCountsFieldPolicy = { allTime?: FieldPolicy | FieldReadFunction, @@ -2713,10 +2704,6 @@ export type StrictTypedTypePolicies = { keyFields?: false | FieldValidationErrorKeySpecifier | (() => undefined | FieldValidationErrorKeySpecifier), fields?: FieldValidationErrorFieldPolicy, }, - FivePrimeFusionVariantCoordinate?: Omit & { - keyFields?: false | FivePrimeFusionVariantCoordinateKeySpecifier | (() => undefined | FivePrimeFusionVariantCoordinateKeySpecifier), - fields?: FivePrimeFusionVariantCoordinateFieldPolicy, - }, Flag?: Omit & { keyFields?: false | FlagKeySpecifier | (() => undefined | FlagKeySpecifier), fields?: FlagFieldPolicy, @@ -2749,6 +2736,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | FusionVariantKeySpecifier | (() => undefined | FusionVariantKeySpecifier), fields?: FusionVariantFieldPolicy, }, + FusionVariantCoordinate?: Omit & { + keyFields?: false | FusionVariantCoordinateKeySpecifier | (() => undefined | FusionVariantCoordinateKeySpecifier), + fields?: FusionVariantCoordinateFieldPolicy, + }, Gene?: Omit & { keyFields?: false | GeneKeySpecifier | (() => undefined | GeneKeySpecifier), fields?: GeneFieldPolicy, @@ -3121,10 +3112,6 @@ export type StrictTypedTypePolicies = { keyFields?: false | TherapyPopoverKeySpecifier | (() => undefined | TherapyPopoverKeySpecifier), fields?: TherapyPopoverFieldPolicy, }, - ThreePrimeFusionVariantCoordinate?: Omit & { - keyFields?: false | ThreePrimeFusionVariantCoordinateKeySpecifier | (() => undefined | ThreePrimeFusionVariantCoordinateKeySpecifier), - fields?: ThreePrimeFusionVariantCoordinateFieldPolicy, - }, TimePointCounts?: Omit & { keyFields?: false | TimePointCountsKeySpecifier | (() => undefined | TimePointCountsKeySpecifier), fields?: TimePointCountsFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index e6bd5e6d5..d94000724 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -1149,6 +1149,12 @@ export type Contribution = { count: Scalars['Int']; }; +export enum CoordinateType { + FivePrimeFusionCoordinate = 'FIVE_PRIME_FUSION_COORDINATE', + GeneVariantCoordinate = 'GENE_VARIANT_COORDINATE', + ThreePrimeFusionCoordinate = 'THREE_PRIME_FUSION_COORDINATE' +} + export type Country = { __typename: 'Country'; id: Scalars['Int']; @@ -2330,20 +2336,6 @@ export type FieldValidationError = { fieldName: Scalars['String']; }; -export type FivePrimeFusionVariantCoordinate = { - __typename: 'FivePrimeFusionVariantCoordinate'; - chromosome?: Maybe; - endExon?: Maybe; - ensemblVersion?: Maybe; - exonBoundary?: Maybe; - exonOffset?: Maybe; - id: Scalars['Int']; - referenceBuild?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - stop?: Maybe; -}; - export type Flag = Commentable & EventOriginObject & EventSubject & { __typename: 'Flag'; /** List and filter comments. */ @@ -2638,10 +2630,11 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla /** List and filter events for an object */ events: EventConnection; feature: Feature; - fivePrimeCoordinates?: Maybe; + fivePrimeCoordinates?: Maybe; flagged: Scalars['Boolean']; /** List and filter flags. */ flags: FlagConnection; + fusion: Fusion; hgvsDescriptions: Array; id: Scalars['Int']; lastAcceptedRevisionEvent?: Maybe; @@ -2654,9 +2647,10 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; singleVariantMolecularProfileId: Scalars['Int']; - threePrimeCoordinates?: Maybe; + threePrimeCoordinates?: Maybe; variantAliases: Array; variantTypes: Array; + viccCompliantName: Scalars['String']; }; @@ -2717,6 +2711,21 @@ export type FusionVariantRevisionsArgs = { status?: InputMaybe; }; +export type FusionVariantCoordinate = { + __typename: 'FusionVariantCoordinate'; + chromosome?: Maybe; + coordinateType: CoordinateType; + ensemblVersion?: Maybe; + exonBoundary?: Maybe; + exonOffset?: Maybe; + exonOffsetDirection?: Maybe; + id: Scalars['Int']; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + start?: Maybe; + stop?: Maybe; +}; + /** The fields required to create a fusion variant */ export type FusionVariantInput = { ensemblVersion: Scalars['Int']; @@ -2971,6 +2980,7 @@ export type GeneVariantRevisionsArgs = { export type GeneVariantCoordinate = { __typename: 'GeneVariantCoordinate'; chromosome?: Maybe; + coordinateType: CoordinateType; ensemblVersion?: Maybe; id: Scalars['Int']; referenceBases?: Maybe; @@ -6210,20 +6220,6 @@ export enum TherapySortColumns { NcitId = 'NCIT_ID' } -export type ThreePrimeFusionVariantCoordinate = { - __typename: 'ThreePrimeFusionVariantCoordinate'; - chromosome?: Maybe; - ensemblVersion?: Maybe; - exonBoundary?: Maybe; - exonOffset?: Maybe; - id: Scalars['Int']; - referenceBuild?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - startExon?: Maybe; - stop?: Maybe; -}; - export type TimePointCounts = { __typename: 'TimePointCounts'; allTime: Scalars['Int']; @@ -7773,13 +7769,13 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string }; +type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -8148,11 +8144,11 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined } }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } }; -export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }; +export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }; export type SuggestGeneVariantRevisionMutationVariables = Exact<{ input: SuggestGeneVariantRevisionInput; @@ -8717,9 +8713,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8731,9 +8727,9 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; +type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8941,13 +8937,13 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8955,7 +8951,11 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; + +export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; + +export type FusionCoordinateFieldsFragment = { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; @@ -10111,6 +10111,22 @@ export const CoordinateFieldsFragmentDoc = gql` stop referenceBases variantBases + coordinateType +} + `; +export const FusionCoordinateFieldsFragmentDoc = gql` + fragment FusionCoordinateFields on FusionVariantCoordinate { + id + representativeTranscript + referenceBuild + ensemblVersion + exonOffset + exonBoundary + chromosome + start + stop + coordinateType + exonOffsetDirection } `; export const CoordinatesCardFieldsFragmentDoc = gql` @@ -10122,8 +10138,17 @@ export const CoordinatesCardFieldsFragmentDoc = gql` ...CoordinateFields } } + ... on FusionVariant { + fivePrimeCoordinates { + ...FusionCoordinateFields + } + threePrimeCoordinates { + ...FusionCoordinateFields + } + } } - ${CoordinateFieldsFragmentDoc}`; + ${CoordinateFieldsFragmentDoc} +${FusionCoordinateFieldsFragmentDoc}`; export const VariantPopoverFieldsFragmentDoc = gql` fragment variantPopoverFields on VariantInterface { id @@ -11319,6 +11344,37 @@ export const FactorVariantSummaryFieldsFragmentDoc = gql` } } ${NcitDetailsFragmentDoc}`; +export const FusionVariantSummaryFieldsFragmentDoc = gql` + fragment FusionVariantSummaryFields on FusionVariant { + viccCompliantName + hgvsDescriptions + clinvarIds + fusion { + fivePrimePartnerStatus + fivePrimeGene { + id + name + link + deprecated + flagged + } + threePrimePartnerStatus + threePrimeGene { + id + name + link + deprecated + flagged + } + } + fivePrimeCoordinates { + ...FusionCoordinateFields + } + threePrimeCoordinates { + ...FusionCoordinateFields + } +} + ${FusionCoordinateFieldsFragmentDoc}`; export const VariantMolecularProfileCardFieldsFragmentDoc = gql` fragment VariantMolecularProfileCardFields on VariantInterface { id @@ -11344,6 +11400,9 @@ export const VariantMolecularProfileCardFieldsFragmentDoc = gql` ... on FactorVariant { ...FactorVariantSummaryFields } + ... on FusionVariant { + ...FusionVariantSummaryFields + } variantAliases variantTypes { id @@ -11353,7 +11412,8 @@ export const VariantMolecularProfileCardFieldsFragmentDoc = gql` } } ${GeneVariantSummaryFieldsFragmentDoc} -${FactorVariantSummaryFieldsFragmentDoc}`; +${FactorVariantSummaryFieldsFragmentDoc} +${FusionVariantSummaryFieldsFragmentDoc}`; export const MolecularProfileSummaryFieldsFragmentDoc = gql` fragment MolecularProfileSummaryFields on MolecularProfile { id @@ -11862,9 +11922,13 @@ export const VariantSummaryFieldsFragmentDoc = gql` ... on FactorVariant { ...FactorVariantSummaryFields } + ... on FusionVariant { + ...FusionVariantSummaryFields + } } ${GeneVariantSummaryFieldsFragmentDoc} -${FactorVariantSummaryFieldsFragmentDoc}`; +${FactorVariantSummaryFieldsFragmentDoc} +${FusionVariantSummaryFieldsFragmentDoc}`; export const ActivityCardDocument = gql` query ActivityCard($activityId: Int!) { activity(id: $activityId) { diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 9ab667ab5..198adde74 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -1826,6 +1826,12 @@ type Contribution { count: Int! } +enum CoordinateType { + FIVE_PRIME_FUSION_COORDINATE + GENE_VARIANT_COORDINATE + THREE_PRIME_FUSION_COORDINATE +} + type Country { id: Int! iso: String! @@ -3883,19 +3889,6 @@ type FieldValidationError { fieldName: String! } -type FivePrimeFusionVariantCoordinate { - chromosome: String - endExon: Int - ensemblVersion: Int - exonBoundary: Int - exonOffset: Int - id: Int! - referenceBuild: ReferenceBuild - representativeTranscript: String - start: Int - stop: Int -} - type Flag implements Commentable & EventOriginObject & EventSubject { """ List and filter comments. @@ -4546,7 +4539,7 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F sortBy: DateSort ): EventConnection! feature: Feature! - fivePrimeCoordinates: FivePrimeFusionVariantCoordinate + fivePrimeCoordinates: FusionVariantCoordinate flagged: Boolean! """ @@ -4593,6 +4586,7 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F """ state: FlagState ): FlagConnection! + fusion: Fusion! hgvsDescriptions: [String!]! id: Int! lastAcceptedRevisionEvent: Event @@ -4673,9 +4667,24 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F ): RevisionConnection! singleVariantMolecularProfile: MolecularProfile! singleVariantMolecularProfileId: Int! - threePrimeCoordinates: ThreePrimeFusionVariantCoordinate + threePrimeCoordinates: FusionVariantCoordinate variantAliases: [String!]! variantTypes: [VariantType!]! + viccCompliantName: String! +} + +type FusionVariantCoordinate { + chromosome: String + coordinateType: CoordinateType! + ensemblVersion: Int + exonBoundary: Int + exonOffset: Int + exonOffsetDirection: FusionOffsetDirection + id: Int! + referenceBuild: ReferenceBuild + representativeTranscript: String + start: Int + stop: Int } """ @@ -5229,6 +5238,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla type GeneVariantCoordinate { chromosome: String + coordinateType: CoordinateType! ensemblVersion: Int id: Int! referenceBases: String @@ -10356,19 +10366,6 @@ enum TherapySortColumns { NCIT_ID } -type ThreePrimeFusionVariantCoordinate { - chromosome: String - ensemblVersion: Int - exonBoundary: Int - exonOffset: Int - id: Int! - referenceBuild: ReferenceBuild - representativeTranscript: String - start: Int - startExon: Int - stop: Int -} - type TimePointCounts { allTime: Int! newThisMonth: Int! diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index b0748a64b..1a44f1e99 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -9282,6 +9282,35 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "CoordinateType", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GENE_VARIANT_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIVE_PRIME_FUSION_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "THREE_PRIME_FUSION_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Country", @@ -18477,141 +18506,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "FivePrimeFusionVariantCoordinate", - "description": null, - "fields": [ - { - "name": "chromosome", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "endExon", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ensemblVersion", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exonBoundary", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exonOffset", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBuild", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "representativeTranscript", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "Flag", @@ -21266,7 +21160,7 @@ "args": [], "type": { "kind": "OBJECT", - "name": "FivePrimeFusionVariantCoordinate", + "name": "FusionVariantCoordinate", "ofType": null }, "isDeprecated": false, @@ -21401,6 +21295,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "fusion", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "hgvsDescriptions", "description": null, @@ -21737,7 +21647,7 @@ "args": [], "type": { "kind": "OBJECT", - "name": "ThreePrimeFusionVariantCoordinate", + "name": "FusionVariantCoordinate", "ofType": null }, "isDeprecated": false, @@ -21790,6 +21700,22 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "viccCompliantName", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -21833,6 +21759,157 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "FusionVariantCoordinate", + "description": null, + "fields": [ + { + "name": "chromosome", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "coordinateType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CoordinateType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ensemblVersion", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "exonBoundary", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "exonOffset", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "exonOffsetDirection", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "FusionOffsetDirection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "representativeTranscript", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "FusionVariantInput", @@ -24136,6 +24213,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "coordinateType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CoordinateType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "ensemblVersion", "description": null, @@ -47007,141 +47100,6 @@ ], "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "ThreePrimeFusionVariantCoordinate", - "description": null, - "fields": [ - { - "name": "chromosome", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ensemblVersion", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exonBoundary", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exonOffset", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBuild", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "representativeTranscript", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startExon", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "TimePointCounts", diff --git a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.module.ts b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.module.ts index 1a4e28cd6..7f95c98a3 100644 --- a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.module.ts +++ b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.module.ts @@ -22,6 +22,7 @@ import { CvcMolecularProfileTagNameModule } from '@app/components/molecular-prof import { CvcEmptyValueModule } from '@app/forms/components/empty-value/empty-value.module' import { CvcMolecularProfileGeneVariantCardModule } from '@app/components/molecular-profiles/molecular-profile-gene-variant-card/molecular-profile-gene-variant-card.module' import { CvcMolecularProfileFactorVariantCardComponent } from '@app/components/molecular-profiles/molecular-profile-factor-variant-card/molecular-profile-factor-variant-card.component' +import { CvcMolecularProfileFusionVariantCardModule } from '@app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.module' @NgModule({ declarations: [MolecularProfilesSummaryPage], @@ -49,6 +50,7 @@ import { CvcMolecularProfileFactorVariantCardComponent } from '@app/components/m CvcMolecularProfileTagNameModule, CvcMolecularProfileGeneVariantCardModule, CvcMolecularProfileFactorVariantCardComponent, + CvcMolecularProfileFusionVariantCardModule, ], exports: [MolecularProfilesSummaryPage], }) diff --git a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.page.html b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.page.html index 31f55fc13..3d8dbe568 100644 --- a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.page.html +++ b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.page.html @@ -131,20 +131,29 @@ - - @switch(v.__typename) { - - @case('GeneVariant') { - + @switch (v.__typename) { + @case ('GeneVariant') { + + } + @case ('FusionVariant') { + + } + @case ('FactorVariant') { + + } } - - @case('FactorVariant') { - - } } diff --git a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.query.gql b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.query.gql index 6229fed4e..ed1108252 100644 --- a/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.query.gql +++ b/client/src/app/views/molecular-profiles/molecular-profiles-detail/molecular-profiles-summary/molecular-profiles-summary.query.gql @@ -93,6 +93,9 @@ fragment VariantMolecularProfileCardFields on VariantInterface { ... on FactorVariant { ... FactorVariantSummaryFields } + ... on FusionVariant { + ... FusionVariantSummaryFields + } variantAliases variantTypes { id diff --git a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.module.ts b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.module.ts index 4ec5f3fdc..fc42c2094 100644 --- a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.module.ts +++ b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.module.ts @@ -4,6 +4,7 @@ import { CvcGeneVariantSummaryComponent } from '@app/components/variants/gene-va import { CvcFactorVariantSummaryComponent } from '@app/components/variants/factor-variant-summary/factor-variant-summary.page' import { PushPipe } from '@ngrx/component' import { CommonModule } from '@angular/common' +import { CvcFusionVariantSummaryComponent } from '@app/components/variants/fusion-variant-summary/fusion-variant-summary.page' @NgModule({ declarations: [VariantsSummaryPage], @@ -12,6 +13,7 @@ import { CommonModule } from '@angular/common' PushPipe, CvcGeneVariantSummaryComponent, CvcFactorVariantSummaryComponent, + CvcFusionVariantSummaryComponent, ], exports: [VariantsSummaryPage], }) diff --git a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.page.html b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.page.html index 1aa17af84..f8e0dea1e 100644 --- a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.page.html +++ b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.page.html @@ -7,5 +7,8 @@ } @case('FactorVariant') { + + } @case('FusionVariant') { + } } diff --git a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql index 2ae626d2a..9713da569 100644 --- a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql +++ b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql @@ -69,6 +69,9 @@ fragment VariantSummaryFields on VariantInterface { ... on FactorVariant { ... FactorVariantSummaryFields } + ... on FusionVariant { + ... FusionVariantSummaryFields + } } @@ -93,6 +96,50 @@ fragment GeneVariantSummaryFields on GeneVariant { } } +fragment FusionVariantSummaryFields on FusionVariant { + viccCompliantName + hgvsDescriptions + clinvarIds + fusion { + fivePrimePartnerStatus + fivePrimeGene { + id + name + link + deprecated + flagged + } + threePrimePartnerStatus + threePrimeGene { + id + name + link + deprecated + flagged + } + } + fivePrimeCoordinates { + ...FusionCoordinateFields + } + threePrimeCoordinates { + ...FusionCoordinateFields + } +} + +fragment FusionCoordinateFields on FusionVariantCoordinate { + id + representativeTranscript + referenceBuild + ensemblVersion + exonOffset + exonBoundary + chromosome + start + stop + coordinateType + exonOffsetDirection +} + fragment MyVariantInfoFields on MyVariantInfo { myVariantInfoId caddConsequence diff --git a/server/app/graphql/types/entities/coordinate_type_type.rb b/server/app/graphql/types/entities/coordinate_type_type.rb new file mode 100644 index 000000000..053588dfb --- /dev/null +++ b/server/app/graphql/types/entities/coordinate_type_type.rb @@ -0,0 +1,7 @@ +module Types::Entities + class CoordinateTypeType < Types::BaseEnum + Constants::VALID_COORDINATE_TYPES.each do |ct| + value ct.upcase.gsub(" ", "_"), value: ct + end + end +end diff --git a/server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb b/server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb deleted file mode 100644 index 8516c0a16..000000000 --- a/server/app/graphql/types/entities/five_prime_fusion_variant_coordinate_type.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Types::Entities - class FivePrimeFusionVariantCoordinateType < Types::Entities::FusionVariantCoordinateType - field :end_exon, Int, null: true - - def end_exon - object.exon_boundary - end - end -end diff --git a/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb b/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb index 06015352c..15bc8c395 100644 --- a/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb +++ b/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb @@ -6,8 +6,10 @@ class FusionVariantCoordinateType < Types::BaseObject field :ensembl_version, Int, null: true field :exon_offset, Int, null: true field :exon_boundary, Int, null: true + field :exon_offset_direction, Types::Fusion::FusionOffsetDirection, null: true field :chromosome, String, null: true field :start, Int, null: true field :stop, Int, null: true + field :coordinate_type, Types::Entities::CoordinateTypeType, null: false end end diff --git a/server/app/graphql/types/entities/gene_variant_coordinate_type.rb b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb index 61aed524e..1b019156a 100644 --- a/server/app/graphql/types/entities/gene_variant_coordinate_type.rb +++ b/server/app/graphql/types/entities/gene_variant_coordinate_type.rb @@ -9,5 +9,6 @@ class GeneVariantCoordinateType < Types::BaseObject field :ensembl_version, Int, null: true field :reference_bases, String, null: true field :variant_bases, String, null: true + field :coordinate_type, Types::Entities::CoordinateTypeType, null: false end end diff --git a/server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb b/server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb deleted file mode 100644 index 1278ba0d3..000000000 --- a/server/app/graphql/types/entities/three_prime_fusion_variant_coordinate_type.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Types::Entities - class ThreePrimeFusionVariantCoordinateType < Types::Entities::FusionVariantCoordinateType - field :start_exon, Int, null: true - - def start_exon - object.exon_boundary - end - end -end diff --git a/server/app/graphql/types/variants/fusion_variant_type.rb b/server/app/graphql/types/variants/fusion_variant_type.rb index 47fe8c3dc..43851f7c2 100644 --- a/server/app/graphql/types/variants/fusion_variant_type.rb +++ b/server/app/graphql/types/variants/fusion_variant_type.rb @@ -1,10 +1,12 @@ module Types::Variants class FusionVariantType < Types::Entities::VariantType - field :five_prime_coordinates, Types::Entities::FivePrimeFusionVariantCoordinateType, null: true - field :three_prime_coordinates, Types::Entities::ThreePrimeFusionVariantCoordinateType, null: true + field :five_prime_coordinates, Types::Entities::FusionVariantCoordinateType, null: true + field :three_prime_coordinates, Types::Entities::FusionVariantCoordinateType, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false + field :vicc_compliant_name, String, null: false + field :fusion, "Types::Entities::FusionType", null: false def five_prime_coordinates Loaders::AssociationLoader.for(Variants::FusionVariant, :five_prime_coordinates).load(object) @@ -14,6 +16,10 @@ def three_prime_coordinates Loaders::AssociationLoader.for(Variants::FusionVariant, :three_prime_coordinates).load(object) end + def fusion + Loaders::AssociationLoader.for(Variants::FusionVariant, :fusion).load(object) + end + def clinvar_ids Loaders::AssociationLoader.for(Variant, :clinvar_entries).load(object).then do |clinvar_entries| clinvar_entries.map(&:clinvar_id) diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index a6f4c22ba..f593b63b0 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,7 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :coordinates, Types::Entities::GeneVariantCoordinateType, null: false + field :coordinates, Types::Entities::GeneVariantCoordinateType, null: true field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false From a18282d32a5e4eefe1edf23bb8c5d26065d79532 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Tue, 9 Jul 2024 14:46:49 -0500 Subject: [PATCH 19/56] fusions menu on gene feature pages --- .../fusions-menu/fusions-menu.component.html | 62 ++++ .../fusions-menu/fusions-menu.component.less | 24 ++ .../fusions-menu/fusions-menu.component.ts | 107 +++++++ .../fusions/fusions-menu/fusions-menu.gql | 37 +++ .../fusions-menu/fusions-menu.module.ts | 41 +++ .../utilities/gene-variant-to-model-fields.ts | 16 +- .../src/app/generated/civic.apollo-helpers.ts | 24 +- client/src/app/generated/civic.apollo.ts | 121 +++++++- client/src/app/generated/server.model.graphql | 87 +++++- client/src/app/generated/server.schema.json | 273 +++++++++++++++++- .../features-summary.module.ts | 2 + .../features-summary.page.html | 17 +- .../variants-revisions.page.ts | 2 +- .../graphql/resolvers/top_level_fusions.rb | 29 ++ .../app/graphql/resolvers/top_level_genes.rb | 8 +- server/app/graphql/types/query_type.rb | 1 + 16 files changed, 816 insertions(+), 35 deletions(-) create mode 100644 client/src/app/components/fusions/fusions-menu/fusions-menu.component.html create mode 100644 client/src/app/components/fusions/fusions-menu/fusions-menu.component.less create mode 100644 client/src/app/components/fusions/fusions-menu/fusions-menu.component.ts create mode 100644 client/src/app/components/fusions/fusions-menu/fusions-menu.gql create mode 100644 client/src/app/components/fusions/fusions-menu/fusions-menu.module.ts create mode 100644 server/app/graphql/resolvers/top_level_fusions.rb diff --git a/client/src/app/components/fusions/fusions-menu/fusions-menu.component.html b/client/src/app/components/fusions/fusions-menu/fusions-menu.component.html new file mode 100644 index 000000000..108c5675b --- /dev/null +++ b/client/src/app/components/fusions/fusions-menu/fusions-menu.component.html @@ -0,0 +1,62 @@ + + + + + + {{ total }} Total + ({{ fusions.length }} displayed) + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/client/src/app/components/fusions/fusions-menu/fusions-menu.component.less b/client/src/app/components/fusions/fusions-menu/fusions-menu.component.less new file mode 100644 index 000000000..a8503e5b3 --- /dev/null +++ b/client/src/app/components/fusions/fusions-menu/fusions-menu.component.less @@ -0,0 +1,24 @@ +@import "themes/global-variables.less"; + +:host { + display: block; +} + +#variant-filters { + // need to specify a width to the filters form, or the name filter + // input will change its width depending on if its nameInputClearTpl is displayed + // displayed + #name-filter-group { + width: 175px; + } + // all form items get a right margin which creates an unsightly gap on the right :( + // so we remove that here + nz-form-item:last-child { + margin-right: 0; + } +} + +#load-more-btn { + // apply the same margin to the button row as the card margin + margin-top: @default-padding-sm; +} diff --git a/client/src/app/components/fusions/fusions-menu/fusions-menu.component.ts b/client/src/app/components/fusions/fusions-menu/fusions-menu.component.ts new file mode 100644 index 000000000..4b3cde51f --- /dev/null +++ b/client/src/app/components/fusions/fusions-menu/fusions-menu.component.ts @@ -0,0 +1,107 @@ +import { Component, Input, OnInit } from '@angular/core' +import { + Maybe, + PageInfo, + MenuFusionFragment, + FusionMenuQuery, + FusionConnection, + FusionMenuQueryVariables, + FusionMenuGQL, +} from '@app/generated/civic.apollo' +import { map, debounceTime, filter, startWith } from 'rxjs/operators' +import { Observable, Subject } from 'rxjs' +import { QueryRef } from 'apollo-angular' +import { ApolloQueryResult } from '@apollo/client/core' +import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' +import { isNonNulled } from 'rxjs-etc' + +@UntilDestroy() +@Component({ + selector: 'cvc-fusions-menu', + templateUrl: './fusions-menu.component.html', + styleUrls: ['./fusions-menu.component.less'], +}) +export class CvcFusionsMenuComponent implements OnInit { + @Input() geneId?: number + + menuFusions$?: Observable[]> + totalFusions$?: Observable + queryRef$!: QueryRef + pageInfo$?: Observable + loading$?: Observable + + mpNameFilter: Maybe + + private debouncedQuery = new Subject() + private result$!: Observable> + connection$!: Observable + private initialQueryVars!: FusionMenuQueryVariables + pageSize = 50 + + constructor(private gql: FusionMenuGQL) {} + + ngOnInit() { + if (this.geneId === undefined) { + throw new Error('Must pass a gene id into fusion menu component.') + } + + this.initialQueryVars = { + genePartnerId: this.geneId, + first: this.pageSize, + } + + this.queryRef$ = this.gql.watch(this.initialQueryVars) + this.result$ = this.queryRef$.valueChanges + + this.loading$ = this.result$.pipe( + map(({ data, loading }) => loading && !data), + filter(isNonNulled), + startWith(true) + ) + + this.connection$ = this.result$.pipe( + map((r) => r.data?.fusions), + filter(isNonNulled) + ) as Observable + + this.pageInfo$ = this.connection$.pipe( + map((c) => c.pageInfo), + filter(isNonNulled) + ) + + this.menuFusions$ = this.connection$.pipe( + map((c) => c.edges.map((e) => e.node), filter(isNonNulled)) + ) + + this.totalFusions$ = this.connection$.pipe(map((c) => c.totalCount)) + + //this.debouncedQuery + // .pipe(debounceTime(500), untilDestroyed(this)) + // .subscribe((_) => this.refresh()) + } + + //onModelUpdated() { + // this.debouncedQuery.next() + //} + + //refresh() { + // if (this.geneId === undefined) { + // throw new Error( + // 'Must pass a gene id into molecular profile menu component.' + // ) + // } + // this.queryRef$.refetch({ + // genePartnerId: this.geneId, + // first: this.pageSize, + // }) + //} + + fetchMore(endCursor: string) { + this.queryRef$.fetchMore({ + variables: { + first: this.pageSize, + after: endCursor, + }, + }) + } +} diff --git a/client/src/app/components/fusions/fusions-menu/fusions-menu.gql b/client/src/app/components/fusions/fusions-menu/fusions-menu.gql new file mode 100644 index 000000000..0e8cfba8d --- /dev/null +++ b/client/src/app/components/fusions/fusions-menu/fusions-menu.gql @@ -0,0 +1,37 @@ +query FusionMenu( + $genePartnerId: Int + $first: Int + $last: Int + $before: String + $after: String +) { + fusions( + genePartnerId: $genePartnerId + first: $first + last: $last + before: $before + after: $after + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuFusion + } + } + } +} + +fragment menuFusion on Fusion { + id + name + link + flagged + deprecated +} diff --git a/client/src/app/components/fusions/fusions-menu/fusions-menu.module.ts b/client/src/app/components/fusions/fusions-menu/fusions-menu.module.ts new file mode 100644 index 000000000..e8807c2b2 --- /dev/null +++ b/client/src/app/components/fusions/fusions-menu/fusions-menu.module.ts @@ -0,0 +1,41 @@ +import { CommonModule } from '@angular/common' +import { NgModule } from '@angular/core' +import { FormsModule } from '@angular/forms' +import { CvcTagListModule } from '@app/components/shared/tag-list/tag-list.module' +import { CvcPipesModule } from '@app/core/pipes/pipes.module' +import { LetDirective, PushPipe } from '@ngrx/component' +import { NzButtonModule } from 'ng-zorro-antd/button' +import { NzCardModule } from 'ng-zorro-antd/card' +import { NzFormModule } from 'ng-zorro-antd/form' +import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzIconModule } from 'ng-zorro-antd/icon' +import { NzInputModule } from 'ng-zorro-antd/input' +import { NzSelectModule } from 'ng-zorro-antd/select' +import { NzTypographyModule } from 'ng-zorro-antd/typography' +import { NzSpinModule } from 'ng-zorro-antd/spin' +import { CvcFusionsMenuComponent } from './fusions-menu.component' +import { CvcFeatureTagModule } from '@app/components/features/feature-tag/feature-tag.module' + +@NgModule({ + declarations: [CvcFusionsMenuComponent], + imports: [ + CommonModule, + FormsModule, + LetDirective, + PushPipe, + NzButtonModule, + NzGridModule, + NzCardModule, + NzIconModule, + NzFormModule, + NzInputModule, + NzSelectModule, + NzSpinModule, + NzTypographyModule, + CvcPipesModule, + CvcFeatureTagModule, + CvcTagListModule, + ], + exports: [CvcFusionsMenuComponent], +}) +export class CvcFusionsMenuModule {} diff --git a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts index 8af6693ef..1c621d931 100644 --- a/client/src/app/forms/utilities/gene-variant-to-model-fields.ts +++ b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts @@ -17,14 +17,14 @@ export function geneVariantToModelFields( hgvsDescriptions: variant.hgvsDescriptions, clinvarIds: variant.clinvarIds, variantTypeIds: variant.variantTypes.map((vt) => vt.id), - referenceBuild: variant.coordinates.referenceBuild, - ensemblVersion: variant.coordinates.ensemblVersion, - chromosome: variant.coordinates.chromosome, - start: variant.coordinates.start, - stop: variant.coordinates.stop, - referenceBases: variant.coordinates.referenceBases, - variantBases: variant.coordinates.variantBases, - representativeTranscript: variant.coordinates.representativeTranscript, + referenceBuild: variant.coordinates?.referenceBuild, + ensemblVersion: variant.coordinates?.ensemblVersion, + chromosome: variant.coordinates?.chromosome, + start: variant.coordinates?.start, + stop: variant.coordinates?.stop, + referenceBases: variant.coordinates?.referenceBases, + variantBases: variant.coordinates?.variantBases, + representativeTranscript: variant.coordinates?.representativeTranscript, featureId: variant.feature.id, } } diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index e9d5c343e..e0391b7e0 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -1008,6 +1008,19 @@ export type FusionFieldPolicy = { threePrimePartnerStatus?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction }; +export type FusionConnectionKeySpecifier = ('edges' | 'nodes' | 'pageCount' | 'pageInfo' | 'totalCount' | FusionConnectionKeySpecifier)[]; +export type FusionConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + nodes?: FieldPolicy | FieldReadFunction, + pageCount?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type FusionEdgeKeySpecifier = ('cursor' | 'node' | FusionEdgeKeySpecifier)[]; +export type FusionEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; export type FusionVariantKeySpecifier = ('clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'flagged' | 'flags' | 'fusion' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'variantAliases' | 'variantTypes' | 'viccCompliantName' | FusionVariantKeySpecifier)[]; export type FusionVariantFieldPolicy = { clinvarIds?: FieldPolicy | FieldReadFunction, @@ -1628,7 +1641,7 @@ export type PhenotypePopoverFieldPolicy = { name?: FieldPolicy | FieldReadFunction, url?: FieldPolicy | FieldReadFunction }; -export type QueryKeySpecifier = ('acmgCode' | 'acmgCodesTypeahead' | 'activities' | 'activity' | 'assertion' | 'assertions' | 'browseDiseases' | 'browseFeatures' | 'browseMolecularProfiles' | 'browseSources' | 'browseVariantGroups' | 'browseVariants' | 'clingenCode' | 'clingenCodesTypeahead' | 'clinicalTrial' | 'clinicalTrials' | 'comment' | 'comments' | 'contributors' | 'countries' | 'dataReleases' | 'disease' | 'diseasePopover' | 'diseaseTypeahead' | 'entityTypeahead' | 'events' | 'evidenceItem' | 'evidenceItems' | 'feature' | 'featureTypeahead' | 'flag' | 'flags' | 'gene' | 'genes' | 'molecularProfile' | 'molecularProfiles' | 'nccnGuideline' | 'nccnGuidelinesTypeahead' | 'notifications' | 'organization' | 'organizationLeaderboards' | 'organizations' | 'phenotype' | 'phenotypePopover' | 'phenotypeTypeahead' | 'phenotypes' | 'previewCommentText' | 'previewMolecularProfileName' | 'remoteCitation' | 'revision' | 'revisions' | 'search' | 'searchByPermalink' | 'searchGenes' | 'source' | 'sourcePopover' | 'sourceSuggestionValues' | 'sourceSuggestions' | 'sourceTypeahead' | 'subscriptionForEntity' | 'therapies' | 'therapy' | 'therapyPopover' | 'therapyTypeahead' | 'timepointStats' | 'user' | 'userLeaderboards' | 'userTypeahead' | 'users' | 'validateRevisionsForAcceptance' | 'variant' | 'variantGroup' | 'variantGroups' | 'variantType' | 'variantTypePopover' | 'variantTypeTypeahead' | 'variantTypes' | 'variants' | 'variantsTypeahead' | 'viewer' | QueryKeySpecifier)[]; +export type QueryKeySpecifier = ('acmgCode' | 'acmgCodesTypeahead' | 'activities' | 'activity' | 'assertion' | 'assertions' | 'browseDiseases' | 'browseFeatures' | 'browseMolecularProfiles' | 'browseSources' | 'browseVariantGroups' | 'browseVariants' | 'clingenCode' | 'clingenCodesTypeahead' | 'clinicalTrial' | 'clinicalTrials' | 'comment' | 'comments' | 'contributors' | 'countries' | 'dataReleases' | 'disease' | 'diseasePopover' | 'diseaseTypeahead' | 'entityTypeahead' | 'events' | 'evidenceItem' | 'evidenceItems' | 'feature' | 'featureTypeahead' | 'flag' | 'flags' | 'fusions' | 'gene' | 'genes' | 'molecularProfile' | 'molecularProfiles' | 'nccnGuideline' | 'nccnGuidelinesTypeahead' | 'notifications' | 'organization' | 'organizationLeaderboards' | 'organizations' | 'phenotype' | 'phenotypePopover' | 'phenotypeTypeahead' | 'phenotypes' | 'previewCommentText' | 'previewMolecularProfileName' | 'remoteCitation' | 'revision' | 'revisions' | 'search' | 'searchByPermalink' | 'searchGenes' | 'source' | 'sourcePopover' | 'sourceSuggestionValues' | 'sourceSuggestions' | 'sourceTypeahead' | 'subscriptionForEntity' | 'therapies' | 'therapy' | 'therapyPopover' | 'therapyTypeahead' | 'timepointStats' | 'user' | 'userLeaderboards' | 'userTypeahead' | 'users' | 'validateRevisionsForAcceptance' | 'variant' | 'variantGroup' | 'variantGroups' | 'variantType' | 'variantTypePopover' | 'variantTypeTypeahead' | 'variantTypes' | 'variants' | 'variantsTypeahead' | 'viewer' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { acmgCode?: FieldPolicy | FieldReadFunction, acmgCodesTypeahead?: FieldPolicy | FieldReadFunction, @@ -1662,6 +1675,7 @@ export type QueryFieldPolicy = { featureTypeahead?: FieldPolicy | FieldReadFunction, flag?: FieldPolicy | FieldReadFunction, flags?: FieldPolicy | FieldReadFunction, + fusions?: FieldPolicy | FieldReadFunction, gene?: FieldPolicy | FieldReadFunction, genes?: FieldPolicy | FieldReadFunction, molecularProfile?: FieldPolicy | FieldReadFunction, @@ -2732,6 +2746,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | FusionKeySpecifier | (() => undefined | FusionKeySpecifier), fields?: FusionFieldPolicy, }, + FusionConnection?: Omit & { + keyFields?: false | FusionConnectionKeySpecifier | (() => undefined | FusionConnectionKeySpecifier), + fields?: FusionConnectionFieldPolicy, + }, + FusionEdge?: Omit & { + keyFields?: false | FusionEdgeKeySpecifier | (() => undefined | FusionEdgeKeySpecifier), + fields?: FusionEdgeFieldPolicy, + }, FusionVariant?: Omit & { keyFields?: false | FusionVariantKeySpecifier | (() => undefined | FusionVariantKeySpecifier), fields?: FusionVariantFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index d94000724..2e7e915ba 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2599,6 +2599,30 @@ export type FusionVariantsArgs = { name?: InputMaybe; }; +/** The connection type for Fusion. */ +export type FusionConnection = { + __typename: 'FusionConnection'; + /** A list of edges. */ + edges: Array; + /** A list of nodes. */ + nodes: Array; + /** Total number of pages, based on filtered count and pagesize. */ + pageCount: Scalars['Int']; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** The total number of records in this filtered collection. */ + totalCount: Scalars['Int']; +}; + +/** An edge in a connection. */ +export type FusionEdge = { + __typename: 'FusionEdge'; + /** A cursor for use in pagination. */ + cursor: Scalars['String']; + /** The item at the end of the edge. */ + node?: Maybe; +}; + export enum FusionOffsetDirection { Negative = 'NEGATIVE', Positive = 'POSITIVE' @@ -2889,7 +2913,7 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; - coordinates: GeneVariantCoordinate; + coordinates?: Maybe; creationActivity?: Maybe; deprecated: Scalars['Boolean']; deprecationActivity?: Maybe; @@ -4374,6 +4398,8 @@ export type Query = { flag?: Maybe; /** List and filter flags. */ flags: FlagConnection; + /** List and filter fusions. */ + fusions: FusionConnection; /** Find a single gene by CIViC ID or Entrez symbol */ gene?: Maybe; /** List and filter genes. */ @@ -4766,6 +4792,17 @@ export type QueryFlagsArgs = { }; +export type QueryFusionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + entrezIds?: InputMaybe>; + entrezSymbols?: InputMaybe>; + first?: InputMaybe; + genePartnerId?: InputMaybe; + last?: InputMaybe; +}; + + export type QueryGeneArgs = { entrezSymbol?: InputMaybe; id?: InputMaybe; @@ -7325,6 +7362,19 @@ export type FlagPopoverQuery = { __typename: 'Query', flag?: { __typename: 'Flag export type FlagPopoverFragment = { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'BrowseFeature', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } }; +export type FusionMenuQueryVariables = Exact<{ + genePartnerId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type FusionMenuQuery = { __typename: 'Query', fusions: { __typename: 'FusionConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean }, edges: Array<{ __typename: 'FusionEdge', cursor: string, node?: { __typename: 'Fusion', id: number, name: string, link: string, flagged: boolean, deprecated: boolean } | undefined }> } }; + +export type MenuFusionFragment = { __typename: 'Fusion', id: number, name: string, link: string, flagged: boolean, deprecated: boolean }; + export type QuicksearchQueryVariables = Exact<{ query: Scalars['String']; types?: InputMaybe | SearchableEntities>; @@ -7769,13 +7819,13 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; @@ -8144,9 +8194,9 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined }; export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }; @@ -8713,9 +8763,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8729,7 +8779,7 @@ type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'F type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8920,13 +8970,13 @@ export type CoordinateIdsForVariantQueryVariables = Exact<{ }>; -export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant' } | { __typename: 'GeneVariant', coordinates: { __typename: 'GeneVariantCoordinate', id: number } } | { __typename: 'Variant' } | undefined }; +export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant' } | { __typename: 'GeneVariant', coordinates?: { __typename: 'GeneVariantCoordinate', id: number } | undefined } | { __typename: 'Variant' } | undefined }; type VariantCoordinateIds_FactorVariant_Fragment = { __typename: 'FactorVariant' }; type VariantCoordinateIds_FusionVariant_Fragment = { __typename: 'FusionVariant' }; -type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates: { __typename: 'GeneVariantCoordinate', id: number } }; +type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates?: { __typename: 'GeneVariantCoordinate', id: number } | undefined }; type VariantCoordinateIds_Variant_Fragment = { __typename: 'Variant' }; @@ -8937,13 +8987,13 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -8951,7 +9001,7 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; @@ -9596,6 +9646,15 @@ export const FlagPopoverFragmentDoc = gql` } } ${ParsedCommentFragmentFragmentDoc}`; +export const MenuFusionFragmentDoc = gql` + fragment menuFusion on Fusion { + id + name + link + flagged + deprecated +} + `; export const QuicksearchResultFragmentDoc = gql` fragment QuicksearchResult on SearchResult { id @@ -12495,6 +12554,42 @@ export const FlagPopoverDocument = gql` export class FlagPopoverGQL extends Apollo.Query { document = FlagPopoverDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const FusionMenuDocument = gql` + query FusionMenu($genePartnerId: Int, $first: Int, $last: Int, $before: String, $after: String) { + fusions( + genePartnerId: $genePartnerId + first: $first + last: $last + before: $before + after: $after + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuFusion + } + } + } +} + ${MenuFusionFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class FusionMenuGQL extends Apollo.Query { + document = FusionMenuDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 198adde74..3495b5145 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4423,6 +4423,51 @@ type Fusion implements Commentable & EventOriginObject & EventSubject & Flaggabl ): VariantConnection! } +""" +The connection type for Fusion. +""" +type FusionConnection { + """ + A list of edges. + """ + edges: [FusionEdge!]! + + """ + A list of nodes. + """ + nodes: [Fusion!]! + + """ + Total number of pages, based on filtered count and pagesize. + """ + pageCount: Int! + + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + + """ + The total number of records in this filtered collection. + """ + totalCount: Int! +} + +""" +An edge in a connection. +""" +type FusionEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Fusion +} + enum FusionOffsetDirection { NEGATIVE POSITIVE @@ -5064,7 +5109,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ sortBy: DateSort ): CommentConnection! - coordinates: GeneVariantCoordinate! + coordinates: GeneVariantCoordinate creationActivity: CreateVariantActivity deprecated: Boolean! deprecationActivity: DeprecateVariantActivity @@ -7992,6 +8037,46 @@ type Query { state: FlagState ): FlagConnection! + """ + List and filter fusions. + """ + fusions( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + List of Entrez Gene IDs to return results for + """ + entrezIds: [Int!] + + """ + List of Entrez Gene symbols to return results for + """ + entrezSymbols: [String!] + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + CIViC ID of one of the Gene partners + """ + genePartnerId: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): FusionConnection! + """ Find a single gene by CIViC ID or Entrez symbol """ diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 1a44f1e99..1c10ebcfd 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -20728,6 +20728,152 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "FusionConnection", + "description": "The connection type for Fusion.", + "fields": [ + { + "name": "edges", + "description": "A list of edges.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "FusionEdge", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nodes", + "description": "A list of nodes.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pageCount", + "description": "Total number of pages, based on filtered count and pagesize.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pageInfo", + "description": "Information to aid in pagination.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalCount", + "description": "The total number of records in this filtered collection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "FusionEdge", + "description": "An edge in a connection.", + "fields": [ + { + "name": "cursor", + "description": "A cursor for use in pagination.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "node", + "description": "The item at the end of the edge.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "FusionOffsetDirection", @@ -23419,13 +23565,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "GeneVariantCoordinate", - "ofType": null - } + "kind": "OBJECT", + "name": "GeneVariantCoordinate", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -36787,6 +36929,123 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "fusions", + "description": "List and filter fusions.", + "args": [ + { + "name": "genePartnerId", + "description": "CIViC ID of one of the Gene partners", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entrezSymbols", + "description": "List of Entrez Gene symbols to return results for", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "entrezIds", + "description": "List of Entrez Gene IDs to return results for", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "FusionConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "gene", "description": "Find a single gene by CIViC ID or Entrez symbol", diff --git a/client/src/app/views/features/features-detail/features-summary/features-summary.module.ts b/client/src/app/views/features/features-detail/features-summary/features-summary.module.ts index 555522b11..27955d8b1 100644 --- a/client/src/app/views/features/features-detail/features-summary/features-summary.module.ts +++ b/client/src/app/views/features/features-detail/features-summary/features-summary.module.ts @@ -20,6 +20,7 @@ import { CvcMolecularProfilesMenuModule } from '@app/components/molecular-profil import { GenesSummaryModule } from '@app/components/genes/genes-summary/genes-summary.module' import { FactorSummaryComponent } from '@app/components/factors/factor-summary/factor-summary.page' import { FusionSummaryComponent } from '@app/components/fusions/fusion-summary/fusion-summary.page' +import { CvcFusionsMenuModule } from '@app/components/fusions/fusions-menu/fusions-menu.module' @NgModule({ declarations: [FeaturesSummaryPage], @@ -46,6 +47,7 @@ import { FusionSummaryComponent } from '@app/components/fusions/fusion-summary/f GenesSummaryModule, FactorSummaryComponent, FusionSummaryComponent, + CvcFusionsMenuModule, ], exports: [FeaturesSummaryPage], }) diff --git a/client/src/app/views/features/features-detail/features-summary/features-summary.page.html b/client/src/app/views/features/features-detail/features-summary/features-summary.page.html index c99d7f179..450ed451f 100644 --- a/client/src/app/views/features/features-detail/features-summary/features-summary.page.html +++ b/client/src/app/views/features/features-detail/features-summary/features-summary.page.html @@ -26,12 +26,23 @@ - + + + - + + + + @if (feature.featureInstance.__typename == 'Gene') { + + + + + + } diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts index ad9d5258a..d4633f916 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts @@ -71,7 +71,7 @@ export class VariantsRevisionsPage implements OnDestroy, OnInit { } updateTabs(variant: VariantCoordinateIdsFragment) { - if (variant.__typename == 'GeneVariant') { + if (variant.__typename == 'GeneVariant' && variant.coordinates) { this.tabs.set([ ...this.tabs(), { diff --git a/server/app/graphql/resolvers/top_level_fusions.rb b/server/app/graphql/resolvers/top_level_fusions.rb new file mode 100644 index 000000000..407a745a3 --- /dev/null +++ b/server/app/graphql/resolvers/top_level_fusions.rb @@ -0,0 +1,29 @@ +require 'search_object/plugin/graphql' + +class Resolvers::TopLevelFusions < GraphQL::Schema::Resolver + include SearchObject.module(:graphql) + + type Types::Entities::FusionType.connection_type, null: false + + description 'List and filter fusions.' + + @@cols = Features::Fusion.column_names.map { |col| "fusions.#{col}" }.join(",") + + scope do + Features::Fusion.joins(feature: { variants: [:molecular_profiles ]}) + .where("variants.deprecated = 'f'") + .distinct + end + + option(:gene_partner_id, type: Int, description: 'CIViC ID of one of the Gene partners') do |scope, value| + scope.where('fusions.five_prime_gene_id = ? OR fusions.three_prime_gene_id = ?', value, value) + end + + option(:entrez_symbols, type: [GraphQL::Types::String], description: 'List of Entrez Gene symbols to return results for') do |scope, value| + scope.where('genes.name IN (?)', value.map(&:upcase)) + end + + option(:entrez_ids, type: [GraphQL::Types::Int], description: 'List of Entrez Gene IDs to return results for') do |scope, value| + scope.where('genes.entrez_id IN (?)', value) + end +end diff --git a/server/app/graphql/resolvers/top_level_genes.rb b/server/app/graphql/resolvers/top_level_genes.rb index 8e5774c18..143459329 100644 --- a/server/app/graphql/resolvers/top_level_genes.rb +++ b/server/app/graphql/resolvers/top_level_genes.rb @@ -7,7 +7,13 @@ class Resolvers::TopLevelGenes < GraphQL::Schema::Resolver description 'List and filter genes.' - scope { Features::Gene.joins(variants: [molecular_profiles: [:evidence_items]]).order('features.name ASC').where("evidence_items.status != 'rejected'").distinct } + scope do + Features::Gene.joins(feature: { variants: [molecular_profiles: [:evidence_items]]}) + .order('features.name ASC') + .where("evidence_items.status != 'rejected'") + .select("genes.*, features.name") + .distinct + end option(:entrez_symbols, type: [GraphQL::Types::String], description: 'List of Entrez Gene symbols to return results for') do |scope, value| scope.where('genes.name IN (?)', value.map(&:upcase)) diff --git a/server/app/graphql/types/query_type.rb b/server/app/graphql/types/query_type.rb index 2f39ac56d..4823fab04 100644 --- a/server/app/graphql/types/query_type.rb +++ b/server/app/graphql/types/query_type.rb @@ -171,6 +171,7 @@ def authorized?(object, args, context) end field :genes, resolver: Resolvers::TopLevelGenes + field :fusions, resolver: Resolvers::TopLevelFusions field :variants, resolver: Resolvers::TopLevelVariants, max_page_size: 300 field :variant_groups, resolver: Resolvers::TopLevelVariantGroups field :evidence_items, resolver: Resolvers::TopLevelEvidenceItems From bc28f04d968a020908a84804cce680bab701554b Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Thu, 18 Jul 2024 12:52:54 -0500 Subject: [PATCH 20/56] remove hardcoded login --- server/app/graphql/mutations/create_fusion_feature.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/app/graphql/mutations/create_fusion_feature.rb b/server/app/graphql/mutations/create_fusion_feature.rb index 021e5bdff..142422af1 100644 --- a/server/app/graphql/mutations/create_fusion_feature.rb +++ b/server/app/graphql/mutations/create_fusion_feature.rb @@ -14,8 +14,7 @@ class Mutations::CreateFusionFeature < Mutations::MutationWithOrg description: 'True if the feature was newly created. False if the returned feature was already in the database.' def ready?(organization_id: nil, five_prime_gene:, three_prime_gene:,**kwargs) - #validate_user_logged_in - context[:current_user] = User.first + validate_user_logged_in validate_user_org(organization_id) #check that not both gene_ids are blank From 56f7a64d9c9780ce21759573b651f82f34f80393 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Fri, 19 Jul 2024 09:11:00 -0500 Subject: [PATCH 21/56] fix a couple of strings --- .../forms/config/factor-revise/factor-revise.form.html | 2 +- .../forms/config/variant-submit/variant-submit.form.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/src/app/forms/config/factor-revise/factor-revise.form.html b/client/src/app/forms/config/factor-revise/factor-revise.form.html index 87b408507..988d330cd 100644 --- a/client/src/app/forms/config/factor-revise/factor-revise.form.html +++ b/client/src/app/forms/config/factor-revise/factor-revise.form.html @@ -1,7 +1,7 @@ Revision(s) submitted! You will be redirected to the Revisions page or can diff --git a/client/src/app/forms/config/variant-submit/variant-submit.form.ts b/client/src/app/forms/config/variant-submit/variant-submit.form.ts index 8d1299c11..8d9c0df30 100644 --- a/client/src/app/forms/config/variant-submit/variant-submit.form.ts +++ b/client/src/app/forms/config/variant-submit/variant-submit.form.ts @@ -85,7 +85,9 @@ export class VariantSubmitForm { showExtra: false, }, hideLabel: true, - isNewlyCreatedCallback: (isNew: boolean): void => {this.newlyCreated = isNew}, + isNewlyCreatedCallback: (isNew: boolean): void => { + this.newlyCreated = isNew + }, }, }, ], @@ -133,7 +135,9 @@ export class VariantSubmitForm { console.error(err) } if (!variant) { - console.error(`MpFinderForm could not resolve its Variant from the cache`) + console.error( + `Variant submit form could not resolve its Variant from the cache` + ) return } return variant From bc315955fc9d295040ae18f1356bc6a1cae0bf88 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Fri, 26 Jul 2024 11:29:36 -0500 Subject: [PATCH 22/56] attempt to backfill new coordinate type --- .../fusions/port_fusion_coords.rb | 338 ++++++++++++++++++ 1 file changed, 338 insertions(+) create mode 100644 server/misc_scripts/fusions/port_fusion_coords.rb diff --git a/server/misc_scripts/fusions/port_fusion_coords.rb b/server/misc_scripts/fusions/port_fusion_coords.rb new file mode 100644 index 000000000..faa2892dd --- /dev/null +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -0,0 +1,338 @@ +#run after backfill variant coords +require 'net/http' +require 'json' +require 'uri' + +def create_exon_coords(variant, relation_name, coordinate_type, exon) + if variant.send(relation_name).present? + return + end + + strand = if exon['strand'] == -1 + 'negative' + else + 'positive' + end + + transcript_name = if coordinate_type =~ /Five Prime/ + :representative_transcript + else + :representative_transcript2 + end + + coord = ExonCoordinate.new( + chromosome: exon['seq_region_name'], + exon: exon['rank'], + strand: strand, + start: exon['start'], + stop: exon['end'], + ensembl_id: exon['id'], + ensembl_version: variant.ensembl_version, + representative_transcript: variant.send(transcript_name), + reference_build: variant.reference_build, + coordinate_type: coordinate_type + ) + + rel = "#{relation_name}=" + variant.send(rel, coord) +rescue => e + binding.pry +end + +fusion_variants = VariantType.where(name: 'transcript_fusion').first.variants.where(deprecated: false).all +missense_variants = VariantType.where(name: ['missense_variant', 'deletion', 'insertion', 'transcript_regulatory_region_fusion']).flat_map do |vt| + vt.variants.where(deprecated: false).all +end + +fusions = fusion_variants - missense_variants +suspected_mps = fusion_variants.to_a.intersection(missense_variants) + +suspected_mps_report = File.open("fusions_that_are_mps.tsv", 'w') +suspected_mps_report.puts [ + "id", + "current_name", + "link" +].join("\t") + +suspected_mps.each do |f| + suspected_mps_report.puts [ + f.id, + f.name, + "https://civicdb.org#{f.link}" + ].join("\t") +end + +matched_coordinates_report = File.open("matched_coordinates.tsv", 'w') +matched_coordinates_report.puts [ + "id", + "current_name", + "link", + "five_prime_end_exon", + "three_prime_start_exon" +].join("\t") + +puts("Fusion count: #{fusions.size}") +@cache = {} + +unmatched_coordinates_report = File.open("fusions.tsv", "w") + +header = [ + "id", + "current_name", + "link", + "error", + "warning" +] + +unmatched_coordinates_report.puts header.join("\t") + +def call_api(url) + if @cache.has_key?(url) + @cache[url] + else + resp = Scrapers::Util.make_get_request(url) + data = JSON.parse(resp) + @cache[url] = data + end +end + +#hgnc symbol? +# def get_ensembl_id(gene_symbol) +# key = "#{gene_symbol}:ensembl_id" +# url ="https://grch37.rest.ensembl.org/xrefs/symbol/human/#{gene_symbol}?object_type=gene;content-type=application/json" +# data = call_api(url, key) +# ensembl_candidates = data.select { |gene| gene["id"] =~ /^ENSG/ } +# if ensembl_candidates.size > 1 +# binding.irb +# raise StandardError.new("More than one match found for #{gene_symbol}") +# elsif ensembl_candidates.size == 0 +# raise StandardError.new("No matches found for #{gene_symbol}") +# end +# +# ensembl_candidates.first['id'] +# end + +# def get_exons_for_region(region) +# key = "#{region}::exons" +# url = "https://grch37.rest.ensembl.org/overlap/region/human/#{region}?feature=exon;content-type=application/json" +# data = call_api(url, key) +# data.sort_by { |exon| exon['start'] } +# end + +#exon vs cds? +def get_exons_for_ensembl_id(ensembl_id, variant, warning = nil) + t = ensembl_id.split('.').first + url = "https://grch37.rest.ensembl.org/overlap/id/#{ensembl_id}?content-type=application/json;feature=exon" + begin + data = call_api(url) + rescue StandardError => e + error_message = JSON.parse(e.message)['error'] + if error_message == "No object found for ID #{ensembl_id}" + t = ensembl_id.split('.').first + (data, err, warning) = get_exons_for_ensembl_id(t, variant, "Transcript ID Version not found in GRCh37: #{ensembl_id}") + if err + return [nil, err, warning] + end + elsif error_message == "ID '#{ensembl_id}' not found" + return [nil, "Transcript doesnt exist in GRCh37 at any version: #{ensembl_id}", warning] + else + binding.irb + return [nil, nil, warning] + end + end + [data.sort_by { |exon| exon['start'] }, nil, warning] +end + +#returns [val, err, warning] +def get_fusion_exon(transcript, position, position_type, variant) + (exons, err, warning) = get_exons_for_ensembl_id(transcript, variant) + + if exons.nil? + return [nil, err, warning] + end + t = transcript.split('.').first + e = exons.select{ |e| e['Parent'] == t && e[position_type] == position } + + if e.size > 1 + return [nil, "More than one exon match found", warning] + elsif e.size == 0 + return [nil, "No exon matches found.", warning] + end + + [e.first, nil, warning] +end + +begin + fusions.each do |variant| + row = [ + variant.id, + variant.name, + "https://civicdb.org#{variant.link}" + ] + five_prime_stop_exon = nil + five_prime_start_exon = nil + three_prime_stop_exon = nil + three_prime_start_exon = nil + + sleep 0.1 + if variant.representative_transcript.blank? && variant.representative_transcript2.blank? + row << "No Coordinates" + pending_revisions = variant.revisions + .where( + status: 'new', + field_name: ["chromosome", "start", "stop", "representative_transcript", "chromosome2" "start2", "stop2", "representative_transcript2"] + ).any? + if pending_revisions + row << "Has Pending Coordinate Revisions" + end + + unmatched_coordinates_report.puts row.join("\t") + next + end + + if variant.representative_transcript.blank? + row << "Transcript 2 present, but not Transcript 1" + row << "Possible 3' specified, 5' unknown/multiple?" + unmatched_coordinates_report.puts row.join("\t") + next + else + (five_prime_exons, err, warning) = get_exons_for_ensembl_id(variant.representative_transcript, variant) + five_prime_strand = five_prime_exons&.first&.fetch('strand') + if five_prime_strand.nil? + row << err + row << warning + unmatched_coordinates_report.puts row.join("\t") + next + end + + + if five_prime_strand == '-1' + #<--transcript direction<---- + #stop exon-e-e-e-start_exon + #stop_exon_start_position nnnnnnnn stop_exon_end_position-e-e-e-start_exon_start_position nnnn start_exon_end_position + #the civic stop position is for the start exon end position + (five_prime_start_exon, err, warn) = get_fusion_exon(variant.representative_transcript, variant.stop, 'end', variant) + if err || warn + row << err + row << warn + unmatched_coordinates_report.puts row.join("\t") + next + end + #the civic start position is for the stop exon start position + (five_prime_stop_exon, err2, warn2) = get_fusion_exon(variant.representative_transcript, variant.start, 'start', variant) + if err2 || warn2 + row << err2 + row << warn2 + unmatched_coordinates_report.puts row.join("\t") + next + end + else + #-->transcript direction----> + #start_exon-e-e-e-stop_exon + #start_exon_start_position nnnnnnnn start_exon_end_position-e-e-e-stop_exon_start_position nnnn stop_exon_end_position + #the civic start2 position is for the start exon start position + (five_prime_start_exon, err, warn) = get_fusion_exon(variant.representative_transcript, variant.start, 'start', variant) + if err || warn + row << err + row << warn + unmatched_coordinates_report.puts row.join("\t") + next + end + #the civic stop2 position is for the stop exon end position + (five_prime_stop_exon, err2, warn2) = get_fusion_exon(variant.representative_transcript, variant.stop, 'end', variant) + if err2 || warn2 + row << err2 + row << warn2 + unmatched_coordinates_report.puts row.join("\t") + next + end + end + end + + if variant.representative_transcript2.blank? + row << "Transcript 1 present, but not Transcript 2" + row << "Possible 5' specified, 3' unknown/multiple?" + unmatched_coordinates_report.puts row.join("\t") + next + else + (three_prime_exons, err, warning) = get_exons_for_ensembl_id(variant.representative_transcript2, variant) + three_prime_strand = three_prime_exons&.first&.fetch('strand') + if three_prime_strand.nil? + row << err + row << warning + unmatched_coordinates_report.puts row.join("\t") + next + end + + if three_prime_strand == '-1' + #<--transcript direction<---- + #stop exon-e-e-e-start_exon + #stop_exon_start_position nnnnnnnn stop_exon_end_position-e-e-e-start_exon_start_position nnnn start_exon_end_position + #the civic stop2 position is for the start exon end position + (three_prime_start_exon, err, warn) = get_fusion_exon(variant.representative_transcript2, variant.stop2, 'end', variant) + if err || warn + row << err + row << warn + unmatched_coordinates_report.puts row.join("\t") + next + end + #the civic start2 position is for the stop exon start position + (three_prime_stop_exon, err2, warn2) = get_fusion_exon(variant.representative_transcript2, variant.start2, 'start', variant) + if err2 || warn2 + row << err2 + row << warn2 + unmatched_coordinates_report.puts row.join("\t") + next + end + else + #-->transcript direction----> + #start_exon-e-e-e-stop_exon + #start_exon_start_position nnnnnnnn start_exon_end_position-e-e-e-stop_exon_start_position nnnn stop_exon_end_position + #the civic start2 position is for the start exon start position + (three_prime_start_exon, err, warn) = get_fusion_exon(variant.representative_transcript2, variant.start2, 'start', variant) + if err || warn + row << err + row << warn + unmatched_coordinates_report.puts row.join("\t") + next + end + #the civic stop2 position is for the stop exon end position + (three_prime_stop_exon, err2, warn2) = get_fusion_exon(variant.representative_transcript2, variant.stop2, 'end', variant) + if err2 || warn2 + row << err2 + row << warn2 + unmatched_coordinates_report.puts row.join("\t") + next + end + end + end + + variant.type = "Variants::FusionVariant" + variant.save!(validate: false) + variant.reload + + if five_prime_start_exon + create_exon_coords(variant, :five_prime_start_exon_coordinates, 'Five Prime Start Exon Coordinate', five_prime_start_exon) + end + if five_prime_stop_exon + create_exon_coords(variant, :five_prime_end_exon_coordinates, 'Five Prime End Exon Coordinate', five_prime_start_exon) + end + if three_prime_start_exon + create_exon_coords(variant, :three_prime_start_exon_coordinates, 'Three Prime Start Exon Coordinate', five_prime_start_exon) + end + if three_prime_stop_exon + create_exon_coords(variant, :three_prime_end_exon_coordinates, 'Three Prime End Exon Coordinate', five_prime_start_exon) + end + variant.save! + + row << five_prime_stop_exon['rank'] + row << three_prime_start_exon['rank'] + matched_coordinates_report.puts row.join("\t") + end +rescue StandardError => e + binding.irb +ensure + unmatched_coordinates_report.close + matched_coordinates_report.close + suspected_mps_report.close +end From 14849face0abe559b4b43c70097abe95de5c9803 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Fri, 26 Jul 2024 11:29:54 -0500 Subject: [PATCH 23/56] introduce exon coordinate type --- server/app/models/constants.rb | 13 ++- server/app/models/exon_coordinate.rb | 41 ++++++++++ server/app/models/variant.rb | 6 +- server/app/models/variant_coordinate.rb | 22 +---- server/app/models/variants/fusion_variant.rb | 31 ++++++- server/app/models/variants/gene_variant.rb | 2 +- ...ator.rb => fusion_coordinate_validator.rb} | 3 +- .../variant_coordinate_validator.rb | 68 ++++++++++++++++ ...0240726152414_rework_fusion_coordinates.rb | 26 ++++++ server/db/schema.rb | 81 ++++++++++++++++++- 10 files changed, 261 insertions(+), 32 deletions(-) create mode 100644 server/app/models/exon_coordinate.rb rename server/app/validators/{coordinate_validator.rb => fusion_coordinate_validator.rb} (97%) create mode 100644 server/app/validators/variant_coordinate_validator.rb create mode 100644 server/db/migrate/20240726152414_rework_fusion_coordinates.rb diff --git a/server/app/models/constants.rb b/server/app/models/constants.rb index a23f55314..49a1f4eac 100644 --- a/server/app/models/constants.rb +++ b/server/app/models/constants.rb @@ -5,9 +5,10 @@ module Constants 'this_month' => 1.month.ago, 'this_year' => 1.year.ago, 'all_time' => DateTime.parse('1970-01-01 00:00:00') - } + SUPPORTED_REFERENCE_BUILDS = [:GRCh38, :GRCh37, :NCBI36] + DISPLAY_NAME_QUERY = 'users.username ILIKE :query OR users.email ILIKE :query OR users.name ILIKE :query' EVIDENCE_TYPES = [:Diagnostic, :Prognostic, :Predictive, :Predisposing, :Functional, :Oncogenic] @@ -121,9 +122,13 @@ module Constants 'MolecularProfile' => 'molecular-profiles' } - VALID_COORDINATE_TYPES = [ - Variants::GeneVariant.valid_coordinate_types, - Variants::FusionVariant.valid_coordinate_types + VALID_VARIANT_COORDINATE_TYPES = [ + Variants::GeneVariant.valid_variant_coordinate_types, + Variants::FusionVariant.valid_variant_coordinate_types, + ].flatten + + VALID_EXON_COORDINATE_TYPES = [ + Variants::FusionVariant.valid_exon_coordinate_types ].flatten CIVICBOT_USER_ID = 385 diff --git a/server/app/models/exon_coordinate.rb b/server/app/models/exon_coordinate.rb new file mode 100644 index 000000000..fc8eef937 --- /dev/null +++ b/server/app/models/exon_coordinate.rb @@ -0,0 +1,41 @@ +class ExonCoordinate < ApplicationRecord + belongs_to :variant, touch: true + + validates :coordinate_type, presence: true + validates :coordinate_type, inclusion: { + in: Constants::VALID_EXON_COORDINATE_TYPES, + message: "%{value} is not a valid coordinate type" + } + + enum reference_build: Constants::SUPPORTED_REFERENCE_BUILDS + + enum exon_offset_direction: { + positive: 'positive', + negative: 'negative' + } + + enum strand: { + positive: 'positive', + negative: 'negative' + }, _suffix: true + + def formatted_offset + if exon_offset_direction.nil? + '' + elsif exon_offset_direction == 'positive' + '+' + elsif exon_offset_direction == 'negative' + '-' + end + end + + def formatted_strand + if strand.nil? + '' + elsif strand == 'positive' + '1' + elsif strand == 'negative' + '-1' + end + end +end diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index 99b11645d..f5e494cac 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -55,7 +55,8 @@ class Variant < ApplicationRecord validate :correct_coordinate_type validates_with VariantFieldsValidator - searchkick highlight: [:name, :aliases], callbacks: :async + #TODO renable me + #searchkick highlight: [:name, :aliases], callbacks: :async scope :search_import, -> { includes(:variant_aliases, :feature) } def self.valid_coordinate_types @@ -97,7 +98,8 @@ def self.timepoint_query end def reindex_mps - self.molecular_profiles.each { |mp| mp.reindex(mode: :async) } + #TODO RENABLE ME + #self.molecular_profiles.each { |mp| mp.reindex(mode: :async) } end def on_revision_accepted diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb index 197ff490a..8f11bf9ae 100644 --- a/server/app/models/variant_coordinate.rb +++ b/server/app/models/variant_coordinate.rb @@ -3,7 +3,7 @@ class VariantCoordinate < ApplicationRecord belongs_to :variant, touch: true - enum reference_build: [:GRCh38, :GRCh37, :NCBI36] + enum reference_build: Constants::SUPPORTED_REFERENCE_BUILDS validates :reference_bases, format: { with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, @@ -17,16 +17,11 @@ class VariantCoordinate < ApplicationRecord validates :coordinate_type, presence: true validates :coordinate_type, inclusion: { - in: Constants::VALID_COORDINATE_TYPES, + in: Constants::VALID_VARIANT_COORDINATE_TYPES, message: "%{value} is not a valid coordinate type" } - enum exon_offset_direction: { - positive: 'positive', - negative: 'negative' - } - - validates_with CoordinateValidator + validates_with VariantCoordinateValidator def editable_fields [ @@ -40,15 +35,4 @@ def editable_fields :representative_transcript, ] end - - def formatted_offset - if exon_offset_direction.nil? - '' - elsif exon_offset_direction == 'positive' - '+' - elsif exon_offset_direction == 'negative' - '-' - end - end - end diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 9f0044cd4..f98058e86 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -12,13 +12,42 @@ class FusionVariant < Variant foreign_key: 'variant_id', class_name: 'VariantCoordinate' - def self.valid_coordinate_types + has_one :five_prime_start_exon_coordinates, + ->() { where(coordinate_type: 'Five Prime Start Exon Coordinate') }, + foreign_key: 'variant_id', + class_name: 'ExonCoordinate' + + has_one :five_prime_end_exon_coordinates, + ->() { where(coordinate_type: 'Five Prime End Exon Coordinate') }, + foreign_key: 'variant_id', + class_name: 'ExonCoordinate' + + has_one :three_prime_start_exon_coordinates, + ->() { where(coordinate_type: 'Three Prime Start Exon Coordinate') }, + foreign_key: 'variant_id', + class_name: 'ExonCoordinate' + + has_one :three_prime_end_exon_coordinates, + ->() { where(coordinate_type: 'Three Prime End Exon Coordinate') }, + foreign_key: 'variant_id', + class_name: 'ExonCoordinate' + + def self.valid_variant_coordinate_types [ 'Five Prime Fusion Coordinate', 'Three Prime Fusion Coordinate' ] end + def self.valid_exon_coordinate_types + [ + 'Five Prime Start Exon Coordinate', + 'Five Prime End Exon Coordinate', + 'Three Prime Start Exon Coordinate', + 'Three Prime End Exon Coordinate' + ] + end + #TODO remove after backfill/when columns removed enum reference_build: [:GRCh38, :GRCh37, :NCBI36] diff --git a/server/app/models/variants/gene_variant.rb b/server/app/models/variants/gene_variant.rb index 803a205b5..a3cfe398f 100644 --- a/server/app/models/variants/gene_variant.rb +++ b/server/app/models/variants/gene_variant.rb @@ -8,7 +8,7 @@ class GeneVariant < Variant foreign_key: 'variant_id', class_name: 'VariantCoordinate' - def self.valid_coordinate_types + def self.valid_variant_coordinate_types [ 'Gene Variant Coordinate' ] diff --git a/server/app/validators/coordinate_validator.rb b/server/app/validators/fusion_coordinate_validator.rb similarity index 97% rename from server/app/validators/coordinate_validator.rb rename to server/app/validators/fusion_coordinate_validator.rb index 7ba0cfcde..97d60f1bf 100644 --- a/server/app/validators/coordinate_validator.rb +++ b/server/app/validators/fusion_coordinate_validator.rb @@ -1,5 +1,6 @@ -class CoordinateValidator < ActiveModel::Validator +class FusionCoordinateValidator < ActiveModel::Validator def validate(record) + return true case record.coordinate_type when 'Gene Variant Coordinate' validate_gene_variant_coordinates(record) diff --git a/server/app/validators/variant_coordinate_validator.rb b/server/app/validators/variant_coordinate_validator.rb new file mode 100644 index 000000000..185b6de21 --- /dev/null +++ b/server/app/validators/variant_coordinate_validator.rb @@ -0,0 +1,68 @@ +class VariantCoordinateValidator < ActiveModel::Validator + def validate(record) + case record.coordinate_type + when 'Gene Variant Coordinate' + validate_gene_variant_coordinates(record) + when 'Five Prime Fusion Coordinate' + validate_fusion_variant_coordinates(record) + when 'Three Prime Fusion Coordinate' + validate_fusion_variant_coordinates(record) + else + raise StandardError.new("Unsupported coordinate type: #{record.coordinate_type}") + end + end + + private + def validate_gene_variant_coordinates(record) + validate_not_present(record, :exon_boundary) + validate_not_present(record, :exon_offset) + validate_not_present(record, :exon_offset_direction) + require_transcript_and_build_for_coords(record) + if record.start.present? + validate_present(record, :stop, "You must specify a stop value if you specify a start value") + if record.stop.present? && record.start > record.stop + record.errors.add(:start, "Start coordinate must be before Stop coordinate") + end + else + validate_not_present(record, :stop, "You cannot specify a stop without a start.") + end + end + + def validate_fusion_variant_coordinates(record) + require_transcript_and_build_for_coords(record) + + if record.exon_boundary.present? + validate_present(record, :representative_transcript, "You must specify a transcript if you supply an exon boundary") + end + + if record.exon_offset.present? + validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset value") + validate_present(record, :exon_offset_direction, "You must specify an offset direction if you supply an offset value") + end + + if record.exon_offset_direction.present? + validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset direction") + validate_present(record, :exon_offset, "You must specify an exon offset if you supply an offset direction") + end + end + + def require_transcript_and_build_for_coords(record) + #if any of these are set + if [:chromosome, :start, :stop].map { |field| record.send(field) }.any?(&:present?) + validate_present(record, :reference_build, "You must specify a reference_build if you supply coordinate information") + validate_present(record, :representative_transcript, "You must specify a transcript if you supply coordinate information") + end + end + + def validate_not_present(record, field, msg = "#{field} is not allowed on #{record.coordinate_type}") + if record.send(field).present? + record.errors.add(field, msg) + end + end + + def validate_present(record, field, msg = "#{field} is required on #{record.coordinate_type}") + if record.send(field).blank? + record.errors.add(field, msg) + end + end +end diff --git a/server/db/migrate/20240726152414_rework_fusion_coordinates.rb b/server/db/migrate/20240726152414_rework_fusion_coordinates.rb new file mode 100644 index 000000000..8f5bdc8c0 --- /dev/null +++ b/server/db/migrate/20240726152414_rework_fusion_coordinates.rb @@ -0,0 +1,26 @@ +class ReworkFusionCoordinates < ActiveRecord::Migration[7.1] + def change + remove_column :variant_coordinates, :exon_offset_direction + remove_column :variant_coordinates, :exon_offset + remove_column :variant_coordinates, :exon_boundary + + create_table :exon_coordinates do |t| + t.text :chromosome, index: true, null: false + t.enum :strand, enum_type: "exon_offset_direction", null: false + t.bigint :start, index: true, null: false + t.bigint :stop, index: true, null: false + t.integer :exon, null: false + t.text :ensembl_id, null: false + t.integer :exon_offset, null: true + t.enum :exon_offset_direction, enum_type: "exon_offset_direction", null: true + t.integer :ensembl_version, null: false + t.text :representative_transcript, index: true, null: false + t.integer :reference_build, null: true, index: false + t.references :variant, null: false, index: true + t.text :coordinate_type, null: false + t.timestamps + end + + add_foreign_key :exon_coordinates, :variants + end +end diff --git a/server/db/schema.rb b/server/db/schema.rb index f44286927..3ed018b59 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_07_01_162452) do +ActiveRecord::Schema[7.1].define(version: 2024_07_26_152414) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -446,6 +446,29 @@ t.index ["therapy_id", "evidence_item_id"], name: "idx_therapy_eid_bridge_table" end + create_table "exon_coordinates", force: :cascade do |t| + t.text "chromosome", null: false + t.enum "strand", null: false, enum_type: "exon_offset_direction" + t.bigint "start", null: false + t.bigint "stop", null: false + t.integer "exon", null: false + t.text "ensembl_id", null: false + t.integer "exon_offset" + t.enum "exon_offset_direction", enum_type: "exon_offset_direction" + t.integer "ensembl_version", null: false + t.text "representative_transcript", null: false + t.integer "reference_build" + t.bigint "variant_id", null: false + t.text "coordinate_type", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["chromosome"], name: "index_exon_coordinates_on_chromosome" + t.index ["representative_transcript"], name: "index_exon_coordinates_on_representative_transcript" + t.index ["start"], name: "index_exon_coordinates_on_start" + t.index ["stop"], name: "index_exon_coordinates_on_stop" + t.index ["variant_id"], name: "index_exon_coordinates_on_variant_id" + end + create_table "factors", force: :cascade do |t| t.text "ncit_id" t.datetime "created_at", null: false @@ -889,8 +912,6 @@ t.bigint "stop" t.text "reference_bases" t.text "variant_bases" - t.integer "exon_boundary" - t.integer "exon_offset" t.integer "ensembl_version" t.text "representative_transcript" t.integer "reference_build" @@ -898,7 +919,6 @@ t.text "coordinate_type", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false - t.enum "exon_offset_direction", enum_type: "exon_offset_direction" t.index ["chromosome"], name: "index_variant_coordinates_on_chromosome" t.index ["reference_build"], name: "index_variant_coordinates_on_reference_build" t.index ["representative_transcript"], name: "index_variant_coordinates_on_representative_transcript" @@ -1045,6 +1065,7 @@ add_foreign_key "evidence_items_phenotypes", "phenotypes" add_foreign_key "evidence_items_therapies", "evidence_items" add_foreign_key "evidence_items_therapies", "therapies" + add_foreign_key "exon_coordinates", "variants" add_foreign_key "feature_aliases_features", "feature_aliases" add_foreign_key "feature_aliases_features", "features" add_foreign_key "features_sources", "features" @@ -1402,4 +1423,56 @@ SQL add_index "variant_browse_table_rows", ["id"], name: "index_variant_browse_table_rows_on_id", unique: true + create_view "organization_browse_table_rows", materialized: true, sql_definition: <<-SQL + SELECT organizations.id, + organizations.name, + organizations.url, + organizations.description, + organizations.parent_id, + organizations.created_at, + organizations.updated_at, + organizations.most_recent_activity_timestamp, + count(DISTINCT activities.id) AS activity_count, + count(DISTINCT affiliations.user_id) AS member_count, + json_agg(DISTINCT jsonb_build_object('child_id', child.id, 'child_name', child.name)) FILTER (WHERE (child.id IS NOT NULL)) AS child_organizations + FROM (((organizations + LEFT JOIN activities ON ((activities.organization_id = organizations.id))) + LEFT JOIN affiliations ON ((affiliations.organization_id = organizations.id))) + LEFT JOIN organizations child ON ((child.parent_id = organizations.id))) + GROUP BY organizations.id; + SQL + add_index "organization_browse_table_rows", ["id"], name: "index_organization_browse_table_rows_on_id", unique: true + + create_view "user_browse_table_rows", materialized: true, sql_definition: <<-SQL + SELECT users.id, + users.email, + users.name, + users.url, + users.username, + users.created_at, + users.updated_at, + users.orcid, + users.area_of_expertise, + users.deleted, + users.deleted_at, + users.role, + users.last_seen_at, + users.twitter_handle, + users.facebook_profile, + users.linkedin_profile, + users.accepted_license, + users.featured_expert, + users.bio, + users.signup_complete, + users.country_id, + users.most_recent_organization_id, + users.most_recent_activity_timestamp, + count(DISTINCT events.id) FILTER (WHERE (events.action = 'revision suggested'::text)) AS revision_count, + count(DISTINCT events.id) FILTER (WHERE (events.action = 'submitted'::text)) AS evidence_count + FROM (users + LEFT JOIN events ON ((events.originating_user_id = users.id))) + GROUP BY users.id; + SQL + add_index "user_browse_table_rows", ["id"], name: "index_user_browse_table_rows_on_id", unique: true + end From 921e77c0047c3fb0c147bf95e8a2df2b07c93ffc Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Tue, 6 Aug 2024 10:43:26 -0500 Subject: [PATCH 24/56] More updates to the backfill script --- .../types/entities/coordinate_type_type.rb | 2 +- .../models/actions/create_fusion_feature.rb | 9 +- .../activities/create_fusion_feature.rb | 8 +- server/app/models/variant.rb | 2 +- server/app/models/variants/fusion_variant.rb | 18 +- .../variant_coordinate_validator.rb | 28 +-- .../fusions/backfill_gene_variant_coords.rb | 5 +- .../fusions/port_fusion_coords.rb | 172 +++++++++++++++++- 8 files changed, 203 insertions(+), 41 deletions(-) diff --git a/server/app/graphql/types/entities/coordinate_type_type.rb b/server/app/graphql/types/entities/coordinate_type_type.rb index 053588dfb..c707f3929 100644 --- a/server/app/graphql/types/entities/coordinate_type_type.rb +++ b/server/app/graphql/types/entities/coordinate_type_type.rb @@ -1,6 +1,6 @@ module Types::Entities class CoordinateTypeType < Types::BaseEnum - Constants::VALID_COORDINATE_TYPES.each do |ct| + Constants::VALID_VARIANT_COORDINATE_TYPES.each do |ct| value ct.upcase.gsub(" ", "_"), value: ct end end diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index b006a5003..6ae26f038 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -2,9 +2,9 @@ module Actions class CreateFusionFeature include Actions::Transactional - attr_reader :feature, :originating_user, :organization_id + attr_reader :feature, :originating_user, :organization_id, :create_variant - def initialize(originating_user:, five_prime_gene_id:, three_prime_gene_id:, five_prime_partner_status:, three_prime_partner_status:, organization_id: nil) + def initialize(originating_user:, five_prime_gene_id:, three_prime_gene_id:, five_prime_partner_status:, three_prime_partner_status:, organization_id: nil, create_variant: true) feature_name = "#{construct_fusion_partner_name(five_prime_gene_id, five_prime_partner_status)}::#{construct_fusion_partner_name(three_prime_gene_id, three_prime_partner_status)}" fusion = Features::Fusion.create( five_prime_gene_id: five_prime_gene_id, @@ -18,6 +18,7 @@ def initialize(originating_user:, five_prime_gene_id:, three_prime_gene_id:, fiv ) @originating_user = originating_user @organization_id = organization_id + @create_variant = create_variant end def construct_fusion_partner_name(gene_id, partner_status) @@ -68,7 +69,9 @@ def execute originating_object: feature ) - create_representative_variant + if create_variant + create_representative_variant + end events << event end end diff --git a/server/app/models/activities/create_fusion_feature.rb b/server/app/models/activities/create_fusion_feature.rb index 4fc3a8376..1aa497f5b 100644 --- a/server/app/models/activities/create_fusion_feature.rb +++ b/server/app/models/activities/create_fusion_feature.rb @@ -1,13 +1,14 @@ module Activities class CreateFusionFeature < Base - attr_reader :feature, :five_prime_gene_id, :three_prime_gene_id, :five_prime_partner_status, :three_prime_partner_status + attr_reader :feature, :five_prime_gene_id, :three_prime_gene_id, :five_prime_partner_status, :three_prime_partner_status, :create_variant - def initialize(originating_user:, organization_id:, five_prime_gene_id:, three_prime_gene_id:, five_prime_partner_status:, three_prime_partner_status:) + def initialize(originating_user:, organization_id:, five_prime_gene_id:, three_prime_gene_id:, five_prime_partner_status:, three_prime_partner_status:, create_variant: true) super(organization_id: organization_id, user: originating_user) @five_prime_gene_id = five_prime_gene_id @three_prime_gene_id = three_prime_gene_id @five_prime_partner_status = five_prime_partner_status @three_prime_partner_status = three_prime_partner_status + @create_variant = create_variant end private @@ -25,7 +26,8 @@ def call_actions five_prime_partner_status: five_prime_partner_status, three_prime_partner_status: three_prime_partner_status, originating_user: user, - organization_id: organization&.id + organization_id: organization&.id, + create_variant: create_variant ) cmd.perform diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index f5e494cac..dffc0cd0a 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -59,7 +59,7 @@ class Variant < ApplicationRecord #searchkick highlight: [:name, :aliases], callbacks: :async scope :search_import, -> { includes(:variant_aliases, :feature) } - def self.valid_coordinate_types + def self.valid_variant_coordinate_types [] end diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index f98058e86..f80f45f7c 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -2,6 +2,8 @@ module Variants class FusionVariant < Variant has_one :fusion, through: :feature, source: :feature_instance, source_type: 'Features::Fusion' + has_many :exon_coordinates, foreign_key: 'variant_id' + has_one :five_prime_coordinates, ->() { where(coordinate_type: 'Five Prime Fusion Coordinate') }, foreign_key: 'variant_id', @@ -101,7 +103,8 @@ def construct_five_prime_name(name_type:) name_type: name_type, partner_status: fusion.five_prime_partner_status, gene: fusion.five_prime_gene, - coords: five_prime_coordinates + coords: five_prime_coordinates, + exon_coords: five_prime_end_exon_coordinates, ) end @@ -110,21 +113,22 @@ def construct_three_prime_name(name_type:) name_type: name_type, partner_status: fusion.three_prime_partner_status, gene: fusion.three_prime_gene, - coords: three_prime_coordinates + coords: three_prime_coordinates, + exon_coords: three_prime_start_exon_coordinates, ) end - def construct_partner_name(name_type:, partner_status:, gene:, coords:) + def construct_partner_name(name_type:, partner_status:, gene:, coords:, exon_coords:) if partner_status == 'known' case name_type when :representative "#{gene.name}(entrez:#{gene.entrez_id})" when :civic - "e.#{coords.exon_boundary}#{coords.formatted_offset}#{coords.exon_offset}" + "e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" when :vicc - "#{coords.representative_transcript}(#{gene.name}):e.#{coords.exon_boundary}#{coords.formatted_offset}#{coords.exon_offset}" + "#{coords.representative_transcript}(#{gene.name}):e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" when :molecular_profile - "#{gene.name}:e.#{coords.exon_boundary}#{coords.formatted_offset}#{coords.exon_offset}" + "#{gene.name}:e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" end elsif partner_status == 'unknown' '?' @@ -139,7 +143,7 @@ def correct_coordinate_type end variant_coordinates.each do |coord| - if !self.class.valid_coordinate_types.include?(coord.coordinate_type) + if !self.class.valid_variant_coordinate_types.include?(coord.coordinate_type) errors.add(:variant_coordinates, "Incorrect coordinate type #{coord.coordinate_type} for a Fusion Variant") end end diff --git a/server/app/validators/variant_coordinate_validator.rb b/server/app/validators/variant_coordinate_validator.rb index 185b6de21..f67744cf9 100644 --- a/server/app/validators/variant_coordinate_validator.rb +++ b/server/app/validators/variant_coordinate_validator.rb @@ -14,9 +14,9 @@ def validate(record) private def validate_gene_variant_coordinates(record) - validate_not_present(record, :exon_boundary) - validate_not_present(record, :exon_offset) - validate_not_present(record, :exon_offset_direction) + #validate_not_present(record, :exon_boundary) + #validate_not_present(record, :exon_offset) + #validate_not_present(record, :exon_offset_direction) require_transcript_and_build_for_coords(record) if record.start.present? validate_present(record, :stop, "You must specify a stop value if you specify a start value") @@ -31,19 +31,19 @@ def validate_gene_variant_coordinates(record) def validate_fusion_variant_coordinates(record) require_transcript_and_build_for_coords(record) - if record.exon_boundary.present? - validate_present(record, :representative_transcript, "You must specify a transcript if you supply an exon boundary") - end + #if record.exon_boundary.present? + # validate_present(record, :representative_transcript, "You must specify a transcript if you supply an exon boundary") + #end - if record.exon_offset.present? - validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset value") - validate_present(record, :exon_offset_direction, "You must specify an offset direction if you supply an offset value") - end + #if record.exon_offset.present? + # validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset value") + # validate_present(record, :exon_offset_direction, "You must specify an offset direction if you supply an offset value") + #end - if record.exon_offset_direction.present? - validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset direction") - validate_present(record, :exon_offset, "You must specify an exon offset if you supply an offset direction") - end + #if record.exon_offset_direction.present? + # validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset direction") + # validate_present(record, :exon_offset, "You must specify an exon offset if you supply an offset direction") + #end end def require_transcript_and_build_for_coords(record) diff --git a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb index c7498abd4..fb57dbb26 100644 --- a/server/misc_scripts/fusions/backfill_gene_variant_coords.rb +++ b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb @@ -1,4 +1,5 @@ # run order: 1 +# need to turn off VariantCoordinatorValidator validation first Variants::GeneVariant.find_each do |variant| #maybe_fusion = [ @@ -6,7 +7,7 @@ #variant.variant_types.where(name: 'transcript_fusion').exists? #].all? - coord = VariantCoordinate.create!( + coord = VariantCoordinate.where( variant: variant, reference_build: variant.reference_build, coordinate_type: "Gene Variant Coordinate", @@ -17,5 +18,5 @@ variant_bases: variant.variant_bases, representative_transcript: variant.representative_transcript, ensembl_version: variant.ensembl_version - ) + ).first_or_create end diff --git a/server/misc_scripts/fusions/port_fusion_coords.rb b/server/misc_scripts/fusions/port_fusion_coords.rb index faa2892dd..5867da77c 100644 --- a/server/misc_scripts/fusions/port_fusion_coords.rb +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -20,7 +20,7 @@ def create_exon_coords(variant, relation_name, coordinate_type, exon) :representative_transcript2 end - coord = ExonCoordinate.new( + coord = ExonCoordinate.where( chromosome: exon['seq_region_name'], exon: exon['rank'], strand: strand, @@ -30,8 +30,9 @@ def create_exon_coords(variant, relation_name, coordinate_type, exon) ensembl_version: variant.ensembl_version, representative_transcript: variant.send(transcript_name), reference_build: variant.reference_build, - coordinate_type: coordinate_type - ) + coordinate_type: coordinate_type, + variant_id: variant.id + ).first_or_create rel = "#{relation_name}=" variant.send(rel, coord) @@ -162,6 +163,133 @@ def get_fusion_exon(transcript, position, position_type, variant) [e.first, nil, warning] end +def port_variant_to_fusion(variant) + feature_name, possible_exons = variant.name.split(" ") + five_prime_gene_name, three_prime_gene_name = feature_name.split("::") + if five_prime_gene_name == 'v' + five_prime_partner_status = 'multiple' + five_prime_gene_id = nil + elsif five_prime_gene_name == '?' + five_prime_partner_status = 'unknown' + five_prime_gene_id = nil + else + five_prime_partner_status = 'known' + five_prime_gene_id = Features::Gene.find_by(name: five_prime_gene_name)&.id + if five_prime_gene_id.nil? + return [nil, nil] + end + end + if three_prime_gene_name == 'v' + three_prime_partner_status = 'multiple' + three_prime_gene_id = nil + elsif three_prime_gene_name == '?' + three_prime_partner_status = 'unknown' + three_prime_gene_id = nil + else + three_prime_partner_status = 'known' + three_prime_gene_id = Features::Gene.find_by(name: three_prime_gene_name)&.id + if three_prime_gene_id.nil? + return [nil, nil] + end + end + + feature = nil + existing_feature_instance = Features::Fusion + .find_by( + five_prime_gene_id: five_prime_gene_id, + three_prime_gene_id: three_prime_gene_id, + five_prime_partner_status: five_prime_partner_status, + three_prime_partner_status: three_prime_partner_status, + ) + + if existing_feature_instance.present? + feature = existing_feature_instance.feature + else + variant_creation_activity = variant.creation_activity + if variant_creation_activity.nil? + originating_user = User.find(Constants::CIVICBOT_USER_ID) + organization_id = nil + else + originating_user = variant_creation_activity.user + organization_id = variant_creation_activity.organization_id + #TODO - handle users with multiple orgs and variant_creation_activity org id being nil + end + cmd = Activities::CreateFusionFeature.new( + five_prime_gene_id: five_prime_gene_id, + three_prime_gene_id: three_prime_gene_id, + five_prime_partner_status: five_prime_partner_status, + three_prime_partner_status: three_prime_partner_status, + originating_user: originating_user, + organization_id: organization_id, + create_variant: false, + ) + res = cmd.perform + + if res.succeeded? + feature = res.feature + #not sure if this is necessary - this would put the creation date at the time of the variant creation + if variant_creation_activity.present? + a = feature.creation_activity + a.created_at = variant_creation_activity.created_at + a.save! + a.events.each do |e| + e.created_at = variant_creation_activity.created_at + e.save! + end + end + else + binding.irb + end + end + + variant.type = "Variants::FusionVariant" + variant.feature_id = feature.id + if possible_exons.nil? + variant.name = 'Fusion' + else + regex = Regexp.new(/^e(?\d+)-e(?\d+)$/) + if match = possible_exons.match(regex) + binding.irb + variant.name = "e.#{match[:five_prime_exon]}-e.#{match[:three_prime_exon]}" + #TODO - create matching exon and variant coordinate entries + else + #TODO - create a file to investigate what these should be named + variant.name = possible_exons + end + end + variant.save(validate: false) + + [five_prime_partner_status, three_prime_partner_status] +end + +def update_variant_coordinates(variant, five_prime_partner_status, three_prime_partner_status) + if five_prime_partner_status == 'known' + five_prime_coordinate = variant.variant_coordinates.first + five_prime_coordinate.coordinate_type = "Five Prime Fusion Coordinate" + five_prime_coordinate.save + if three_prime_partner_status == 'known' + coord = VariantCoordinate.where( + variant: variant, + reference_build: variant.reference_build, + coordinate_type: "Three Prime Fusion Coordinate", + chromosome: variant.chromosome2, + start: variant.start2, + stop: variant.stop2, + representative_transcript: variant.representative_transcript2, + ensembl_version: variant.ensembl_version + ).first_or_create + end + elsif three_prime_partner_status == 'known' + three_prime_coordinate = variant.variant_coordinates.first + three_prime_coordinate.coordinate_type = "Three Prime Fusion Coordinate" + three_prime_coordinate.chromosome = variant.chromosome2 + three_prime_coordinate.start = variant.start2 + three_prime_coordinate.stop = variant.stop2 + three_prime_coordinate.representative_transcript = variant.representative_transcript2 + three_prime_coordinate.save + end +end + begin fusions.each do |variant| row = [ @@ -187,6 +315,15 @@ def get_fusion_exon(transcript, position, position_type, variant) end unmatched_coordinates_report.puts row.join("\t") + if variant.name.include?("::") + (five_prime_partner_status, three_prime_partner_status) = port_variant_to_fusion(variant) + if five_prime_partner_status.nil? && three_prime_partner_status.nil? + #TODO: capture these in a file + next + end + update_variant_coordinates(variant, five_prime_partner_status, three_prime_partner_status) + #TODO set vicc compatible name? + end next end @@ -307,23 +444,38 @@ def get_fusion_exon(transcript, position, position_type, variant) end end - variant.type = "Variants::FusionVariant" - variant.save!(validate: false) - variant.reload + if variant.type == "Variants::GeneVariant" + (five_prime_partner_status, three_prime_partner_status) = port_variant_to_fusion(variant) + if five_prime_partner_status.nil? && three_prime_partner_status.nil? + #TODO: capture these in a file + next + end + end + + #reload doesn't seem to work after changing variant type so this hard-refetches the variant + variant = Variant.find(variant.id) + + update_variant_coordinates(variant, five_prime_partner_status, three_prime_partner_status) if five_prime_start_exon create_exon_coords(variant, :five_prime_start_exon_coordinates, 'Five Prime Start Exon Coordinate', five_prime_start_exon) end if five_prime_stop_exon - create_exon_coords(variant, :five_prime_end_exon_coordinates, 'Five Prime End Exon Coordinate', five_prime_start_exon) + create_exon_coords(variant, :five_prime_end_exon_coordinates, 'Five Prime End Exon Coordinate', five_prime_stop_exon) end if three_prime_start_exon - create_exon_coords(variant, :three_prime_start_exon_coordinates, 'Three Prime Start Exon Coordinate', five_prime_start_exon) + create_exon_coords(variant, :three_prime_start_exon_coordinates, 'Three Prime Start Exon Coordinate', three_prime_start_exon) end if three_prime_stop_exon - create_exon_coords(variant, :three_prime_end_exon_coordinates, 'Three Prime End Exon Coordinate', five_prime_start_exon) + create_exon_coords(variant, :three_prime_end_exon_coordinates, 'Three Prime End Exon Coordinate', three_prime_stop_exon) + end + variant.vicc_compliant_name = variant.generate_vicc_name + + begin + variant.save! + rescue StandardError => e + binding.irb end - variant.save! row << five_prime_stop_exon['rank'] row << three_prime_start_exon['rank'] From b9d6afbe03b018026c9ad9150572b37a6b4ed3c4 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 7 Aug 2024 09:20:06 -0500 Subject: [PATCH 25/56] background job to fill coordinates --- .../types/fusion/fusion_variant_input_type.rb | 11 +- .../app/jobs/populate_fusion_coordinates.rb | 84 ++++++++++++ .../app/lib/scrapers/ensembl_api_helpers.rb | 56 ++++++++ .../activities/create_fusion_variant.rb | 24 +++- server/app/models/exon_coordinate.rb | 16 +++ server/app/models/variant_coordinate.rb | 13 ++ server/app/models/variants/fusion_variant.rb | 12 +- .../validators/exon_coordinate_validator.rb | 51 ++++++++ .../validators/fusion_coordinate_validator.rb | 61 --------- server/app/validators/validation_helpers.rb | 13 ++ .../variant_coordinate_validator.rb | 80 ++++-------- .../20240806155507_rework_exon_nullability.rb | 49 +++++++ server/db/schema.rb | 123 +++++++++--------- server/misc_scripts/fusions/fusion_builder.rb | 46 +++++++ .../fusions/lift_genomic_coords_to_exons.rb | 68 ++++++++++ .../fusions/port_fusion_coords.rb | 3 +- 16 files changed, 525 insertions(+), 185 deletions(-) create mode 100644 server/app/jobs/populate_fusion_coordinates.rb create mode 100644 server/app/lib/scrapers/ensembl_api_helpers.rb create mode 100644 server/app/validators/exon_coordinate_validator.rb delete mode 100644 server/app/validators/fusion_coordinate_validator.rb create mode 100644 server/app/validators/validation_helpers.rb create mode 100644 server/db/migrate/20240806155507_rework_exon_nullability.rb create mode 100644 server/misc_scripts/fusions/fusion_builder.rb create mode 100644 server/misc_scripts/fusions/lift_genomic_coords_to_exons.rb diff --git a/server/app/graphql/types/fusion/fusion_variant_input_type.rb b/server/app/graphql/types/fusion/fusion_variant_input_type.rb index 41d13ab65..dd595a493 100644 --- a/server/app/graphql/types/fusion/fusion_variant_input_type.rb +++ b/server/app/graphql/types/fusion/fusion_variant_input_type.rb @@ -19,29 +19,30 @@ class FusionVariantInputType < Types::BaseInputObject def prepare five_prime_coords = if five_prime_transcript.present? - VariantCoordinate.new( - coordinate_type: 'Five Prime Fusion Coordinate', + ExonCoordinate.new( + coordinate_type: 'Five Prime End Exon Coordinate', reference_build: reference_build, ensembl_version: ensembl_version, representative_transcript: five_prime_transcript, exon_boundary: five_prime_exon_end, exon_offset: five_prime_offset, exon_offset_direction: five_prime_offset_direction, - + record_state: 'exons_provided' ) else nil end three_prime_coords = if three_prime_transcript.present? - VariantCoordinate.new( - coordinate_type: 'Three Prime Fusion Coordinate', + ExonCoordinate.new( + coordinate_type: 'Three Prime Start Exon Coordinate', reference_build: reference_build, ensembl_version: ensembl_version, representative_transcript: three_prime_transcript, exon_boundary: three_prime_exon_start, exon_offset: three_prime_offset, exon_offset_direction: three_prime_offset_direction, + record_state: 'exons_provided' ) else nil diff --git a/server/app/jobs/populate_fusion_coordinates.rb b/server/app/jobs/populate_fusion_coordinates.rb new file mode 100644 index 000000000..dfc8663cb --- /dev/null +++ b/server/app/jobs/populate_fusion_coordinates.rb @@ -0,0 +1,84 @@ +class PopulateFusionCoordinates < ApplicationJob + def perform(variant) + unless variant.is_a?(Variants::FusionVariant) + return + end + + if variant.fusion.five_prime_partner_status == 'known' + populate_coords(variant.five_prime_end_exon_coordinates, variant.five_prime_start_exon_coordinates) + populate_representative_coordinates(variant.five_prime_coordinates, variant.five_prime_start_exon_coordinates, variant.five_prime_end_exon_coordinates) + end + if variant.fusion.three_prime_partner_status == 'known' + populate_coords(variant.three_prime_start_exon_coordinates, variant.three_prime_end_exon_coordinates) + populate_representative_coordinates(variant.three_prime_coordinates, variant.three_prime_start_exon_coordinates, variant.three_prime_end_exon_coordinates) + end + end + + def populate_coords(coords, secondary_coordinates) + if coords.present? && coords.representative_transcript.present? + exon = get_exon_for_transcript(coords.representative_transcript, coords.exon) + (strand, highest_exon) = populate_exon_coordinates(coords, exon) + + if strand == '1' + secondary_exon = get_exon_for_transcript(secondary_coordinates.representative_transcript, 1) + populate_exon_coordinates(secondary_coordinates, secondary_exon) + else + secondary_exon = get_exon_for_transcript(secondary_coordinates.representative_transcript, highest_exon) + populate_exon_coordinates(secondary_coordinates, secondary_exon) + end + end + + end + + def get_exon_for_transcript(transcript, exon_number) + res = Scrapers::EnsemblApiHelpers.get_exons_for_ensembl_id(transcript) + if res.error + raise StandardError.new(res.error) + end + if res.warning + raise StandardError.new(res.warning) + end + + exons = res.value + t = transcript.split('.').first + exon = exons.select { |e| e['rank'] == exon_number && e['Parent'] == t } + + if exon.size > 1 + raise StandardError.new("Ambiguous Exon") + elsif exon.size == 0 + raise StandardError.new("No Exons Found") + end + + exon.first + end + + def populate_exon_coordinates(coordinates, exon) + strand = if exon['strand'] == -1 + 'negative' + else + 'positive' + end + + coordinates.chromosome = exon['seq_region_name'] + coordinates.start = exon['start'] + coordinates.stop = exon['end'] + coordinates.strand = strand + coordinates.ensembl_id = exon['id'] + coordinates.record_state = 'fully_curated' + coordinates.save! + + [strand, exon['rank']] + end + + def populate_representative_coordinates(coordinate, start_exon_coordinates, end_exon_coordinates) + if start_exon_coordinates.strand == '1' + coordinate.start = start_exon_coordinates.start + coordinate.stop = end_exon_coordinates.stop + else + coordinate.start = end_exon_coordinates.stop + coordinate.stop = start_exon_coordinates.start + end + coordinate.record_state = 'fully_curated' + coordinate.save! + end +end diff --git a/server/app/lib/scrapers/ensembl_api_helpers.rb b/server/app/lib/scrapers/ensembl_api_helpers.rb new file mode 100644 index 000000000..0936abd5f --- /dev/null +++ b/server/app/lib/scrapers/ensembl_api_helpers.rb @@ -0,0 +1,56 @@ +module Scrapers + class EnsemblApiHelpers + ENSEMBL_DOMAIN = "https://grch37.rest.ensembl.org" + EnsemblResult = Data.define(:value, :error, :warning) + + def self.call_api(url) + Rails.cache.fetch(url, expires_in: 24.hours) do + resp = Scrapers::Util.make_get_request(url) + JSON.parse(resp) + end + end + + def self.get_exons_for_ensembl_id(ensembl_id, warning = nil) + t = ensembl_id.split('.').first + url = "#{ENSEMBL_DOMAIN}/overlap/id/#{ensembl_id}?content-type=application/json;feature=exon" + begin + data = call_api(url) + rescue StandardError => e + error_message = JSON.parse(e.message)['error'] + if error_message == "No object found for ID #{ensembl_id}" + t = ensembl_id.split('.').first + res = get_exons_for_ensembl_id(t, "Transcript ID Version not found in GRCh37: #{ensembl_id}") + if res.error + return EnsemblResult.new(nil, res.error, warning) + end + elsif error_message == "ID '#{ensembl_id}' not found" + return EnsemblResult.new(nil, "Transcript doesnt exist in GRCh37 at any version: #{ensembl_id}", warning) + else + return EnsemblResult.new(nil, nil, warning) + end + end + EnsemblResult.new(data.sort_by { |exon| exon['start'] }, nil, warning) + end + + def self.get_fusion_exon(transcript, position, position_type, variant) + res = get_exons_for_ensembl_id(transcript, variant) + + if res.value.nil? + return res + end + + exons = res.value + + t = transcript.split('.').first + e = exons.select{ |e| e['Parent'] == t && e[position_type] == position } + + if e.size > 1 + return EnsemblResult.new(nil, "More than one exon match found", warning) + elsif e.size == 0 + return EnsemblResult.new(nil, "No exon matches found.", warning) + end + + EnsemblResult.new(e.first, nil, warning) + end + end +end diff --git a/server/app/models/activities/create_fusion_variant.rb b/server/app/models/activities/create_fusion_variant.rb index 415e6b588..36ce8a929 100644 --- a/server/app/models/activities/create_fusion_variant.rb +++ b/server/app/models/activities/create_fusion_variant.rb @@ -1,13 +1,13 @@ module Activities class CreateFusionVariant < Base - attr_reader :variant_name, :three_prime_coords, :five_prime_coords, :feature_id, :variant, :molecular_profile, :vicc_name + attr_reader :variant_name, :three_prime_start_exon_coords, :five_prime_end_exon_coords, :feature_id, :variant, :molecular_profile, :vicc_name - def initialize(originating_user:, organization_id:, three_prime_coords:, five_prime_coords:, civic_name:, vicc_name:, feature_id:) + def initialize(originating_user:, organization_id:, three_prime_start_exon_coords:, five_prime_end_exon_coords:, civic_name:, vicc_name:, feature_id:) super(organization_id: organization_id, user: originating_user) @variant_name = civic_name @vicc_name = vicc_name - @five_prime_coords = five_prime_coords - @three_prime_coords = three_prime_coords + @five_prime_end_exon_coords = five_prime_end_exon_coords + @three_prime_start_exon_coords = three_prime_start_exon_coords @feature_id = feature_id end @@ -37,13 +37,25 @@ def call_actions @variant = cmd.variant @molecular_profile = cmd.molecular_profile - variant.five_prime_coordinates = five_prime_coords - variant.three_prime_coordinates = three_prime_coords + variant.five_prime_end_exon_coordinates = five_prime_end_exon_coords + variant.three_prime_start_exon_coordinates = three_prime_start_exon_coords + stub_remaining_coordinates variant.save! events << cmd.events end + def stub_remaining_coordinates + if variant.fusion.five_prime_partner_status == 'known' + variant.five_prime_start_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Five Prime Start Exon Coordinate') + variant.five_prime_coordinates = VariantCoordinate.generate_stub(variant, 'Five Prime Fusion Coordinate') + end + if variant.fusion.three_prime_partner_status == 'known' + variant.three_prime_end_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Three Prime End Exon Coordinate') + variant.three_prime_coordinates = VariantCoordinate.generate_stub(variant, 'Three Prime Fusion Coordinate') + end + end + def linked_entities molecular_profile end diff --git a/server/app/models/exon_coordinate.rb b/server/app/models/exon_coordinate.rb index fc8eef937..cc0dd47bf 100644 --- a/server/app/models/exon_coordinate.rb +++ b/server/app/models/exon_coordinate.rb @@ -7,6 +7,8 @@ class ExonCoordinate < ApplicationRecord message: "%{value} is not a valid coordinate type" } + validates_with ExonCoordinateValidator + enum reference_build: Constants::SUPPORTED_REFERENCE_BUILDS enum exon_offset_direction: { @@ -19,6 +21,20 @@ class ExonCoordinate < ApplicationRecord negative: 'negative' }, _suffix: true + enum record_state: { + stub: 'stub', + exons_provided: 'exons_provided', + fully_curated: 'fully_curated' + } + + def self.generate_stub(variant, coordinate_type) + ExonCoordinate.create!( + variant: variant, + record_state: 'stub', + coordinate_type: coordinate_type + ) + end + def formatted_offset if exon_offset_direction.nil? '' diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb index 8f11bf9ae..e424d775a 100644 --- a/server/app/models/variant_coordinate.rb +++ b/server/app/models/variant_coordinate.rb @@ -5,6 +5,11 @@ class VariantCoordinate < ApplicationRecord enum reference_build: Constants::SUPPORTED_REFERENCE_BUILDS + enum record_state: { + stub: 'stub', + fully_curated: 'fully_curated' + } + validates :reference_bases, format: { with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, message: "only allows A,C,T,G or /" @@ -23,6 +28,14 @@ class VariantCoordinate < ApplicationRecord validates_with VariantCoordinateValidator + def self.generate_stub(variant, coordinate_type) + VariantCoordinate.create!( + variant: variant, + record_state: 'stub', + coordinate_type: coordinate_type + ) + end + def editable_fields [ :reference_build, diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index f80f45f7c..49f19c410 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -2,6 +2,10 @@ module Variants class FusionVariant < Variant has_one :fusion, through: :feature, source: :feature_instance, source_type: 'Features::Fusion' + #TODO - make this + #validates_with FusionVariantValidator + #check feature partner status and corresponding stubbed coords + has_many :exon_coordinates, foreign_key: 'variant_id' has_one :five_prime_coordinates, @@ -9,7 +13,7 @@ class FusionVariant < Variant foreign_key: 'variant_id', class_name: 'VariantCoordinate' - has_one :three_prime_coordinates, + has_one :three_prime_cordinates, ->() { where(coordinate_type: 'Three Prime Fusion Coordinate') }, foreign_key: 'variant_id', class_name: 'VariantCoordinate' @@ -34,6 +38,8 @@ class FusionVariant < Variant foreign_key: 'variant_id', class_name: 'ExonCoordinate' + after_create :populate_coordinates + def self.valid_variant_coordinate_types [ 'Five Prime Fusion Coordinate', @@ -161,5 +167,9 @@ def correct_coordinate_type errors.add(:variant_coordinates, 'Cannot specify three prime coordinates if the feature lacks a three prime gene') end end + + def populate_coordinates + PopulateFusionCoordinates.perform_later(self) + end end end diff --git a/server/app/validators/exon_coordinate_validator.rb b/server/app/validators/exon_coordinate_validator.rb new file mode 100644 index 000000000..1425665ae --- /dev/null +++ b/server/app/validators/exon_coordinate_validator.rb @@ -0,0 +1,51 @@ +class ExonCoordinateValidator < ActiveModel::Validator + include ValidationHelpers + + def validate(record) + case record.record_state + when 'stub' + validate_stub(record) + when 'exons_provided' + validate_exons_only(record) + when 'fully_curated' + validate_full_record(record) + else + raise StandardError.new("Unexpected record state: #{record.record_state}") + end + end + + private + #stub -> everything nullable except variant and coordinate type + #exons_provided -> exon, representative transcript, reference build, ensembl_version (possibly offset + direction) + #fully_curated -> everything required except offset + direction + def validate_stub(record) + validate_present(record, :coordinate_type) + end + + def validate_exons_only(record) + validate_present(record, :coordinate_type) + validate_present(record, :representative_transcript) + validate_present(record, :reference_build) + validate_present(record, :ensembl_version) + validate_present(record, :exon) + if record.exon_offset.present? + validate_present(record, :exon_offset_direction) + end + end + + def validate_full_record(record) + validate_exons_only(record) + validate_present(record, :chromosome) + validate_present(record, :strand) + validate_present(record, :start) + validate_present(record, :stop) + validate_present(record, :ensembl_id) + end + + def validate_gene_variant_coordinates(record) + validate_not_present(record, :exon_boundary) + validate_not_present(record, :exon_offset) + validate_not_present(record, :exon_offset_direction) + require_transcript_and_build_for_coords(record) + end +end diff --git a/server/app/validators/fusion_coordinate_validator.rb b/server/app/validators/fusion_coordinate_validator.rb deleted file mode 100644 index 97d60f1bf..000000000 --- a/server/app/validators/fusion_coordinate_validator.rb +++ /dev/null @@ -1,61 +0,0 @@ -class FusionCoordinateValidator < ActiveModel::Validator - def validate(record) - return true - case record.coordinate_type - when 'Gene Variant Coordinate' - validate_gene_variant_coordinates(record) - when 'Five Prime Fusion Coordinate' - validate_fusion_variant_coordinates(record) - when 'Three Prime Fusion Coordinate' - validate_fusion_variant_coordinates(record) - else - raise StandardError.new("Unsupported coordinate type: #{record.coordinate_type}") - end - end - - private - def validate_gene_variant_coordinates(record) - validate_not_present(record, :exon_boundary) - validate_not_present(record, :exon_offset) - validate_not_present(record, :exon_offset_direction) - require_transcript_and_build_for_coords(record) - end - - def validate_fusion_variant_coordinates(record) - require_transcript_and_build_for_coords(record) - - if record.exon_boundary.present? - validate_present(record, :representative_transcript, "You must specify a transcript if you supply an exon boundary") - end - - if record.exon_offset.present? - validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset value") - validate_present(record, :exon_offset_direction, "You must specify an offset direction if you supply an offset value") - end - - if record.exon_offset_direction.present? - validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset direction") - validate_present(record, :exon_offset, "You must specify an exon offset if you supply an offset direction") - end - end - - def require_transcript_and_build_for_coords(record) - #if any of these are set - if [:chromosome, :start, :stop].map { |field| record.send(field) }.any?(&:present?) - validate_present(record, :reference_build, "You must specify a reference_build if you supply coordinate information") - validate_present(record, :representative_transcript, "You must specify a transcript if you supply coordinate information") - end - end - - def validate_not_present(record, field, msg = "#{field} is not allowed on #{record.coordinate_type}") - if record.send(field).present? - record.errors.add(field, msg) - end - end - - def validate_present(record, field, msg = "#{field} is required on #{record.coordinate_type}") - if record.send(field).blank? - record.errors.add(field, msg) - end - end -end diff --git a/server/app/validators/validation_helpers.rb b/server/app/validators/validation_helpers.rb new file mode 100644 index 000000000..4d93d0fc0 --- /dev/null +++ b/server/app/validators/validation_helpers.rb @@ -0,0 +1,13 @@ +module ValidationHelpers + def validate_not_present(record, field, msg = "#{field} is not allowed on #{record.coordinate_type}") + if record.send(field).present? + record.errors.add(field, msg) + end + end + + def validate_present(record, field, msg = "#{field} is required on #{record.coordinate_type}") + if record.send(field).blank? + record.errors.add(field, msg) + end + end +end diff --git a/server/app/validators/variant_coordinate_validator.rb b/server/app/validators/variant_coordinate_validator.rb index f67744cf9..520f2944c 100644 --- a/server/app/validators/variant_coordinate_validator.rb +++ b/server/app/validators/variant_coordinate_validator.rb @@ -1,68 +1,44 @@ class VariantCoordinateValidator < ActiveModel::Validator + include ValidationHelpers + def validate(record) - case record.coordinate_type - when 'Gene Variant Coordinate' - validate_gene_variant_coordinates(record) - when 'Five Prime Fusion Coordinate' - validate_fusion_variant_coordinates(record) - when 'Three Prime Fusion Coordinate' - validate_fusion_variant_coordinates(record) + if record.record_state == 'stub' + validate_stub(record) else - raise StandardError.new("Unsupported coordinate type: #{record.coordinate_type}") - end - end - - private - def validate_gene_variant_coordinates(record) - #validate_not_present(record, :exon_boundary) - #validate_not_present(record, :exon_offset) - #validate_not_present(record, :exon_offset_direction) - require_transcript_and_build_for_coords(record) - if record.start.present? - validate_present(record, :stop, "You must specify a stop value if you specify a start value") - if record.stop.present? && record.start > record.stop - record.errors.add(:start, "Start coordinate must be before Stop coordinate") + case record.coordinate_type + when 'Gene Variant Coordinate' + validate_gene_variant_coordinates(record) + when 'Five Prime Fusion Coordinate' + validate_fusion_variant_coordinates(record) + when 'Three Prime Fusion Coordinate' + validate_fusion_variant_coordinates(record) + else + raise StandardError.new("Unsupported coordinate type: #{record.coordinate_type}") end - else - validate_not_present(record, :stop, "You cannot specify a stop without a start.") end end - def validate_fusion_variant_coordinates(record) - require_transcript_and_build_for_coords(record) - - #if record.exon_boundary.present? - # validate_present(record, :representative_transcript, "You must specify a transcript if you supply an exon boundary") - #end - - #if record.exon_offset.present? - # validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset value") - # validate_present(record, :exon_offset_direction, "You must specify an offset direction if you supply an offset value") - #end - - #if record.exon_offset_direction.present? - # validate_present(record, :exon_boundary, "You must specify an exon boundary if you supply an offset direction") - # validate_present(record, :exon_offset, "You must specify an exon offset if you supply an offset direction") - #end + private + def validate_stub(record) + validate_present(record, :coordinate_type) end - def require_transcript_and_build_for_coords(record) - #if any of these are set - if [:chromosome, :start, :stop].map { |field| record.send(field) }.any?(&:present?) - validate_present(record, :reference_build, "You must specify a reference_build if you supply coordinate information") - validate_present(record, :representative_transcript, "You must specify a transcript if you supply coordinate information") - end + def validate_gene_variant_coordinates(record) + require_genomic_position_fields(record) end - def validate_not_present(record, field, msg = "#{field} is not allowed on #{record.coordinate_type}") - if record.send(field).present? - record.errors.add(field, msg) - end + def validate_fusion_variant_coordinates(record) + require_genomic_position_fields(record) end - def validate_present(record, field, msg = "#{field} is required on #{record.coordinate_type}") - if record.send(field).blank? - record.errors.add(field, msg) + def require_genomic_position_fields(record) + validate_present(record, :chromosome) + validate_present(record, :start) + validate_present(record, :stop) + validate_present(record, :reference_build, "You must specify a reference_build if you supply coordinate information") + validate_present(record, :representative_transcript, "You must specify a transcript if you supply coordinate information") + if record.stop.present? && record.start.present? && record.start > record.stop + record.errors.add(:start, "Start coordinate must be before Stop coordinate") end end end diff --git a/server/db/migrate/20240806155507_rework_exon_nullability.rb b/server/db/migrate/20240806155507_rework_exon_nullability.rb new file mode 100644 index 000000000..00ad389aa --- /dev/null +++ b/server/db/migrate/20240806155507_rework_exon_nullability.rb @@ -0,0 +1,49 @@ +class ReworkExonNullability < ActiveRecord::Migration[7.1] + def up + create_enum :exon_coordinate_record_state, ["stub", "exons_provided", "fully_curated"] + create_enum :variant_coordinate_record_state, ["stub", "fully_curated"] + + change_column_null :exon_coordinates, :chromosome, true + change_column_null :exon_coordinates, :strand, true + change_column_null :exon_coordinates, :ensembl_id, true + change_column_null :exon_coordinates, :start, true + change_column_null :exon_coordinates, :stop, true + change_column_null :exon_coordinates, :exon, true + change_column_null :exon_coordinates, :ensembl_version, true + change_column_null :exon_coordinates, :representative_transcript, true + change_column_null :exon_coordinates, :reference_build, true + + change_column_null :variant_coordinates, :variant_id, false + + change_table :exon_coordinates do |t| + t.enum :record_state, enum_type: "exon_coordinate_record_state", null: false, default: "stub" + end + + change_table :variant_coordinates do |t| + t.enum :record_state, enum_type: "variant_coordinate_record_state", null: false, default: "stub" + end + + end + + def down + remove_column :exon_coordinates, :record_state + remove_column :variant_coordinates, :record_state + + execute <<-SQL + DROP TYPE exon_coordinate_record_state; + DROP TYPE variant_coordinate_record_state; + SQL + + change_column_null :exon_coordinates, :chromosome, false + change_column_null :exon_coordinates, :strand, false + change_column_null :exon_coordinates, :ensembl_id, false + change_column_null :exon_coordinates, :start, false + change_column_null :exon_coordinates, :stop, false + change_column_null :exon_coordinates, :exon, false + change_column_null :exon_coordinates, :ensembl_version, false + change_column_null :exon_coordinates, :representative_transcript, false + change_column_null :exon_coordinates, :reference_build, false + + change_column_null :variant_coordinates, :variant_id, true + end +end diff --git a/server/db/schema.rb b/server/db/schema.rb index 3ed018b59..becd1106a 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -10,14 +10,16 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_07_26_152414) do +ActiveRecord::Schema[7.1].define(version: 2024_08_06_155507) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" # Custom types defined in this database. # Note that some types may not work with other database engines. Be careful if changing database. + create_enum "exon_coordinate_record_state", ["stub", "exons_provided", "fully_curated"] create_enum "exon_offset_direction", ["positive", "negative"] create_enum "fusion_partner_status", ["known", "unknown", "multiple"] + create_enum "variant_coordinate_record_state", ["stub", "fully_curated"] create_table "acmg_codes", id: :serial, force: :cascade do |t| t.text "code" @@ -447,21 +449,22 @@ end create_table "exon_coordinates", force: :cascade do |t| - t.text "chromosome", null: false - t.enum "strand", null: false, enum_type: "exon_offset_direction" - t.bigint "start", null: false - t.bigint "stop", null: false - t.integer "exon", null: false - t.text "ensembl_id", null: false + t.text "chromosome" + t.enum "strand", enum_type: "exon_offset_direction" + t.bigint "start" + t.bigint "stop" + t.integer "exon" + t.text "ensembl_id" t.integer "exon_offset" t.enum "exon_offset_direction", enum_type: "exon_offset_direction" - t.integer "ensembl_version", null: false - t.text "representative_transcript", null: false + t.integer "ensembl_version" + t.text "representative_transcript" t.integer "reference_build" t.bigint "variant_id", null: false t.text "coordinate_type", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.enum "record_state", default: "stub", null: false, enum_type: "exon_coordinate_record_state" t.index ["chromosome"], name: "index_exon_coordinates_on_chromosome" t.index ["representative_transcript"], name: "index_exon_coordinates_on_representative_transcript" t.index ["start"], name: "index_exon_coordinates_on_start" @@ -915,10 +918,11 @@ t.integer "ensembl_version" t.text "representative_transcript" t.integer "reference_build" - t.bigint "variant_id" + t.bigint "variant_id", null: false t.text "coordinate_type", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.enum "record_state", default: "stub", null: false, enum_type: "variant_coordinate_record_state" t.index ["chromosome"], name: "index_variant_coordinates_on_chromosome" t.index ["reference_build"], name: "index_variant_coordinates_on_reference_build" t.index ["representative_transcript"], name: "index_variant_coordinates_on_representative_transcript" @@ -1321,55 +1325,6 @@ SQL add_index "molecular_profile_browse_table_rows", ["id"], name: "index_molecular_profile_browse_table_rows_on_id", unique: true - create_view "feature_browse_table_rows", materialized: true, sql_definition: <<-SQL - SELECT outer_features.id, - outer_features.name, - outer_features.flagged, - outer_features.deprecated, - outer_features.feature_instance_type, - outer_features.feature_instance_id, - array_agg(DISTINCT feature_aliases.name ORDER BY feature_aliases.name) AS alias_names, - json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'deprecated', diseases.deprecated, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, - json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'deprecated', therapies.deprecated, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, - count(DISTINCT variants.id) AS variant_count, - count(DISTINCT evidence_items.id) AS evidence_item_count, - count(DISTINCT assertions.id) AS assertion_count, - count(DISTINCT molecular_profiles.id) AS molecular_profile_count - FROM ((((((((((((features outer_features - LEFT JOIN feature_aliases_features ON ((feature_aliases_features.feature_id = outer_features.id))) - LEFT JOIN feature_aliases ON ((feature_aliases.id = feature_aliases_features.feature_alias_id))) - JOIN variants ON ((variants.feature_id = outer_features.id))) - JOIN molecular_profiles_variants ON ((molecular_profiles_variants.variant_id = variants.id))) - JOIN molecular_profiles ON ((molecular_profiles.id = molecular_profiles_variants.molecular_profile_id))) - LEFT JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) - LEFT JOIN diseases ON ((diseases.id = evidence_items.disease_id))) - LEFT JOIN evidence_items_therapies ON ((evidence_items_therapies.evidence_item_id = evidence_items.id))) - LEFT JOIN therapies ON ((therapies.id = evidence_items_therapies.therapy_id))) - LEFT JOIN assertions ON ((assertions.molecular_profile_id = molecular_profiles.id))) - LEFT JOIN LATERAL ( SELECT therapies_1.id AS therapy_id, - count(DISTINCT evidence_items_1.id) AS total - FROM (((((evidence_items evidence_items_1 - LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - LEFT JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) - LEFT JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) - LEFT JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) - WHERE ((variants_1.feature_id = outer_features.id) AND (molecular_profiles_1.id IS NOT NULL)) - GROUP BY therapies_1.id) therapy_count ON ((therapies.id = therapy_count.therapy_id))) - LEFT JOIN LATERAL ( SELECT diseases_1.id AS disease_id, - count(DISTINCT evidence_items_1.id) AS total - FROM ((((evidence_items evidence_items_1 - LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - LEFT JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) - LEFT JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) - WHERE ((variants_1.feature_id = outer_features.id) AND (molecular_profiles_1.id IS NOT NULL)) - GROUP BY diseases_1.id) disease_count ON ((diseases.id = disease_count.disease_id))) - WHERE (((evidence_items.status)::text <> 'rejected'::text) OR ((evidence_items.status IS NULL) AND (molecular_profiles.deprecated = false) AND (variants.deprecated = false))) - GROUP BY outer_features.id, outer_features.name; - SQL - add_index "feature_browse_table_rows", ["id"], name: "index_feature_browse_table_rows_on_id", unique: true - create_view "variant_browse_table_rows", materialized: true, sql_definition: <<-SQL SELECT outer_variants.id, outer_variants.name, @@ -1475,4 +1430,54 @@ SQL add_index "user_browse_table_rows", ["id"], name: "index_user_browse_table_rows_on_id", unique: true + create_view "feature_browse_table_rows", materialized: true, sql_definition: <<-SQL + SELECT outer_features.id, + outer_features.name, + outer_features.flagged, + outer_features.deprecated, + outer_features.feature_instance_type, + outer_features.feature_instance_id, + outer_features.full_name, + array_agg(DISTINCT feature_aliases.name ORDER BY feature_aliases.name) AS alias_names, + json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'deprecated', diseases.deprecated, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, + json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'deprecated', therapies.deprecated, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, + count(DISTINCT variants.id) AS variant_count, + count(DISTINCT evidence_items.id) AS evidence_item_count, + count(DISTINCT assertions.id) AS assertion_count, + count(DISTINCT molecular_profiles.id) AS molecular_profile_count + FROM ((((((((((((features outer_features + LEFT JOIN feature_aliases_features ON ((feature_aliases_features.feature_id = outer_features.id))) + LEFT JOIN feature_aliases ON ((feature_aliases.id = feature_aliases_features.feature_alias_id))) + JOIN variants ON ((variants.feature_id = outer_features.id))) + JOIN molecular_profiles_variants ON ((molecular_profiles_variants.variant_id = variants.id))) + JOIN molecular_profiles ON ((molecular_profiles.id = molecular_profiles_variants.molecular_profile_id))) + LEFT JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) + LEFT JOIN diseases ON ((diseases.id = evidence_items.disease_id))) + LEFT JOIN evidence_items_therapies ON ((evidence_items_therapies.evidence_item_id = evidence_items.id))) + LEFT JOIN therapies ON ((therapies.id = evidence_items_therapies.therapy_id))) + LEFT JOIN assertions ON ((assertions.molecular_profile_id = molecular_profiles.id))) + LEFT JOIN LATERAL ( SELECT therapies_1.id AS therapy_id, + count(DISTINCT evidence_items_1.id) AS total + FROM (((((evidence_items evidence_items_1 + LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + LEFT JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) + LEFT JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) + LEFT JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) + WHERE ((variants_1.feature_id = outer_features.id) AND (molecular_profiles_1.id IS NOT NULL)) + GROUP BY therapies_1.id) therapy_count ON ((therapies.id = therapy_count.therapy_id))) + LEFT JOIN LATERAL ( SELECT diseases_1.id AS disease_id, + count(DISTINCT evidence_items_1.id) AS total + FROM ((((evidence_items evidence_items_1 + LEFT JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + LEFT JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + LEFT JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) + LEFT JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) + WHERE ((variants_1.feature_id = outer_features.id) AND (molecular_profiles_1.id IS NOT NULL)) + GROUP BY diseases_1.id) disease_count ON ((diseases.id = disease_count.disease_id))) + WHERE (((evidence_items.status)::text <> 'rejected'::text) OR ((evidence_items.status IS NULL) AND (molecular_profiles.deprecated = false) AND (variants.deprecated = false))) + GROUP BY outer_features.id, outer_features.name; + SQL + add_index "feature_browse_table_rows", ["id"], name: "index_feature_browse_table_rows_on_id", unique: true + end diff --git a/server/misc_scripts/fusions/fusion_builder.rb b/server/misc_scripts/fusions/fusion_builder.rb new file mode 100644 index 000000000..fe50fb53a --- /dev/null +++ b/server/misc_scripts/fusions/fusion_builder.rb @@ -0,0 +1,46 @@ +#run after backfill variant coords +require 'net/http' +require 'json' +require 'uri' + +fusions = VariantType.where(name: 'transcript_fusion').first.variants +@cache = {} + +def call_api(url, key = nil) + if key && @cache.has_key?(key) + @cache[key] + else + resp = Scrapers::Util.make_get_request(url) + binding.irb + data = JSON.parse(resp) + @cache[key] = data if key + end +end + +def call_fusion_builder(chr:, start:, stop:, transcript:) + q = { + chromosome: chr, + start: start, + end: stop, + transcript: transcript + } + + res = call_api("http://fusion-builder.cancervariants.org/api/utilities/get_exon?#{q.to_query}") + binding.irb +end + +begin + fusions.find_each do |variant| + (five_prime_gene_symbol, three_prime_gene_symbol) = variant.name.split(" ").first.split("::") + + if variant.chromosome.present? && five_prime_gene_symbol.present? + call_fusion_builder(chr: variant.chromosome, start: variant.start, stop: variant.stop, transcript: variant.representative_transcript) + end + end + +rescue StandardError => e + binding.irb +end + + + diff --git a/server/misc_scripts/fusions/lift_genomic_coords_to_exons.rb b/server/misc_scripts/fusions/lift_genomic_coords_to_exons.rb new file mode 100644 index 000000000..c09355084 --- /dev/null +++ b/server/misc_scripts/fusions/lift_genomic_coords_to_exons.rb @@ -0,0 +1,68 @@ +#run after backfill variant coords +require 'net/http' +require 'json' +require 'uri' + +fusions = VariantType.where(name: 'transcript_fusion').first.variants +@cache = {} + +def call_api(url, key) + if @cache.has_key?(key) + @cache[key] + else + resp = Scrapers::Util.make_get_request(url) + data = JSON.parse(resp) + @cache[key] = data + end +end + +#hgnc symbol? +def get_ensembl_id(gene_symbol) + key = "#{gene_symbol}:ensembl_id" + url ="https://grch37.rest.ensembl.org/xrefs/symbol/human/#{gene_symbol}?object_type=gene;content-type=application/json" + data = call_api(url, key) + ensembl_candidates = data.select { |gene| gene["id"] =~ /^ENSG/ } + if ensembl_candidates.size > 1 + binding.irb + raise StandardError.new("More than one match found for #{gene_symbol}") + elsif ensembl_candidates.size == 0 + raise StandardError.new("No matches found for #{gene_symbol}") + end + + ensembl_candidates.first['id'] +end + +def get_exons_for_region(region) + key = "#{region}::exons" + url = "https://grch37.rest.ensembl.org/overlap/region/human/#{region}?feature=exon;content-type=application/json" + data = call_api(url, key) + data.sort_by { |exon| exon['start'] } +end + +#exon vs cds? +def get_exons_for_ensembl_id(ensembl_id) + key = "#{ensembl_id}::exons" + url = "https://grch37.rest.ensembl.org/overlap/id/#{ensembl_id}?content-type=application/json;feature=exon" + data = call_api(url, key) + data.sort_by { |exon| exon['start'] } +end + +begin + fusions.find_each do |variant| + (five_prime_gene_symbol, three_prime_gene_symbol) = variant.name.split(" ").first.split("::") + + if variant.chromosome.present? && five_prime_gene_symbol.present? + ensembl_gene_id = get_ensembl_id(five_prime_gene_symbol) + gene_exons = get_exons_for_ensembl_id(ensembl_gene_id) + transcript_exons = get_exons_for_ensembl_id(variant.representative_transcript) + variant_exons = get_exons_for_region("#{variant.chromosome}:#{variant.start}-#{variant.stop}") + binding.irb + end + end + +rescue StandardError => e + binding.irb +end + + + diff --git a/server/misc_scripts/fusions/port_fusion_coords.rb b/server/misc_scripts/fusions/port_fusion_coords.rb index 5867da77c..0b20a5946 100644 --- a/server/misc_scripts/fusions/port_fusion_coords.rb +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -45,7 +45,8 @@ def create_exon_coords(variant, relation_name, coordinate_type, exon) vt.variants.where(deprecated: false).all end -fusions = fusion_variants - missense_variants +#fusions = fusion_variants - missense_variants +fusions = Array(Variant.find(503)) suspected_mps = fusion_variants.to_a.intersection(missense_variants) suspected_mps_report = File.open("fusions_that_are_mps.tsv", 'w') From 36b6e44389294cf7b8302eec89f6585dfbdbd3cd Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 7 Aug 2024 11:09:51 -0500 Subject: [PATCH 26/56] additional tweaks to fusion coordinate fill script --- .../app/jobs/populate_fusion_coordinates.rb | 39 ++++++++++++------- server/app/models/variants/fusion_variant.rb | 2 +- .../fusions/port_fusion_coords.rb | 4 +- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/server/app/jobs/populate_fusion_coordinates.rb b/server/app/jobs/populate_fusion_coordinates.rb index dfc8663cb..763d120af 100644 --- a/server/app/jobs/populate_fusion_coordinates.rb +++ b/server/app/jobs/populate_fusion_coordinates.rb @@ -16,18 +16,17 @@ def perform(variant) def populate_coords(coords, secondary_coordinates) if coords.present? && coords.representative_transcript.present? - exon = get_exon_for_transcript(coords.representative_transcript, coords.exon) - (strand, highest_exon) = populate_exon_coordinates(coords, exon) + (exon, highest_exon) = get_exon_for_transcript(coords.representative_transcript, coords.exon) + populate_exon_coordinates(coords, exon) - if strand == '1' - secondary_exon = get_exon_for_transcript(secondary_coordinates.representative_transcript, 1) + if coords.coordinate_type =~ /Five Prime/ + (secondary_exon, _) = get_exon_for_transcript(secondary_coordinates.representative_transcript, 1) populate_exon_coordinates(secondary_coordinates, secondary_exon) else - secondary_exon = get_exon_for_transcript(secondary_coordinates.representative_transcript, highest_exon) + (secondary_exon, _) = get_exon_for_transcript(secondary_coordinates.representative_transcript, highest_exon) populate_exon_coordinates(secondary_coordinates, secondary_exon) end end - end def get_exon_for_transcript(transcript, exon_number) @@ -49,7 +48,11 @@ def get_exon_for_transcript(transcript, exon_number) raise StandardError.new("No Exons Found") end - exon.first + max_exon_on_transcript = exons.select { |e| e['Parent'] == t } + .max_by { |e| e['rank'] } + .fetch('rank') + + [exon.first, max_exon_on_transcript] end def populate_exon_coordinates(coordinates, exon) @@ -67,18 +70,28 @@ def populate_exon_coordinates(coordinates, exon) coordinates.record_state = 'fully_curated' coordinates.save! - [strand, exon['rank']] + #strand end def populate_representative_coordinates(coordinate, start_exon_coordinates, end_exon_coordinates) - if start_exon_coordinates.strand == '1' - coordinate.start = start_exon_coordinates.start - coordinate.stop = end_exon_coordinates.stop + if start_exon_coordinates.strand == 'positive' + coordinate.start = calculate_offset(start_exon_coordinates.start, start_exon_coordinates) + coordinate.stop = calculate_offset(end_exon_coordinates.stop, end_exon_coordinates) else - coordinate.start = end_exon_coordinates.stop - coordinate.stop = start_exon_coordinates.start + coordinate.start = calculate_offset(end_exon_coordinates.start, end_exon_coordinates) + coordinate.stop = calculate_offset(start_exon_coordinates.stop, start_exon_coordinates) end coordinate.record_state = 'fully_curated' coordinate.save! end end + +def calculate_offset(pos, coords) + if coords.exon_offset.blank? + pos + elsif coords.exon_offset_direction == 'positive' + pos + coords.exon_offset + else + pos - coords.exon_offset + end +end diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 49f19c410..92e7ff478 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -13,7 +13,7 @@ class FusionVariant < Variant foreign_key: 'variant_id', class_name: 'VariantCoordinate' - has_one :three_prime_cordinates, + has_one :three_prime_coordinates, ->() { where(coordinate_type: 'Three Prime Fusion Coordinate') }, foreign_key: 'variant_id', class_name: 'VariantCoordinate' diff --git a/server/misc_scripts/fusions/port_fusion_coords.rb b/server/misc_scripts/fusions/port_fusion_coords.rb index 0b20a5946..cf2084c14 100644 --- a/server/misc_scripts/fusions/port_fusion_coords.rb +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -344,7 +344,7 @@ def update_variant_coordinates(variant, five_prime_partner_status, three_prime_p end - if five_prime_strand == '-1' + if five_prime_strand == -1 #<--transcript direction<---- #stop exon-e-e-e-start_exon #stop_exon_start_position nnnnnnnn stop_exon_end_position-e-e-e-start_exon_start_position nnnn start_exon_end_position @@ -402,7 +402,7 @@ def update_variant_coordinates(variant, five_prime_partner_status, three_prime_p next end - if three_prime_strand == '-1' + if three_prime_strand == -1 #<--transcript direction<---- #stop exon-e-e-e-start_exon #stop_exon_start_position nnnnnnnn stop_exon_end_position-e-e-e-start_exon_start_position nnnn start_exon_end_position From 5d6d61ec19c35b717b25aec7c5a18afed98fb25f Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Wed, 7 Aug 2024 14:37:14 -0500 Subject: [PATCH 27/56] Display exon coordinates on fusion variant pages --- .../coordinates-card.component.html | 375 +++++--- .../coordinates-card.component.less | 6 +- .../coordinates-card.component.ts | 4 +- .../coordinates-card.module.ts | 2 + .../coordinates-card.query.gql | 31 +- .../gene-variant-revise.query.gql | 2 +- .../fusion-variant-select.form.ts | 10 +- .../input-formatters/variant-revise.ts | 2 - .../src/app/generated/civic.apollo-helpers.ts | 78 +- client/src/app/generated/civic.apollo.ts | 195 ++-- client/src/app/generated/server.model.graphql | 99 ++- client/src/app/generated/server.schema.json | 833 ++++++++++-------- .../variants-summary.query.gql | 30 +- ...dinate_type.rb => exon_coordinate_type.rb} | 10 +- ...ate_type.rb => variant_coordinate_type.rb} | 4 +- .../types/exon_coordinate_type_type.rb | 7 + ...usion_offset_direction.rb => direction.rb} | 2 +- .../types/fusion/fusion_variant_input_type.rb | 4 +- ...ype.rb => variant_coordinate_type_type.rb} | 4 +- .../types/variants/fusion_variant_type.rb | 24 +- .../types/variants/gene_variant_type.rb | 2 +- 21 files changed, 1075 insertions(+), 649 deletions(-) rename server/app/graphql/types/entities/{fusion_variant_coordinate_type.rb => exon_coordinate_type.rb} (54%) rename server/app/graphql/types/entities/{gene_variant_coordinate_type.rb => variant_coordinate_type.rb} (76%) create mode 100644 server/app/graphql/types/exon_coordinate_type_type.rb rename server/app/graphql/types/fusion/{fusion_offset_direction.rb => direction.rb} (69%) rename server/app/graphql/types/{entities/coordinate_type_type.rb => variant_coordinate_type_type.rb} (64%) diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html index 7cc1faf51..85e95a9f4 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html @@ -14,31 +14,89 @@ nzGutter="12"> @if (variant.fivePrimeCoordinates) { - - - + + + + + + + + + + + + + + + + + } @if (variant.threePrimeCoordinates) { - - - + + + + + + + + + + + + + + + + + } @@ -70,31 +128,89 @@ nzGutter="12"> @if (this.cvcCoordinates.fivePrimeCoordinates) { - - - + + + + + + + + + + + + + + + + + } @if (this.cvcCoordinates.threePrimeCoordinates) { - - - + + + + + + + + + + + + + + + + + } @@ -106,7 +222,7 @@ + nzType="secondary"> None specified @@ -122,7 +238,7 @@ nzLayout="horizontal" nzBordered="true" nzSize="small" - [nzColumn]="{ xxl: 4, xl: 2, lg: 1, md: 1, sm: 1, xs: 1 }"> + [nzColumn]="{ xxl: 3, xl: 2, lg: 1, md: 1, sm: 1, xs: 1 }"> @@ -135,10 +251,24 @@ {{ coords.ensemblVersion }} + + + + + {{ coords.representativeTranscript }} + + + + nzTitle="Chr."> {{ coords.chromosome }} @@ -146,8 +276,7 @@ + nzTitle="Start"> {{ coords.start }} @@ -155,36 +284,20 @@ + nzTitle="Stop"> {{ coords.stop }} - - - - {{ coords.representativeTranscript }} - - + nzTitle="Ref. Bases"> + nzTitle="Var. Bases"> - - {{ coords.exonBoundary | ifEmpty: '--' }} - - - - - {{ coords.exonBoundary | ifEmpty: '--' }} - - - - - {{ coords.exonOffsetDirection | enumToTitle - }}{{ coords.exonOffset | ifEmpty: '--' }} - - @@ -253,3 +333,102 @@ } + + + @if (coords) { + + + + + + + {{ coords.exon }} + + + + + + + {{ coords.ensemblId }} + + + + + + + {{ coords.representativeTranscript }} + + + + + + + {{ coords.strand | enumToTitle }} + + + + + + + {{ coords.chromosome }} + + + + + + + {{ coords.start }} + + + + + + + {{ coords.stop }} + + + + + + @if (coords.exonOffset && coords.exonOffsetDirection) { + {{ coords.exonOffsetDirection | enumToTitle }}{{ coords.exonOffset }} + } + @else { + 0 + } + + + + } @else { + + + } + diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.less b/client/src/app/components/variants/coordinates-card/coordinates-card.component.less index 39dc75741..95de0f8f3 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.less +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.less @@ -1,9 +1,13 @@ // @import "themes/overrides/descriptions-overrides.less"; + nz-card:first-of-type ::ng-deep { + .ant-tabs-tab-btn { + padding-left: 5px; + } .ant-card-body { // remove card body padding - padding: 0; + padding: 0px; // card title has a -1 bottom margin for some reason, partially occluding nz-description's top border margin-top: 1px; } diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts b/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts index 62d2cf7f1..19afde320 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.ts @@ -1,6 +1,6 @@ import { Component, Input, OnInit } from '@angular/core' import { - CoordinateType, + VariantCoordinateType, CoordinatesCardFieldsFragment, CoordinatesCardGQL, CoordinatesCardQuery, @@ -27,7 +27,7 @@ export class CvcCoordinatesCard implements OnInit { loading$?: Observable variant$?: Observable> - coordinateTypes = CoordinateType + coordinateTypes = VariantCoordinateType constructor(private gql: CoordinatesCardGQL) {} diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts index 53ce1a95a..e9d84f24d 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.module.ts @@ -9,6 +9,7 @@ import { LetDirective, PushPipe } from '@ngrx/component' import { CvcPipesModule } from '@app/core/pipes/pipes.module' import { NzTypographyModule } from 'ng-zorro-antd/typography' import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzTabsModule } from 'ng-zorro-antd/tabs' @NgModule({ declarations: [CvcCoordinatesCard], @@ -18,6 +19,7 @@ import { NzGridModule } from 'ng-zorro-antd/grid' PushPipe, LetDirective, NzCardModule, + NzTabsModule, NzDescriptionsModule, NzTypographyModule, NzGridModule, diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql index acf5a75ab..bd0ba75c9 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.query.gql @@ -14,10 +14,37 @@ fragment CoordinatesCardFields on VariantInterface { } ... on FusionVariant { fivePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields } threePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields } } } + +fragment ExonCoordinateFields on ExonCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + exon + exonOffset + exonOffsetDirection + ensemblId + strand + coordinateType +} diff --git a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql index 4b8d149c3..f5f589e8e 100644 --- a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql +++ b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.query.gql @@ -27,7 +27,7 @@ fragment RevisableGeneVariantFields on GeneVariant { } } -fragment CoordinateFields on GeneVariantCoordinate { +fragment CoordinateFields on VariantCoordinate { referenceBuild ensemblVersion chromosome diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts index 7547e92be..b3336685e 100644 --- a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts @@ -12,7 +12,7 @@ import { } from '@angular/forms' import { FeatureSelectTypeaheadFieldsFragment, - FusionOffsetDirection, + Direction, FusionPartnerStatus, Maybe, ReferenceBuild, @@ -46,11 +46,11 @@ type FusionVariantSelectModel = { fivePrimeTranscript?: string fivePrimeExonEnd?: string fivePrimeOffset?: string - fivePrimeOffsetDirection?: FusionOffsetDirection + fivePrimeOffsetDirection?: Direction threePrimeTranscript?: string threePrimeExonStart?: string threePrimeOffset?: string - threePrimeOffsetDirection?: FusionOffsetDirection + threePrimeOffsetDirection?: Direction referenceBuild?: ReferenceBuild ensemblVersion?: number organizationId?: number @@ -130,11 +130,11 @@ export class CvcFusionVariantSelectForm { const selectOptions = [ { label: '+', - value: FusionOffsetDirection.Positive, + value: Direction.Positive, }, { label: '-', - value: FusionOffsetDirection.Negative, + value: Direction.Negative, }, ] diff --git a/client/src/app/forms/utilities/input-formatters/variant-revise.ts b/client/src/app/forms/utilities/input-formatters/variant-revise.ts index 1f81decc1..0ebc93a20 100644 --- a/client/src/app/forms/utilities/input-formatters/variant-revise.ts +++ b/client/src/app/forms/utilities/input-formatters/variant-revise.ts @@ -1,7 +1,5 @@ import { ClinvarInput, - GeneVariantCoordinate, - GeneVariantCoordinateInput, Maybe, } from '@app/generated/civic.apollo' import * as fmt from '@app/forms/utilities/input-formatters' diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index e0391b7e0..d953cfddf 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -828,6 +828,22 @@ export type EvidenceItemsByTypeFieldPolicy = { predisposingCount?: FieldPolicy | FieldReadFunction, prognosticCount?: FieldPolicy | FieldReadFunction }; +export type ExonCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblId' | 'ensemblVersion' | 'exon' | 'exonOffset' | 'exonOffsetDirection' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'strand' | ExonCoordinateKeySpecifier)[]; +export type ExonCoordinateFieldPolicy = { + chromosome?: FieldPolicy | FieldReadFunction, + coordinateType?: FieldPolicy | FieldReadFunction, + ensemblId?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + exon?: FieldPolicy | FieldReadFunction, + exonOffset?: FieldPolicy | FieldReadFunction, + exonOffsetDirection?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + referenceBuild?: FieldPolicy | FieldReadFunction, + representativeTranscript?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction, + stop?: FieldPolicy | FieldReadFunction, + strand?: FieldPolicy | FieldReadFunction +}; export type FactorKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'ncitDetails' | 'ncitId' | 'revisions' | 'sources' | 'variants' | FactorKeySpecifier)[]; export type FactorFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, @@ -1021,7 +1037,7 @@ export type FusionEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type FusionVariantKeySpecifier = ('clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'flagged' | 'flags' | 'fusion' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'variantAliases' | 'variantTypes' | 'viccCompliantName' | FusionVariantKeySpecifier)[]; +export type FusionVariantKeySpecifier = ('clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'fivePrimeEndExonCoordinates' | 'fivePrimeStartExonCoordinates' | 'flagged' | 'flags' | 'fusion' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'threePrimeEndExonCoordinates' | 'threePrimeStartExonCoordinates' | 'variantAliases' | 'variantTypes' | 'viccCompliantName' | FusionVariantKeySpecifier)[]; export type FusionVariantFieldPolicy = { clinvarIds?: FieldPolicy | FieldReadFunction, comments?: FieldPolicy | FieldReadFunction, @@ -1032,6 +1048,8 @@ export type FusionVariantFieldPolicy = { events?: FieldPolicy | FieldReadFunction, feature?: FieldPolicy | FieldReadFunction, fivePrimeCoordinates?: FieldPolicy | FieldReadFunction, + fivePrimeEndExonCoordinates?: FieldPolicy | FieldReadFunction, + fivePrimeStartExonCoordinates?: FieldPolicy | FieldReadFunction, flagged?: FieldPolicy | FieldReadFunction, flags?: FieldPolicy | FieldReadFunction, fusion?: FieldPolicy | FieldReadFunction, @@ -1047,24 +1065,12 @@ export type FusionVariantFieldPolicy = { singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, threePrimeCoordinates?: FieldPolicy | FieldReadFunction, + threePrimeEndExonCoordinates?: FieldPolicy | FieldReadFunction, + threePrimeStartExonCoordinates?: FieldPolicy | FieldReadFunction, variantAliases?: FieldPolicy | FieldReadFunction, variantTypes?: FieldPolicy | FieldReadFunction, viccCompliantName?: FieldPolicy | FieldReadFunction }; -export type FusionVariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'exonBoundary' | 'exonOffset' | 'exonOffsetDirection' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | FusionVariantCoordinateKeySpecifier)[]; -export type FusionVariantCoordinateFieldPolicy = { - chromosome?: FieldPolicy | FieldReadFunction, - coordinateType?: FieldPolicy | FieldReadFunction, - ensemblVersion?: FieldPolicy | FieldReadFunction, - exonBoundary?: FieldPolicy | FieldReadFunction, - exonOffset?: FieldPolicy | FieldReadFunction, - exonOffsetDirection?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - referenceBuild?: FieldPolicy | FieldReadFunction, - representativeTranscript?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction -}; export type GeneKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'entrezId' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'myGeneInfoDetails' | 'name' | 'revisions' | 'sources' | 'variants' | GeneKeySpecifier)[]; export type GeneFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, @@ -1136,19 +1142,6 @@ export type GeneVariantFieldPolicy = { variantAliases?: FieldPolicy | FieldReadFunction, variantTypes?: FieldPolicy | FieldReadFunction }; -export type GeneVariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'id' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | GeneVariantCoordinateKeySpecifier)[]; -export type GeneVariantCoordinateFieldPolicy = { - chromosome?: FieldPolicy | FieldReadFunction, - coordinateType?: FieldPolicy | FieldReadFunction, - ensemblVersion?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction, - referenceBases?: FieldPolicy | FieldReadFunction, - referenceBuild?: FieldPolicy | FieldReadFunction, - representativeTranscript?: FieldPolicy | FieldReadFunction, - start?: FieldPolicy | FieldReadFunction, - stop?: FieldPolicy | FieldReadFunction, - variantBases?: FieldPolicy | FieldReadFunction -}; export type LeaderboardOrganizationKeySpecifier = ('actionCount' | 'description' | 'eventCount' | 'events' | 'id' | 'memberCount' | 'members' | 'mostRecentActivityTimestamp' | 'name' | 'orgAndSuborgsStatsHash' | 'orgStatsHash' | 'profileImagePath' | 'rank' | 'ranks' | 'subGroups' | 'url' | LeaderboardOrganizationKeySpecifier)[]; export type LeaderboardOrganizationFieldPolicy = { actionCount?: FieldPolicy | FieldReadFunction, @@ -2240,6 +2233,19 @@ export type VariantConnectionFieldPolicy = { pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; +export type VariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'id' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | VariantCoordinateKeySpecifier)[]; +export type VariantCoordinateFieldPolicy = { + chromosome?: FieldPolicy | FieldReadFunction, + coordinateType?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + referenceBases?: FieldPolicy | FieldReadFunction, + referenceBuild?: FieldPolicy | FieldReadFunction, + representativeTranscript?: FieldPolicy | FieldReadFunction, + start?: FieldPolicy | FieldReadFunction, + stop?: FieldPolicy | FieldReadFunction, + variantBases?: FieldPolicy | FieldReadFunction +}; export type VariantEdgeKeySpecifier = ('cursor' | 'node' | VariantEdgeKeySpecifier)[]; export type VariantEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, @@ -2694,6 +2700,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | EvidenceItemsByTypeKeySpecifier | (() => undefined | EvidenceItemsByTypeKeySpecifier), fields?: EvidenceItemsByTypeFieldPolicy, }, + ExonCoordinate?: Omit & { + keyFields?: false | ExonCoordinateKeySpecifier | (() => undefined | ExonCoordinateKeySpecifier), + fields?: ExonCoordinateFieldPolicy, + }, Factor?: Omit & { keyFields?: false | FactorKeySpecifier | (() => undefined | FactorKeySpecifier), fields?: FactorFieldPolicy, @@ -2758,10 +2768,6 @@ export type StrictTypedTypePolicies = { keyFields?: false | FusionVariantKeySpecifier | (() => undefined | FusionVariantKeySpecifier), fields?: FusionVariantFieldPolicy, }, - FusionVariantCoordinate?: Omit & { - keyFields?: false | FusionVariantCoordinateKeySpecifier | (() => undefined | FusionVariantCoordinateKeySpecifier), - fields?: FusionVariantCoordinateFieldPolicy, - }, Gene?: Omit & { keyFields?: false | GeneKeySpecifier | (() => undefined | GeneKeySpecifier), fields?: GeneFieldPolicy, @@ -2778,10 +2784,6 @@ export type StrictTypedTypePolicies = { keyFields?: false | GeneVariantKeySpecifier | (() => undefined | GeneVariantKeySpecifier), fields?: GeneVariantFieldPolicy, }, - GeneVariantCoordinate?: Omit & { - keyFields?: false | GeneVariantCoordinateKeySpecifier | (() => undefined | GeneVariantCoordinateKeySpecifier), - fields?: GeneVariantCoordinateFieldPolicy, - }, LeaderboardOrganization?: Omit & { keyFields?: false | LeaderboardOrganizationKeySpecifier | (() => undefined | LeaderboardOrganizationKeySpecifier), fields?: LeaderboardOrganizationFieldPolicy, @@ -3190,6 +3192,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | VariantConnectionKeySpecifier | (() => undefined | VariantConnectionKeySpecifier), fields?: VariantConnectionFieldPolicy, }, + VariantCoordinate?: Omit & { + keyFields?: false | VariantCoordinateKeySpecifier | (() => undefined | VariantCoordinateKeySpecifier), + fields?: VariantCoordinateFieldPolicy, + }, VariantEdge?: Omit & { keyFields?: false | VariantEdgeKeySpecifier | (() => undefined | VariantEdgeKeySpecifier), fields?: VariantEdgeFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 2e7e915ba..c21283cb4 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -1149,12 +1149,6 @@ export type Contribution = { count: Scalars['Int']; }; -export enum CoordinateType { - FivePrimeFusionCoordinate = 'FIVE_PRIME_FUSION_COORDINATE', - GeneVariantCoordinate = 'GENE_VARIANT_COORDINATE', - ThreePrimeFusionCoordinate = 'THREE_PRIME_FUSION_COORDINATE' -} - export type Country = { __typename: 'Country'; id: Scalars['Int']; @@ -1509,6 +1503,11 @@ export type DeprecateVariantPayload = { variant?: Maybe; }; +export enum Direction { + Negative = 'NEGATIVE', + Positive = 'POSITIVE' +} + export type Disease = { __typename: 'Disease'; diseaseAliases: Array; @@ -1970,6 +1969,30 @@ export enum EvidenceType { Prognostic = 'PROGNOSTIC' } +export type ExonCoordinate = { + __typename: 'ExonCoordinate'; + chromosome?: Maybe; + coordinateType: ExonCoordinateType; + ensemblId?: Maybe; + ensemblVersion?: Maybe; + exon?: Maybe; + exonOffset?: Maybe; + exonOffsetDirection?: Maybe; + id: Scalars['Int']; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + start?: Maybe; + stop?: Maybe; + strand?: Maybe; +}; + +export enum ExonCoordinateType { + FivePrimeEndExonCoordinate = 'FIVE_PRIME_END_EXON_COORDINATE', + FivePrimeStartExonCoordinate = 'FIVE_PRIME_START_EXON_COORDINATE', + ThreePrimeEndExonCoordinate = 'THREE_PRIME_END_EXON_COORDINATE', + ThreePrimeStartExonCoordinate = 'THREE_PRIME_START_EXON_COORDINATE' +} + /** The Feature that a Variant can belong to */ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions & { __typename: 'Factor'; @@ -2623,11 +2646,6 @@ export type FusionEdge = { node?: Maybe; }; -export enum FusionOffsetDirection { - Negative = 'NEGATIVE', - Positive = 'POSITIVE' -} - /** The fusion partner's status and gene ID (if applicable) */ export type FusionPartnerInput = { /** The CIViC gene ID of the partner, if known */ @@ -2654,7 +2672,9 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla /** List and filter events for an object */ events: EventConnection; feature: Feature; - fivePrimeCoordinates?: Maybe; + fivePrimeCoordinates: VariantCoordinate; + fivePrimeEndExonCoordinates: ExonCoordinate; + fivePrimeStartExonCoordinates: ExonCoordinate; flagged: Scalars['Boolean']; /** List and filter flags. */ flags: FlagConnection; @@ -2671,7 +2691,9 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; singleVariantMolecularProfileId: Scalars['Int']; - threePrimeCoordinates?: Maybe; + threePrimeCoordinates: VariantCoordinate; + threePrimeEndExonCoordinates: ExonCoordinate; + threePrimeStartExonCoordinates: ExonCoordinate; variantAliases: Array; variantTypes: Array; viccCompliantName: Scalars['String']; @@ -2735,33 +2757,18 @@ export type FusionVariantRevisionsArgs = { status?: InputMaybe; }; -export type FusionVariantCoordinate = { - __typename: 'FusionVariantCoordinate'; - chromosome?: Maybe; - coordinateType: CoordinateType; - ensemblVersion?: Maybe; - exonBoundary?: Maybe; - exonOffset?: Maybe; - exonOffsetDirection?: Maybe; - id: Scalars['Int']; - referenceBuild?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - stop?: Maybe; -}; - /** The fields required to create a fusion variant */ export type FusionVariantInput = { ensemblVersion: Scalars['Int']; fivePrimeExonEnd?: InputMaybe; fivePrimeOffset?: InputMaybe; - fivePrimeOffsetDirection?: InputMaybe; + fivePrimeOffsetDirection?: InputMaybe; fivePrimeTranscript?: InputMaybe; /** The reference build for the genomic coordinates of this Variant. */ referenceBuild?: InputMaybe; threePrimeExonStart?: InputMaybe; threePrimeOffset?: InputMaybe; - threePrimeOffsetDirection?: InputMaybe; + threePrimeOffsetDirection?: InputMaybe; threePrimeTranscript?: InputMaybe; }; @@ -2913,7 +2920,7 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; - coordinates?: Maybe; + coordinates?: Maybe; creationActivity?: Maybe; deprecated: Scalars['Boolean']; deprecationActivity?: Maybe; @@ -3001,20 +3008,6 @@ export type GeneVariantRevisionsArgs = { status?: InputMaybe; }; -export type GeneVariantCoordinate = { - __typename: 'GeneVariantCoordinate'; - chromosome?: Maybe; - coordinateType: CoordinateType; - ensemblVersion?: Maybe; - id: Scalars['Int']; - referenceBases?: Maybe; - referenceBuild?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - stop?: Maybe; - variantBases?: Maybe; -}; - export type GeneVariantCoordinateInput = { chromosome?: InputMaybe; /** The Ensembl database version. */ @@ -6651,6 +6644,26 @@ export type VariantConnection = { totalCount: Scalars['Int']; }; +export type VariantCoordinate = { + __typename: 'VariantCoordinate'; + chromosome?: Maybe; + coordinateType: VariantCoordinateType; + ensemblVersion?: Maybe; + id: Scalars['Int']; + referenceBases?: Maybe; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + start?: Maybe; + stop?: Maybe; + variantBases?: Maybe; +}; + +export enum VariantCoordinateType { + FivePrimeFusionCoordinate = 'FIVE_PRIME_FUSION_COORDINATE', + GeneVariantCoordinate = 'GENE_VARIANT_COORDINATE', + ThreePrimeFusionCoordinate = 'THREE_PRIME_FUSION_COORDINATE' +} + export enum VariantDeprecationReason { Duplicate = 'DUPLICATE', FeatureDeprecated = 'FEATURE_DEPRECATED', @@ -7819,18 +7832,20 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; +type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; -type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined }; +type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined }; type CoordinatesCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string }; export type CoordinatesCardFieldsFragment = CoordinatesCardFields_FactorVariant_Fragment | CoordinatesCardFields_FusionVariant_Fragment | CoordinatesCardFields_GeneVariant_Fragment | CoordinatesCardFields_Variant_Fragment; +export type ExonCoordinateFieldsFragment = { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }; + export type VariantPopoverQueryVariables = Exact<{ variantId: Scalars['Int']; }>; @@ -8194,11 +8209,11 @@ export type GeneVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined } | { __typename: 'Variant', id: number } | undefined }; +export type GeneVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined }; +export type RevisableGeneVariantFieldsFragment = { __typename: 'GeneVariant', name: string, variantAliases: Array, alleleRegistryId?: string | undefined, clinvarIds: Array, hgvsDescriptions: Array, feature: { __typename: 'Feature', id: number, name: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined }; -export type CoordinateFieldsFragment = { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType }; +export type CoordinateFieldsFragment = { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }; export type SuggestGeneVariantRevisionMutationVariables = Exact<{ input: SuggestGeneVariantRevisionInput; @@ -8763,9 +8778,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8777,9 +8792,9 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; +type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; -type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }; @@ -8970,13 +8985,13 @@ export type CoordinateIdsForVariantQueryVariables = Exact<{ }>; -export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant' } | { __typename: 'GeneVariant', coordinates?: { __typename: 'GeneVariantCoordinate', id: number } | undefined } | { __typename: 'Variant' } | undefined }; +export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant' } | { __typename: 'GeneVariant', coordinates?: { __typename: 'VariantCoordinate', id: number } | undefined } | { __typename: 'Variant' } | undefined }; type VariantCoordinateIds_FactorVariant_Fragment = { __typename: 'FactorVariant' }; type VariantCoordinateIds_FusionVariant_Fragment = { __typename: 'FusionVariant' }; -type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates?: { __typename: 'GeneVariantCoordinate', id: number } | undefined }; +type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates?: { __typename: 'VariantCoordinate', id: number } | undefined }; type VariantCoordinateIds_Variant_Fragment = { __typename: 'Variant' }; @@ -8987,13 +9002,13 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; +type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; -type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; type VariantSummaryFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; @@ -9001,11 +9016,9 @@ export type VariantSummaryFieldsFragment = VariantSummaryFields_FactorVariant_Fr export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', ncitId?: string | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'GeneVariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: CoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; +export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; -export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined, threePrimeCoordinates?: { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined } | undefined }; - -export type FusionCoordinateFieldsFragment = { __typename: 'FusionVariantCoordinate', id: number, representativeTranscript?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, exonOffset?: number | undefined, exonBoundary?: number | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined, coordinateType: CoordinateType, exonOffsetDirection?: FusionOffsetDirection | undefined }; +export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; @@ -10161,7 +10174,7 @@ export const VariantTypeBrowseTableRowFieldsFragmentDoc = gql` } `; export const CoordinateFieldsFragmentDoc = gql` - fragment CoordinateFields on GeneVariantCoordinate { + fragment CoordinateFields on VariantCoordinate { referenceBuild ensemblVersion chromosome @@ -10173,19 +10186,20 @@ export const CoordinateFieldsFragmentDoc = gql` coordinateType } `; -export const FusionCoordinateFieldsFragmentDoc = gql` - fragment FusionCoordinateFields on FusionVariantCoordinate { - id - representativeTranscript +export const ExonCoordinateFieldsFragmentDoc = gql` + fragment ExonCoordinateFields on ExonCoordinate { referenceBuild ensemblVersion - exonOffset - exonBoundary chromosome + representativeTranscript start stop - coordinateType + exon + exonOffset exonOffsetDirection + ensemblId + strand + coordinateType } `; export const CoordinatesCardFieldsFragmentDoc = gql` @@ -10199,15 +10213,27 @@ export const CoordinatesCardFieldsFragmentDoc = gql` } ... on FusionVariant { fivePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields } threePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields } } } ${CoordinateFieldsFragmentDoc} -${FusionCoordinateFieldsFragmentDoc}`; +${ExonCoordinateFieldsFragmentDoc}`; export const VariantPopoverFieldsFragmentDoc = gql` fragment variantPopoverFields on VariantInterface { id @@ -11427,13 +11453,26 @@ export const FusionVariantSummaryFieldsFragmentDoc = gql` } } fivePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields } threePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields } } - ${FusionCoordinateFieldsFragmentDoc}`; + ${CoordinateFieldsFragmentDoc} +${ExonCoordinateFieldsFragmentDoc}`; export const VariantMolecularProfileCardFieldsFragmentDoc = gql` fragment VariantMolecularProfileCardFields on VariantInterface { id diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 3495b5145..137dcbf07 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -1826,12 +1826,6 @@ type Contribution { count: Int! } -enum CoordinateType { - FIVE_PRIME_FUSION_COORDINATE - GENE_VARIANT_COORDINATE - THREE_PRIME_FUSION_COORDINATE -} - type Country { id: Int! iso: String! @@ -2347,6 +2341,11 @@ type DeprecateVariantPayload { variant: VariantInterface } +enum Direction { + NEGATIVE + POSITIVE +} + type Disease { diseaseAliases: [String!]! diseaseUrl: String @@ -3081,6 +3080,29 @@ enum EvidenceType { PROGNOSTIC } +type ExonCoordinate { + chromosome: String + coordinateType: ExonCoordinateType! + ensemblId: String + ensemblVersion: Int + exon: Int + exonOffset: Int + exonOffsetDirection: Direction + id: Int! + referenceBuild: ReferenceBuild + representativeTranscript: String + start: Int + stop: Int + strand: Direction +} + +enum ExonCoordinateType { + FIVE_PRIME_END_EXON_COORDINATE + FIVE_PRIME_START_EXON_COORDINATE + THREE_PRIME_END_EXON_COORDINATE + THREE_PRIME_START_EXON_COORDINATE +} + """ The Feature that a Variant can belong to """ @@ -4468,11 +4490,6 @@ type FusionEdge { node: Fusion } -enum FusionOffsetDirection { - NEGATIVE - POSITIVE -} - """ The fusion partner's status and gene ID (if applicable) """ @@ -4584,7 +4601,9 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F sortBy: DateSort ): EventConnection! feature: Feature! - fivePrimeCoordinates: FusionVariantCoordinate + fivePrimeCoordinates: VariantCoordinate! + fivePrimeEndExonCoordinates: ExonCoordinate! + fivePrimeStartExonCoordinates: ExonCoordinate! flagged: Boolean! """ @@ -4712,26 +4731,14 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F ): RevisionConnection! singleVariantMolecularProfile: MolecularProfile! singleVariantMolecularProfileId: Int! - threePrimeCoordinates: FusionVariantCoordinate + threePrimeCoordinates: VariantCoordinate! + threePrimeEndExonCoordinates: ExonCoordinate! + threePrimeStartExonCoordinates: ExonCoordinate! variantAliases: [String!]! variantTypes: [VariantType!]! viccCompliantName: String! } -type FusionVariantCoordinate { - chromosome: String - coordinateType: CoordinateType! - ensemblVersion: Int - exonBoundary: Int - exonOffset: Int - exonOffsetDirection: FusionOffsetDirection - id: Int! - referenceBuild: ReferenceBuild - representativeTranscript: String - start: Int - stop: Int -} - """ The fields required to create a fusion variant """ @@ -4739,7 +4746,7 @@ input FusionVariantInput { ensemblVersion: Int! fivePrimeExonEnd: Int fivePrimeOffset: Int - fivePrimeOffsetDirection: FusionOffsetDirection + fivePrimeOffsetDirection: Direction fivePrimeTranscript: String """ @@ -4748,7 +4755,7 @@ input FusionVariantInput { referenceBuild: ReferenceBuild threePrimeExonStart: Int threePrimeOffset: Int - threePrimeOffsetDirection: FusionOffsetDirection + threePrimeOffsetDirection: Direction threePrimeTranscript: String } @@ -5109,7 +5116,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ sortBy: DateSort ): CommentConnection! - coordinates: GeneVariantCoordinate + coordinates: VariantCoordinate creationActivity: CreateVariantActivity deprecated: Boolean! deprecationActivity: DeprecateVariantActivity @@ -5281,19 +5288,6 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla variantTypes: [VariantType!]! } -type GeneVariantCoordinate { - chromosome: String - coordinateType: CoordinateType! - ensemblVersion: Int - id: Int! - referenceBases: String - referenceBuild: ReferenceBuild - representativeTranscript: String - start: Int - stop: Int - variantBases: String -} - input GeneVariantCoordinateInput { chromosome: String @@ -11165,6 +11159,25 @@ type VariantConnection { totalCount: Int! } +type VariantCoordinate { + chromosome: String + coordinateType: VariantCoordinateType! + ensemblVersion: Int + id: Int! + referenceBases: String + referenceBuild: ReferenceBuild + representativeTranscript: String + start: Int + stop: Int + variantBases: String +} + +enum VariantCoordinateType { + FIVE_PRIME_FUSION_COORDINATE + GENE_VARIANT_COORDINATE + THREE_PRIME_FUSION_COORDINATE +} + enum VariantDeprecationReason { DUPLICATE FEATURE_DEPRECATED diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 1c10ebcfd..ef4bd2c68 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -9282,35 +9282,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "ENUM", - "name": "CoordinateType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "GENE_VARIANT_COORDINATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIVE_PRIME_FUSION_COORDINATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "THREE_PRIME_FUSION_COORDINATE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, { "kind": "OBJECT", "name": "Country", @@ -11702,6 +11673,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "Direction", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "POSITIVE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NEGATIVE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Disease", @@ -15375,6 +15369,216 @@ ], "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "ExonCoordinate", + "description": null, + "fields": [ + { + "name": "chromosome", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "coordinateType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ExonCoordinateType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ensemblId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ensemblVersion", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "exon", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "exonOffset", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "exonOffsetDirection", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "Direction", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "representativeTranscript", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "strand", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "Direction", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "ExonCoordinateType", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "FIVE_PRIME_START_EXON_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIVE_PRIME_END_EXON_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "THREE_PRIME_START_EXON_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "THREE_PRIME_END_EXON_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "OBJECT", "name": "Factor", @@ -20874,29 +21078,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "ENUM", - "name": "FusionOffsetDirection", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "POSITIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NEGATIVE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "FusionPartnerInput", @@ -21305,9 +21486,45 @@ "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "FusionVariantCoordinate", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeEndExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeStartExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -21792,9 +22009,45 @@ "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "FusionVariantCoordinate", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeEndExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeStartExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null @@ -21905,157 +22158,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "FusionVariantCoordinate", - "description": null, - "fields": [ - { - "name": "chromosome", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "coordinateType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CoordinateType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ensemblVersion", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exonBoundary", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exonOffset", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "exonOffsetDirection", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "FusionOffsetDirection", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBuild", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "representativeTranscript", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "FusionVariantInput", @@ -22103,7 +22205,7 @@ "description": null, "type": { "kind": "ENUM", - "name": "FusionOffsetDirection", + "name": "Direction", "ofType": null }, "defaultValue": null, @@ -22151,7 +22253,7 @@ "description": null, "type": { "kind": "ENUM", - "name": "FusionOffsetDirection", + "name": "Direction", "ofType": null }, "defaultValue": null, @@ -23566,7 +23668,7 @@ "args": [], "type": { "kind": "OBJECT", - "name": "GeneVariantCoordinate", + "name": "VariantCoordinate", "ofType": null }, "isDeprecated": false, @@ -24338,145 +24440,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "GeneVariantCoordinate", - "description": null, - "fields": [ - { - "name": "chromosome", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "coordinateType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CoordinateType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ensemblVersion", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBases", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBuild", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "ReferenceBuild", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "representativeTranscript", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "start", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stop", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantBases", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "GeneVariantCoordinateInput", @@ -50345,6 +50308,174 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "VariantCoordinate", + "description": null, + "fields": [ + { + "name": "chromosome", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "coordinateType", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "VariantCoordinateType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ensemblVersion", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBases", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBuild", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "representativeTranscript", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "start", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "stop", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantBases", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "VariantCoordinateType", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GENE_VARIANT_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FIVE_PRIME_FUSION_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "THREE_PRIME_FUSION_COORDINATE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "ENUM", "name": "VariantDeprecationReason", diff --git a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql index 9713da569..eb1461f5b 100644 --- a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql +++ b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql @@ -119,25 +119,23 @@ fragment FusionVariantSummaryFields on FusionVariant { } } fivePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields } threePrimeCoordinates { - ...FusionCoordinateFields + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields } -} - -fragment FusionCoordinateFields on FusionVariantCoordinate { - id - representativeTranscript - referenceBuild - ensemblVersion - exonOffset - exonBoundary - chromosome - start - stop - coordinateType - exonOffsetDirection } fragment MyVariantInfoFields on MyVariantInfo { diff --git a/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb b/server/app/graphql/types/entities/exon_coordinate_type.rb similarity index 54% rename from server/app/graphql/types/entities/fusion_variant_coordinate_type.rb rename to server/app/graphql/types/entities/exon_coordinate_type.rb index 15bc8c395..e18a42991 100644 --- a/server/app/graphql/types/entities/fusion_variant_coordinate_type.rb +++ b/server/app/graphql/types/entities/exon_coordinate_type.rb @@ -1,15 +1,17 @@ module Types::Entities - class FusionVariantCoordinateType < Types::BaseObject + class ExonCoordinateType < Types::BaseObject field :id, Int, null: false field :representative_transcript, String, null: true field :reference_build, Types::ReferenceBuildType, null: true field :ensembl_version, Int, null: true + field :ensembl_id, String, null: true + field :exon, Int, null: true field :exon_offset, Int, null: true - field :exon_boundary, Int, null: true - field :exon_offset_direction, Types::Fusion::FusionOffsetDirection, null: true + field :exon_offset_direction, Types::Fusion::Direction, null: true field :chromosome, String, null: true + field :strand, Types::Fusion::Direction, null: true field :start, Int, null: true field :stop, Int, null: true - field :coordinate_type, Types::Entities::CoordinateTypeType, null: false + field :coordinate_type, Types::ExonCoordinateTypeType, null: false end end diff --git a/server/app/graphql/types/entities/gene_variant_coordinate_type.rb b/server/app/graphql/types/entities/variant_coordinate_type.rb similarity index 76% rename from server/app/graphql/types/entities/gene_variant_coordinate_type.rb rename to server/app/graphql/types/entities/variant_coordinate_type.rb index 1b019156a..bc55a1353 100644 --- a/server/app/graphql/types/entities/gene_variant_coordinate_type.rb +++ b/server/app/graphql/types/entities/variant_coordinate_type.rb @@ -1,5 +1,5 @@ module Types::Entities - class GeneVariantCoordinateType < Types::BaseObject + class VariantCoordinateType < Types::BaseObject field :id, Int, null: false field :representative_transcript, String, null: true field :chromosome, String, null: true @@ -9,6 +9,6 @@ class GeneVariantCoordinateType < Types::BaseObject field :ensembl_version, Int, null: true field :reference_bases, String, null: true field :variant_bases, String, null: true - field :coordinate_type, Types::Entities::CoordinateTypeType, null: false + field :coordinate_type, Types::VariantCoordinateTypeType, null: false end end diff --git a/server/app/graphql/types/exon_coordinate_type_type.rb b/server/app/graphql/types/exon_coordinate_type_type.rb new file mode 100644 index 000000000..eff8b5fbc --- /dev/null +++ b/server/app/graphql/types/exon_coordinate_type_type.rb @@ -0,0 +1,7 @@ +module Types + class ExonCoordinateTypeType < Types::BaseEnum + Constants::VALID_EXON_COORDINATE_TYPES.each do |ct| + value ct.upcase.gsub(" ", "_"), value: ct + end + end +end diff --git a/server/app/graphql/types/fusion/fusion_offset_direction.rb b/server/app/graphql/types/fusion/direction.rb similarity index 69% rename from server/app/graphql/types/fusion/fusion_offset_direction.rb rename to server/app/graphql/types/fusion/direction.rb index 5fcc61a93..bcd2772a4 100644 --- a/server/app/graphql/types/fusion/fusion_offset_direction.rb +++ b/server/app/graphql/types/fusion/direction.rb @@ -1,5 +1,5 @@ module Types::Fusion - class FusionOffsetDirection < Types::BaseEnum + class Direction < Types::BaseEnum value 'POSITIVE', value: 'positive' value 'NEGATIVE', value: 'negative' end diff --git a/server/app/graphql/types/fusion/fusion_variant_input_type.rb b/server/app/graphql/types/fusion/fusion_variant_input_type.rb index dd595a493..017e79902 100644 --- a/server/app/graphql/types/fusion/fusion_variant_input_type.rb +++ b/server/app/graphql/types/fusion/fusion_variant_input_type.rb @@ -5,12 +5,12 @@ class FusionVariantInputType < Types::BaseInputObject argument :five_prime_transcript, String, required: false argument :five_prime_exon_end, Int, required: false argument :five_prime_offset, Int, required: false - argument :five_prime_offset_direction, Types::Fusion::FusionOffsetDirection, required: false + argument :five_prime_offset_direction, Types::Fusion::Direction, required: false argument :three_prime_transcript, String, required: false argument :three_prime_exon_start, Int, required: false argument :three_prime_offset, Int, required: false - argument :three_prime_offset_direction, Types::Fusion::FusionOffsetDirection, required: false + argument :three_prime_offset_direction, Types::Fusion::Direction, required: false argument :reference_build, Types::ReferenceBuildType, required: false, description: 'The reference build for the genomic coordinates of this Variant.' diff --git a/server/app/graphql/types/entities/coordinate_type_type.rb b/server/app/graphql/types/variant_coordinate_type_type.rb similarity index 64% rename from server/app/graphql/types/entities/coordinate_type_type.rb rename to server/app/graphql/types/variant_coordinate_type_type.rb index c707f3929..f41a9f595 100644 --- a/server/app/graphql/types/entities/coordinate_type_type.rb +++ b/server/app/graphql/types/variant_coordinate_type_type.rb @@ -1,5 +1,5 @@ -module Types::Entities - class CoordinateTypeType < Types::BaseEnum +module Types + class VariantCoordinateTypeType < Types::BaseEnum Constants::VALID_VARIANT_COORDINATE_TYPES.each do |ct| value ct.upcase.gsub(" ", "_"), value: ct end diff --git a/server/app/graphql/types/variants/fusion_variant_type.rb b/server/app/graphql/types/variants/fusion_variant_type.rb index 43851f7c2..ed9673a30 100644 --- a/server/app/graphql/types/variants/fusion_variant_type.rb +++ b/server/app/graphql/types/variants/fusion_variant_type.rb @@ -1,8 +1,12 @@ module Types::Variants class FusionVariantType < Types::Entities::VariantType - field :five_prime_coordinates, Types::Entities::FusionVariantCoordinateType, null: true - field :three_prime_coordinates, Types::Entities::FusionVariantCoordinateType, null: true + field :five_prime_coordinates, Types::Entities::VariantCoordinateType, null: false + field :three_prime_coordinates, Types::Entities::VariantCoordinateType, null: false + field :five_prime_start_exon_coordinates, Types::Entities::ExonCoordinateType, null: false + field :five_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: false + field :three_prime_start_exon_coordinates, Types::Entities::ExonCoordinateType, null: false + field :three_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: false field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false field :vicc_compliant_name, String, null: false @@ -16,6 +20,22 @@ def three_prime_coordinates Loaders::AssociationLoader.for(Variants::FusionVariant, :three_prime_coordinates).load(object) end + def five_prime_start_exon_coordinates + Loaders::AssociationLoader.for(Variants::FusionVariant, :five_prime_start_exon_coordinates).load(object) + end + + def five_prime_end_exon_coordinates + Loaders::AssociationLoader.for(Variants::FusionVariant, :five_prime_end_exon_coordinates).load(object) + end + + def three_prime_start_exon_coordinates + Loaders::AssociationLoader.for(Variants::FusionVariant, :three_prime_start_exon_coordinates).load(object) + end + + def three_prime_end_exon_coordinates + Loaders::AssociationLoader.for(Variants::FusionVariant, :three_prime_end_exon_coordinates).load(object) + end + def fusion Loaders::AssociationLoader.for(Variants::FusionVariant, :fusion).load(object) end diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index f593b63b0..b274d7b40 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,7 +1,7 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType - field :coordinates, Types::Entities::GeneVariantCoordinateType, null: true + field :coordinates, Types::Entities::VariantCoordinateType, null: true field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false From fbc939ad6db127c0f01371956179027336a7a7f8 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Thu, 8 Aug 2024 13:25:50 -0500 Subject: [PATCH 28/56] initial fusions revision form --- .../fusion-variant-revise.form.config.ts | 313 ++++++++++++++++++ .../fusion-variant-revise.form.html | 37 +++ .../fusion-variant-revise.form.module.ts | 26 ++ .../fusion-variant-revise.form.ts | 114 +++++++ .../fusion-variant-revise.query.gql | 53 +++ .../models/fusion-variant-fields.model.ts | 16 + .../models/fusion-variant-revise.model.ts | 19 ++ .../fusion-variant-select.form.ts | 36 +- .../fusion-variant-to-model-fields.ts | 54 +++ client/src/app/generated/civic.apollo.ts | 94 ++++++ .../variants-suggest.module.ts | 2 + .../variants-suggest.page.html | 21 +- 12 files changed, 760 insertions(+), 25 deletions(-) create mode 100644 client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts create mode 100644 client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.html create mode 100644 client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.module.ts create mode 100644 client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.ts create mode 100644 client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql create mode 100644 client/src/app/forms/models/fusion-variant-fields.model.ts create mode 100644 client/src/app/forms/models/fusion-variant-revise.model.ts create mode 100644 client/src/app/forms/utilities/fusion-variant-to-model-fields.ts diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts new file mode 100644 index 000000000..364651d9f --- /dev/null +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts @@ -0,0 +1,313 @@ +import { fusionVariantReviseFormInitialModel } from '@app/forms/models/fusion-variant-revise.model' +import assignFieldConfigDefaultValues from '@app/forms/utilities/assign-field-default-values' +import { CvcFormCardWrapperProps } from '@app/forms/wrappers/form-card/form-card.wrapper' +import { CvcFormLayoutWrapperProps } from '@app/forms/wrappers/form-layout/form-layout.wrapper' +import { FormlyFieldConfig } from '@ngx-formly/core' +import { CvcFormRowWrapperProps } from '@app/forms/wrappers/form-row/form-row.wrapper' +import { CvcOrgSubmitButtonFieldConfig } from '@app/forms/types/org-submit-button/org-submit-button.type' +import { + directionSelectOptions, + isNumeric, +} from '@app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form' +import { AbstractControl } from '@angular/forms' + +function formFieldConfig( + fivePrimeDisabled: boolean, + threePrimeDisabled: boolean +): FormlyFieldConfig[] { + return [ + { + wrappers: ['form-layout'], + props: { + showDevPanel: false, + }, + fieldGroup: [ + { + key: 'clientMutationId', + props: { + hidden: true, + }, + }, + { + key: 'fields', + wrappers: ['form-card'], + props: { + formCardOptions: { title: 'Revise Variant' }, + }, + fieldGroup: [ + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 12, + }, + }, + fieldGroup: [ + { + key: 'aliases', + type: 'tag-multi-input', + props: { + label: 'Aliases', + description: + 'List any aliases commonly used to refer to this Variant', + placeholder: 'Enter Alias and hit return', + }, + }, + { + key: 'variantTypeIds', + type: 'variant-type-multi-select', + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 24, + }, + }, + fieldGroup: [ + { + wrappers: ['form-card'], + props: { + formCardOptions: { + title: `Fusion Coordinates`, + size: 'small', + }, + }, + fieldGroup: [ + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 12, + }, + }, + fieldGroup: [ + { + key: 'referenceBuild', + type: 'reference-build-select', + props: { + required: true, + }, + }, + { + key: 'ensemblVersion', + type: 'base-input', + validators: { + nccnVersionNumber: { + expression: (c: AbstractControl) => + c.value ? /^\d{2,3}$/.test(c.value) : true, + message: (_: any, field: FormlyFieldConfig) => + `"${field.formControl?.value}" does not appear to be an Ensembl version number`, + }, + }, + props: { + label: 'Ensembl Version', + description: + 'Enter a valid Ensembl database version (e.g. 75)', + required: true, + }, + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 6, + }, + }, + fieldGroup: [ + { + key: 'fivePrimeTranscript', + type: 'base-input', + props: { + label: "5' Transcript", + required: !fivePrimeDisabled, + disabled: fivePrimeDisabled, + tooltip: + "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected", + }, + }, + { + key: 'fivePrimeExonEnd', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "5' exon must be numeric", + }, + }, + props: { + label: "5' End Exon", + required: !fivePrimeDisabled, + disabled: fivePrimeDisabled, + tooltip: + 'The exon number counted from the 5’ end of the transcript.', + }, + }, + { + key: 'fivePrimeOffset', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "5' exon offset must be numeric", + }, + }, + props: { + label: "5' Exon Offset", + tooltip: + 'A value representing the offset from the segment boundary.', + required: false, + disabled: fivePrimeDisabled, + }, + }, + { + key: 'fivePrimeOffsetDirection', + type: 'base-select', + props: { + label: "5' Exon Offset Direction", + tooltip: + 'Negative values offset towards the 5’ end of the transcript and positive values offset towards the 3’ end of the transcript.', + required: true, + placeholder: "5' Offset Direction", + options: directionSelectOptions, + multiple: false, + }, + expressions: { + 'props.disabled': (field) => + Boolean(!field.model.fivePrimeOffset), + 'props.required': (field) => + Boolean(field.model.fivePrimeOffset), + }, + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 6, + }, + }, + fieldGroup: [ + { + key: 'threePrimeTranscript', + type: 'base-input', + props: { + required: !threePrimeDisabled, + disabled: threePrimeDisabled, + label: "3' Transcript", + tooltip: + "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected", + }, + }, + { + key: 'threePrimeExonStart', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "3' exon must be numeric", + }, + }, + props: { + label: "3' Start Exon", + tooltip: + 'The exon number counted from the 5’ end of the transcript.', + required: !threePrimeDisabled, + disabled: threePrimeDisabled, + }, + }, + { + key: 'threePrimeOffset', + type: 'base-input', + validators: { + isNumeric: { + expression: isNumeric, + message: "3' exon must be numeric", + }, + }, + props: { + label: "3' Exon Offset", + disabled: threePrimeDisabled, + required: false, + tooltip: + 'A value representing the offset from the segment boundary.', + }, + }, + { + key: 'threePrimeOffsetDirection', + type: 'base-select', + props: { + label: "3' Exon Offset Direction", + tooltip: + 'Negative values offset towards the 5’ end of the transcript and positive values offset towards the 3’ end of the transcript.', + required: true, + placeholder: "3' Offset Direction", + options: directionSelectOptions, + multiple: false, + }, + expressions: { + 'props.disabled': (field) => + Boolean(!field.model.threePrimeOffset), + 'props.required': (field) => + Boolean(field.model.threePrimeOffset), + }, + }, + ], + }, + ], + }, + ], + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + spanIndexed: [24, 12, 12], + }, + }, + fieldGroup: [ + { + key: 'comment', + type: 'base-textarea', + props: { + label: 'Comment', + placeholder: + 'Please enter a comment describing your revisions.', + required: true, + minLength: 10, + }, + }, + { + type: 'cvc-cancel-button', + }, + { + key: 'organizationId', + type: 'org-submit-button', + props: { + submitLabel: 'Submit Variant Revisions', + align: 'right', + }, + }, + ], + }, + ], + }, + ] +} + +export function fusionVariantReviseFields( + fivePrimeDisabled: boolean, + threePrimeDisabled: boolean +): FormlyFieldConfig[] { + return assignFieldConfigDefaultValues( + formFieldConfig(fivePrimeDisabled, threePrimeDisabled), + fusionVariantReviseFormInitialModel + ) +} diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.html b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.html new file mode 100644 index 000000000..ee18db660 --- /dev/null +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.html @@ -0,0 +1,37 @@ + + + Revision(s) submitted! You will be redirected to the Revisions page or can + view them here. + +
+ + +
+ Loading Variant... +
+ diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.module.ts b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.module.ts new file mode 100644 index 000000000..38348966b --- /dev/null +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.module.ts @@ -0,0 +1,26 @@ +import { NgModule } from '@angular/core' +import { CommonModule } from '@angular/common' +import { NzFormModule } from 'ng-zorro-antd/form' +import { NzButtonModule } from 'ng-zorro-antd/button' +import { CvcForms2Module } from '@app/forms/forms.module' +import { NgxJsonViewerModule } from 'ngx-json-viewer' +import { LetDirective, PushPipe } from '@ngrx/component' +import { CvcFormSubmissionStatusDisplayModule } from '@app/forms/components/form-submission-status-display/form-submission-status-display.module' +import { CvcFusionVariantReviseForm } from './fusion-variant-revise.form' + +@NgModule({ + declarations: [CvcFusionVariantReviseForm], + imports: [ + CommonModule, + LetDirective, + PushPipe, + NzFormModule, + NzButtonModule, + CvcForms2Module, + CvcFormSubmissionStatusDisplayModule, + + NgxJsonViewerModule, // debug + ], + exports: [CvcFusionVariantReviseForm], +}) +export class CvcFusionVariantReviseFormModule {} diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.ts b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.ts new file mode 100644 index 000000000..066754b85 --- /dev/null +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.ts @@ -0,0 +1,114 @@ +import { + AfterViewInit, + ChangeDetectionStrategy, + ChangeDetectorRef, + Component, + Input, + OnInit, +} from '@angular/core' +import { UntypedFormGroup } from '@angular/forms' +import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' +import { FormlyFieldConfig } from '@ngx-formly/core' +import { + MutationState, + MutatorWithState, +} from '@app/core/utilities/mutation-state-wrapper' +import { NetworkErrorsService } from '@app/core/services/network-errors.service' +import { FusionVariantReviseModel } from '@app/forms/models/fusion-variant-revise.model' +import { + FusionPartnerStatus, + FusionVariantRevisableFieldsGQL, + SuggestFusionVariantRevisionGQL, + SuggestFusionVariantRevisionMutation, + SuggestFusionVariantRevisionMutationVariables, +} from '@app/generated/civic.apollo' +import { fusionVariantReviseFields } from './fusion-variant-revise.form.config' +import { + fusionVariantFormModelToReviseInput, + fusionVariantToModelFields, +} from '@app/forms/utilities/fusion-variant-to-model-fields' + +@UntilDestroy() +@Component({ + selector: 'cvc-fusion-variant-revise-form', + templateUrl: './fusion-variant-revise.form.html', + changeDetection: ChangeDetectionStrategy.OnPush, +}) +export class CvcFusionVariantReviseForm implements OnInit, AfterViewInit { + @Input() variantId!: number + model?: FusionVariantReviseModel + form: UntypedFormGroup + fields?: FormlyFieldConfig[] + + reviseVariantMutator: MutatorWithState< + SuggestFusionVariantRevisionGQL, + SuggestFusionVariantRevisionMutation, + SuggestFusionVariantRevisionMutationVariables + > + + mutationState?: MutationState + url?: string + + constructor( + private revisableFieldsGQL: FusionVariantRevisableFieldsGQL, + private submitRevisionsGQL: SuggestFusionVariantRevisionGQL, + private networkErrorService: NetworkErrorsService, + private cdr: ChangeDetectorRef + ) { + this.form = new UntypedFormGroup({}) + this.reviseVariantMutator = new MutatorWithState(networkErrorService) + } + + ngOnInit() { + this.url = `/variants/${this.variantId}/revisions` + } + + ngAfterViewInit(): void { + this.revisableFieldsGQL + .fetch({ variantId: this.variantId }) + .pipe(untilDestroyed(this)) + .subscribe({ + next: ({ data: { variant } }) => { + if ( + variant && + variant.__typename == 'FusionVariant' && + variant.feature.featureInstance.__typename == 'Fusion' + ) { + const fivePrimeDisabled = + variant.feature.featureInstance.fivePrimePartnerStatus != + FusionPartnerStatus.Known + const threePrimeDisabled = + variant.feature.featureInstance.threePrimePartnerStatus != + FusionPartnerStatus.Known + this.fields = fusionVariantReviseFields( + fivePrimeDisabled, + threePrimeDisabled + ) + this.model = { + id: variant.id, + fields: fusionVariantToModelFields(variant), + } + this.cdr.detectChanges() + } + }, + error: (error) => { + console.error('Error retrieving Variant.') + console.error(error) + }, + complete: () => {}, + }) + } + + onSubmit(model: FusionVariantReviseModel) { + if (!this.variantId) { + return + } + let input = fusionVariantFormModelToReviseInput(this.variantId, model) + if (input) { + this.mutationState = this.reviseVariantMutator.mutate( + this.submitRevisionsGQL, + { input: input } + ) + } + } +} diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql new file mode 100644 index 000000000..dc2a7b427 --- /dev/null +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql @@ -0,0 +1,53 @@ +query FusionVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on FusionVariant { + ...RevisableFusionVariantFields + } + } +} + +fragment RevisableFusionVariantFields on FusionVariant { + name + feature { + id + name + link + deprecated + flagged + featureInstance { + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } + } + } + hgvsDescriptions + variantAliases + variantTypes { + id + name + soid + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } +} + +#TODO - Make this for fusions server side +mutation SuggestFusionVariantRevision($input: SuggestFactorVariantRevisionInput!) { + suggestFactorVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} diff --git a/client/src/app/forms/models/fusion-variant-fields.model.ts b/client/src/app/forms/models/fusion-variant-fields.model.ts new file mode 100644 index 000000000..a2bc8d89e --- /dev/null +++ b/client/src/app/forms/models/fusion-variant-fields.model.ts @@ -0,0 +1,16 @@ +import { Direction, ReferenceBuild } from '@app/generated/civic.apollo' + +export type FusionVariantFields = { + aliases?: string[] + variantTypeIds?: number[] + fivePrimeTranscript?: string + fivePrimeExonEnd?: string + fivePrimeOffset?: string + fivePrimeOffsetDirection?: Direction + threePrimeTranscript?: string + threePrimeExonStart?: string + threePrimeOffset?: string + threePrimeOffsetDirection?: Direction + referenceBuild?: ReferenceBuild + ensemblVersion?: number +} diff --git a/client/src/app/forms/models/fusion-variant-revise.model.ts b/client/src/app/forms/models/fusion-variant-revise.model.ts new file mode 100644 index 000000000..82bb619a6 --- /dev/null +++ b/client/src/app/forms/models/fusion-variant-revise.model.ts @@ -0,0 +1,19 @@ +import { FormReviseBaseModel } from './form-revise-base.model' +import { FusionVariantFields } from './fusion-variant-fields.model' + +export interface FusionVariantReviseModel extends FormReviseBaseModel { + fields: FusionVariantFields +} + +export const fusionVariantReviseFieldsDefaults: FusionVariantFields = { + aliases: undefined, + variantTypeIds: undefined, +} + +export const fusionVariantReviseFormInitialModel: FusionVariantReviseModel = { + id: undefined, + clientMutationId: undefined, + fields: fusionVariantReviseFieldsDefaults, + comment: undefined, + organizationId: undefined, +} diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts index b3336685e..dfbec1c70 100644 --- a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts @@ -60,6 +60,20 @@ export interface FusionVariantSelectModalData { feature?: FeatureSelectTypeaheadFieldsFragment } +export const directionSelectOptions = [ + { + label: '+', + value: Direction.Positive, + }, + { + label: '-', + value: Direction.Negative, + }, +] + +export const isNumeric = (c: AbstractControl) => + c.value ? /^\d+$/.test(c.value) : true + @UntilDestroy() @Component({ standalone: true, @@ -124,20 +138,6 @@ export class CvcFusionVariantSelectForm { } this.options = {} - const isNumeric = (c: AbstractControl) => - c.value ? /^\d+$/.test(c.value) : true - - const selectOptions = [ - { - label: '+', - value: Direction.Positive, - }, - { - label: '-', - value: Direction.Negative, - }, - ] - let fivePrimeDisabled = false let threePrimeDisabled = false @@ -228,7 +228,7 @@ export class CvcFusionVariantSelectForm { }, }, props: { - label: "5' Exon End", + label: "5' End Exon", required: !fivePrimeDisabled, disabled: fivePrimeDisabled, tooltip: @@ -261,7 +261,7 @@ export class CvcFusionVariantSelectForm { 'Negative values offset towards the 5’ end of the transcript and positive values offset towards the 3’ end of the transcript.', required: true, placeholder: "5' Offset Direction", - options: selectOptions, + options: directionSelectOptions, multiple: false, }, expressions: { @@ -302,7 +302,7 @@ export class CvcFusionVariantSelectForm { }, }, props: { - label: "3' Exon Start", + label: "3' Start Exon", tooltip: 'The exon number counted from the 5’ end of the transcript.', required: !threePrimeDisabled, @@ -335,7 +335,7 @@ export class CvcFusionVariantSelectForm { 'Negative values offset towards the 5’ end of the transcript and positive values offset towards the 3’ end of the transcript.', required: true, placeholder: "3' Offset Direction", - options: selectOptions, + options: directionSelectOptions, multiple: false, }, expressions: { diff --git a/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts b/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts new file mode 100644 index 000000000..917a584d1 --- /dev/null +++ b/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts @@ -0,0 +1,54 @@ +import { + Maybe, + RevisableFusionVariantFieldsFragment, + SuggestFactorVariantRevisionInput, +} from '@app/generated/civic.apollo' +import { FusionVariantReviseModel } from '../models/fusion-variant-revise.model' +import { FusionVariantFields } from '../models/fusion-variant-fields.model' + +export function fusionVariantToModelFields( + variant: RevisableFusionVariantFieldsFragment +): FusionVariantFields { + return { + aliases: variant.variantAliases, + variantTypeIds: variant.variantTypes.map((vt) => vt.id), + fivePrimeTranscript: + variant.fivePrimeEndExonCoordinates.representativeTranscript, + fivePrimeExonEnd: variant.fivePrimeEndExonCoordinates.exon?.toString(), + fivePrimeOffset: variant.fivePrimeEndExonCoordinates.exonOffset?.toString(), + fivePrimeOffsetDirection: + variant.fivePrimeEndExonCoordinates.exonOffsetDirection, + threePrimeTranscript: + variant.threePrimeStartExonCoordinates.representativeTranscript, + threePrimeExonStart: + variant.threePrimeStartExonCoordinates.exon?.toString(), + threePrimeOffset: + variant.threePrimeStartExonCoordinates.exonOffset?.toString(), + threePrimeOffsetDirection: + variant.threePrimeStartExonCoordinates.exonOffsetDirection, + referenceBuild: variant.fivePrimeEndExonCoordinates.referenceBuild, + ensemblVersion: variant.fivePrimeEndExonCoordinates.ensemblVersion, + } +} + +export function fusionVariantFormModelToReviseInput( + vid: number, + model: FusionVariantReviseModel +): Maybe { + return undefined + + const fields = model.fields + if (!model.comment) { + return undefined + } + + //return { + // id: vid, + // fields: { + // aliases: fields.aliases || [], + // variantTypeIds: fields.variantTypeIds || [], + // }, + // organizationId: model.organizationId, + // comment: model.comment!, + //} +} diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index c21283cb4..efce7e928 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -8188,6 +8188,22 @@ export type SuggestFactorVariantRevisionMutationVariables = Exact<{ export type SuggestFactorVariantRevisionMutation = { __typename: 'Mutation', suggestFactorVariantRevision?: { __typename: 'SuggestFactorVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'FactorVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; +export type FusionVariantRevisableFieldsQueryVariables = Exact<{ + variantId: Scalars['Int']; +}>; + + +export type FusionVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number, name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number } | undefined }; + +export type RevisableFusionVariantFieldsFragment = { __typename: 'FusionVariant', name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; + +export type SuggestFusionVariantRevisionMutationVariables = Exact<{ + input: SuggestFactorVariantRevisionInput; +}>; + + +export type SuggestFusionVariantRevisionMutation = { __typename: 'Mutation', suggestFactorVariantRevision?: { __typename: 'SuggestFactorVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'FactorVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; + export type GeneRevisableFieldsQueryVariables = Exact<{ featureId: Scalars['Int']; }>; @@ -10512,6 +10528,37 @@ export const RevisableFactorVariantFieldsFragmentDoc = gql` ncitId } `; +export const RevisableFusionVariantFieldsFragmentDoc = gql` + fragment RevisableFusionVariantFields on FusionVariant { + name + feature { + id + name + link + deprecated + flagged + featureInstance { + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } + } + } + hgvsDescriptions + variantAliases + variantTypes { + id + name + soid + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } +} + ${ExonCoordinateFieldsFragmentDoc}`; export const RevisableGeneFieldsFragmentDoc = gql` fragment RevisableGeneFields on Feature { id @@ -14755,6 +14802,53 @@ export const SuggestFactorVariantRevisionDocument = gql` export class SuggestFactorVariantRevisionGQL extends Apollo.Mutation { document = SuggestFactorVariantRevisionDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const FusionVariantRevisableFieldsDocument = gql` + query FusionVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on FusionVariant { + ...RevisableFusionVariantFields + } + } +} + ${RevisableFusionVariantFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class FusionVariantRevisableFieldsGQL extends Apollo.Query { + document = FusionVariantRevisableFieldsDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SuggestFusionVariantRevisionDocument = gql` + mutation SuggestFusionVariantRevision($input: SuggestFactorVariantRevisionInput!) { + suggestFactorVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SuggestFusionVariantRevisionGQL extends Apollo.Mutation { + document = SuggestFusionVariantRevisionDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } diff --git a/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.module.ts b/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.module.ts index 4e4839432..299fb5595 100644 --- a/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.module.ts +++ b/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.module.ts @@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common' import { VariantsSuggestPage } from './variants-suggest.page' import { CvcGeneVariantReviseFormModule } from '@app/forms/config/gene-variant-revise/gene-variant-revise.form.module' import { CvcFactorVariantReviseFormModule } from '@app/forms/config/factor-variant-revise/factor-variant-revise.form.module' +import { CvcFusionVariantReviseFormModule } from '@app/forms/config/fusion-variant-revise/fusion-variant-revise.form.module' @NgModule({ declarations: [VariantsSuggestPage], @@ -10,6 +11,7 @@ import { CvcFactorVariantReviseFormModule } from '@app/forms/config/factor-varia CommonModule, CvcGeneVariantReviseFormModule, CvcFactorVariantReviseFormModule, + CvcFusionVariantReviseFormModule, ], }) export class VariantsSuggestModule {} diff --git a/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.page.html b/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.page.html index dc1ba0c46..b49d7d2b7 100644 --- a/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.page.html +++ b/client/src/app/views/variants/variants-revise/variants-suggest/variants-suggest.page.html @@ -1,10 +1,17 @@ - @switch(variantType) { @case("GeneVariant") { - - - } @case("FactorVariant") { - - - } } + @switch (variantType) { + @case ('GeneVariant') { + + + } + @case ('FactorVariant') { + + + } + @case ('FusionVariant') { + + + } + } Loading Variant... From ae42a960c4a4f5f5bb1e170246c03f9a1d5bf644 Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Thu, 8 Aug 2024 13:28:36 -0500 Subject: [PATCH 29/56] Display VICC compliant name --- .../fusion-variant-summary/fusion-variant-summary.page.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html index 53f57319b..1180f3f1f 100644 --- a/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html +++ b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html @@ -140,6 +140,12 @@ nzSize="small" [nzColumn]="{ xxl: 2, xl: 2, lg: 1, md: 1, sm: 1, xs: 1 }" nzBordered="true"> + + + {{ variant.viccCompliantName }} + Date: Thu, 8 Aug 2024 13:29:10 -0500 Subject: [PATCH 30/56] Add a few more TODOs to the port_fusion_coords script --- server/misc_scripts/fusions/port_fusion_coords.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/misc_scripts/fusions/port_fusion_coords.rb b/server/misc_scripts/fusions/port_fusion_coords.rb index cf2084c14..2b8eb3d39 100644 --- a/server/misc_scripts/fusions/port_fusion_coords.rb +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -32,6 +32,7 @@ def create_exon_coords(variant, relation_name, coordinate_type, exon) reference_build: variant.reference_build, coordinate_type: coordinate_type, variant_id: variant.id + #TODO set curation status ).first_or_create rel = "#{relation_name}=" @@ -278,6 +279,7 @@ def update_variant_coordinates(variant, five_prime_partner_status, three_prime_p stop: variant.stop2, representative_transcript: variant.representative_transcript2, ensembl_version: variant.ensembl_version + #TODO: set curation status ).first_or_create end elsif three_prime_partner_status == 'known' @@ -323,6 +325,7 @@ def update_variant_coordinates(variant, five_prime_partner_status, three_prime_p next end update_variant_coordinates(variant, five_prime_partner_status, three_prime_partner_status) + #TODO create stub exon coordinates #TODO set vicc compatible name? end next From 242f5414d83601f85c19173b7fc61b858c18484c Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Fri, 9 Aug 2024 14:08:29 -0500 Subject: [PATCH 31/56] Implement fusion feature revision submission --- .../fusion-revise.form.config.ts | 106 ++++++++ .../fusion-revise/fusion-revise.form.html | 37 +++ .../fusion-revise/fusion-revise.form.ts | 121 +++++++++ .../fusion-revise/fusion-revise.query.gql | 31 +++ .../app/forms/models/fusion-fields.model.ts | 5 + .../app/forms/models/fusion-revise.model.ts | 19 ++ .../forms/utilities/fusion-to-model-fields.ts | 44 +++ .../src/app/generated/civic.apollo-helpers.ts | 13 +- client/src/app/generated/civic.apollo.ts | 129 +++++++++ client/src/app/generated/server.model.graphql | 88 ++++++ client/src/app/generated/server.schema.json | 250 ++++++++++++++++++ .../features-suggest.module.ts | 2 + .../features-suggest.page.html | 3 + .../mutations/suggest_fusion_revision.rb | 83 ++++++ server/app/graphql/types/mutation_type.rb | 1 + .../graphql/types/revisions/fusion_fields.rb | 11 + .../models/concerns/is_feature_instance.rb | 2 +- server/app/models/feature.rb | 2 +- server/app/models/features/fusion.rb | 17 +- .../input_adaptors/fusion_input_adaptor.rb | 29 ++ 20 files changed, 983 insertions(+), 10 deletions(-) create mode 100644 client/src/app/forms/config/fusion-revise/fusion-revise.form.config.ts create mode 100644 client/src/app/forms/config/fusion-revise/fusion-revise.form.html create mode 100644 client/src/app/forms/config/fusion-revise/fusion-revise.form.ts create mode 100644 client/src/app/forms/config/fusion-revise/fusion-revise.query.gql create mode 100644 client/src/app/forms/models/fusion-fields.model.ts create mode 100644 client/src/app/forms/models/fusion-revise.model.ts create mode 100644 client/src/app/forms/utilities/fusion-to-model-fields.ts create mode 100644 server/app/graphql/mutations/suggest_fusion_revision.rb create mode 100644 server/app/graphql/types/revisions/fusion_fields.rb create mode 100644 server/app/models/input_adaptors/fusion_input_adaptor.rb diff --git a/client/src/app/forms/config/fusion-revise/fusion-revise.form.config.ts b/client/src/app/forms/config/fusion-revise/fusion-revise.form.config.ts new file mode 100644 index 000000000..f9fddb559 --- /dev/null +++ b/client/src/app/forms/config/fusion-revise/fusion-revise.form.config.ts @@ -0,0 +1,106 @@ +import { fusionReviseFormInitialModel } from '@app/forms/models/fusion-revise.model' +import assignFieldConfigDefaultValues from '@app/forms/utilities/assign-field-default-values' +import { CvcFormCardWrapperProps } from '@app/forms/wrappers/form-card/form-card.wrapper' +import { CvcFormLayoutWrapperProps } from '@app/forms/wrappers/form-layout/form-layout.wrapper' +import { CvcFormRowWrapperProps } from '@app/forms/wrappers/form-row/form-row.wrapper' +import { FormlyFieldConfig } from '@ngx-formly/core' + +const formFieldConfig: FormlyFieldConfig[] = [ + // form-layout wrapper embeds the form in an nz-grid row, allowing the form to be placed adjacent to other controls or page elements. Currently, it provides a toggleable dev panel. Could be used to add a preview of the entity being added/edited, or more extensive feedback like lists of similar entities, etc. + { + wrappers: ['form-layout'], + props: { + showDevPanel: false, + }, + fieldGroup: [ + { + key: 'clientMutationId', + props: { + hidden: true, + }, + }, + // form-card wraps the form fields in a card, providing a place to put a title, and other controls e.g. form options, status + { + key: 'fields', + wrappers: ['form-card'], + props: { + formCardOptions: { title: 'Revise Fusion' }, + }, + fieldGroup: [ + { + wrappers: ['form-row'], + props: { + formRowOptions: { + span: 24, + }, + }, + fieldGroup: [ + { + key: 'aliases', + type: 'tag-multi-input', + props: { + label: 'Aliases', + description: + 'List any aliases commonly used to refer to this Fusion', + placeholder: 'Enter Alias and hit return', + }, + }, + { + key: 'description', + type: 'base-textarea', + wrappers: ['form-field'], + props: { + tooltip: + 'User-defined summary of the clinical relevance of this Fusion.', + placeholder: 'Enter a Fusion Summary', + label: 'Summary', + required: false, + rows: 5, + }, + }, + { + key: 'sourceIds', + type: 'source-multi-select', + wrappers: ['form-field'], + props: {}, + }, + ], + }, + ], + }, + { + wrappers: ['form-row'], + props: { + formRowOptions: { + spanIndexed: [24, 12, 12], + }, + }, + fieldGroup: [ + { + key: 'comment', + type: 'base-textarea', + props: { + label: 'Comment', + placeholder: 'Please enter a comment describing your revisions.', + required: true, + minLength: 10, + }, + }, + { + type: 'cvc-cancel-button', + }, + { + key: 'organizationId', + type: 'org-submit-button', + props: { + submitLabel: 'Submit Fusion Revisions', + align: 'right', + }, + }, + ], + }, + ], + }, +] +export const fusionReviseFields: FormlyFieldConfig[] = + assignFieldConfigDefaultValues(formFieldConfig, fusionReviseFormInitialModel) diff --git a/client/src/app/forms/config/fusion-revise/fusion-revise.form.html b/client/src/app/forms/config/fusion-revise/fusion-revise.form.html new file mode 100644 index 000000000..988d330cd --- /dev/null +++ b/client/src/app/forms/config/fusion-revise/fusion-revise.form.html @@ -0,0 +1,37 @@ + + + Revision(s) submitted! You will be redirected to the Revisions page or can + view them here. + +
+ + +
+ Loading Factor... +
+ diff --git a/client/src/app/forms/config/fusion-revise/fusion-revise.form.ts b/client/src/app/forms/config/fusion-revise/fusion-revise.form.ts new file mode 100644 index 000000000..7b145a4f6 --- /dev/null +++ b/client/src/app/forms/config/fusion-revise/fusion-revise.form.ts @@ -0,0 +1,121 @@ +import { + AfterViewInit, + ChangeDetectionStrategy, + ChangeDetectorRef, + Component, + Input, + OnInit, +} from '@angular/core' +import { UntypedFormGroup } from '@angular/forms' +import { + FusionRevisableFieldsGQL, + SuggestFusionRevisionGQL, + SuggestFusionRevisionMutation, + SuggestFusionRevisionMutationVariables, +} from '@app/generated/civic.apollo' +import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' +import { FormlyFieldConfig } from '@ngx-formly/core' +import { + MutationState, + MutatorWithState, +} from '@app/core/utilities/mutation-state-wrapper' +import { NetworkErrorsService } from '@app/core/services/network-errors.service' +import { + fusionFormModelToReviseInput, + fusionToModelFields, +} from '@app/forms/utilities/fusion-to-model-fields' +import { fusionReviseFields } from './fusion-revise.form.config' +import { CommonModule } from '@angular/common' +import { LetDirective, PushPipe } from '@ngrx/component' +import { NzFormModule } from 'ng-zorro-antd/form' +import { NzButtonModule } from 'ng-zorro-antd/button' +import { CvcForms2Module } from '@app/forms/forms.module' +import { CvcFormSubmissionStatusDisplayModule } from '@app/forms/components/form-submission-status-display/form-submission-status-display.module' +import { FusionReviseModel } from '@app/forms/models/fusion-revise.model' + +@UntilDestroy() +@Component({ + selector: 'cvc-fusion-revise-form', + standalone: true, + templateUrl: './fusion-revise.form.html', + changeDetection: ChangeDetectionStrategy.OnPush, + imports: [ + CommonModule, + LetDirective, + PushPipe, + NzFormModule, + NzButtonModule, + CvcForms2Module, + CvcFormSubmissionStatusDisplayModule, + ], + + //NgxJsonViewerModule, // debug +}) +export class CvcFusionReviseForm implements OnInit, AfterViewInit { + @Input() featureId!: number + model?: FusionReviseModel + form: UntypedFormGroup + fields: FormlyFieldConfig[] + + reviseFusionMutator: MutatorWithState< + SuggestFusionRevisionGQL, + SuggestFusionRevisionMutation, + SuggestFusionRevisionMutationVariables + > + + mutationState?: MutationState + url?: string + + constructor( + private revisableFieldsGQL: FusionRevisableFieldsGQL, + private submitRevisionsGQL: SuggestFusionRevisionGQL, + private networkErrorService: NetworkErrorsService, + private cdr: ChangeDetectorRef + ) { + this.form = new UntypedFormGroup({}) + this.fields = fusionReviseFields + this.reviseFusionMutator = new MutatorWithState(networkErrorService) + } + + ngOnInit() { + this.url = `/features/${this.featureId}/revisions` + } + + ngAfterViewInit(): void { + this.revisableFieldsGQL + .fetch({ featureId: this.featureId }) + .pipe(untilDestroyed(this)) + .subscribe({ + next: ({ data: { feature } }) => { + if (feature) { + let fields = fusionToModelFields(feature) + if (fields) { + this.model = { + id: feature.id, + fields: fields, + } + this.cdr.detectChanges() + } + } + }, + error: (error) => { + console.error('Error retrieving Fusion.') + console.error(error) + }, + complete: () => {}, + }) + } + + onSubmit(model: FusionReviseModel) { + if (!this.featureId) { + return + } + let input = fusionFormModelToReviseInput(this.featureId, model) + if (input) { + this.mutationState = this.reviseFusionMutator.mutate( + this.submitRevisionsGQL, + { input: input } + ) + } + } +} diff --git a/client/src/app/forms/config/fusion-revise/fusion-revise.query.gql b/client/src/app/forms/config/fusion-revise/fusion-revise.query.gql new file mode 100644 index 000000000..0ddb5baf9 --- /dev/null +++ b/client/src/app/forms/config/fusion-revise/fusion-revise.query.gql @@ -0,0 +1,31 @@ +query FusionRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableFusionFields + } +} + +fragment RevisableFusionFields on Feature { + id + description + sources { + id + sourceType + citation + citationId + } + featureAliases + featureInstance { + __typename + } +} + +mutation SuggestFusionRevision($input: SuggestFusionRevisionInput!) { + suggestFusionRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} diff --git a/client/src/app/forms/models/fusion-fields.model.ts b/client/src/app/forms/models/fusion-fields.model.ts new file mode 100644 index 000000000..e79a3aae8 --- /dev/null +++ b/client/src/app/forms/models/fusion-fields.model.ts @@ -0,0 +1,5 @@ +export type FusionFields = { + description?: string + sourceIds?: number[] + aliases?: string[] +} diff --git a/client/src/app/forms/models/fusion-revise.model.ts b/client/src/app/forms/models/fusion-revise.model.ts new file mode 100644 index 000000000..9b3d72942 --- /dev/null +++ b/client/src/app/forms/models/fusion-revise.model.ts @@ -0,0 +1,19 @@ +import { FusionFields } from './fusion-fields.model' +import { FormReviseBaseModel } from './form-revise-base.model' + +export interface FusionReviseModel extends FormReviseBaseModel { + fields: FusionFields +} + +export const fusionReviseFieldsDefaults: FusionFields = { + description: undefined, + sourceIds: undefined, +} + +export const fusionReviseFormInitialModel: FusionReviseModel = { + id: undefined, + clientMutationId: undefined, + fields: fusionReviseFieldsDefaults, + comment: undefined, + organizationId: undefined, +} diff --git a/client/src/app/forms/utilities/fusion-to-model-fields.ts b/client/src/app/forms/utilities/fusion-to-model-fields.ts new file mode 100644 index 000000000..c61e5c3a6 --- /dev/null +++ b/client/src/app/forms/utilities/fusion-to-model-fields.ts @@ -0,0 +1,44 @@ +import { + Maybe, + RevisableFusionFieldsFragment, + SuggestFusionRevisionInput, +} from '@app/generated/civic.apollo' +import * as fmt from '@app/forms/utilities/input-formatters' +import { FusionFields } from '../models/fusion-fields.model' +import { FusionReviseModel } from '../models/fusion-revise.model' + +export function fusionToModelFields( + fusion: RevisableFusionFieldsFragment +): Maybe { + if (fusion.featureInstance.__typename === 'Fusion') { + return { + description: fusion.description, + sourceIds: fusion.sources.map((s) => s.id), + aliases: fusion.featureAliases, + } + } else { + return undefined + } +} + +export function fusionFormModelToReviseInput( + fid: number, + model: FusionReviseModel +): Maybe { + const fields = model.fields + + if (!model.comment) { + return undefined + } + + return { + id: fid, + fields: { + description: fmt.toNullableString(fields.description), + sourceIds: fields.sourceIds || [], + aliases: fields.aliases || [], + }, + organizationId: model.organizationId, + comment: model.comment!, + } +} diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index d953cfddf..13941839a 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -1373,7 +1373,7 @@ export type MolecularProfileTextSegmentKeySpecifier = ('text' | MolecularProfile export type MolecularProfileTextSegmentFieldPolicy = { text?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createFusionFeature' | 'createFusionVariant' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; +export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createFusionFeature' | 'createFusionVariant' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestFusionRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; export type MutationFieldPolicy = { acceptRevisions?: FieldPolicy | FieldReadFunction, addComment?: FieldPolicy | FieldReadFunction, @@ -1402,6 +1402,7 @@ export type MutationFieldPolicy = { suggestEvidenceItemRevision?: FieldPolicy | FieldReadFunction, suggestFactorRevision?: FieldPolicy | FieldReadFunction, suggestFactorVariantRevision?: FieldPolicy | FieldReadFunction, + suggestFusionRevision?: FieldPolicy | FieldReadFunction, suggestGeneRevision?: FieldPolicy | FieldReadFunction, suggestGeneVariantRevision?: FieldPolicy | FieldReadFunction, suggestMolecularProfileRevision?: FieldPolicy | FieldReadFunction, @@ -2025,6 +2026,12 @@ export type SuggestFactorVariantRevisionPayloadFieldPolicy = { results?: FieldPolicy | FieldReadFunction, variant?: FieldPolicy | FieldReadFunction }; +export type SuggestFusionRevisionPayloadKeySpecifier = ('clientMutationId' | 'fusion' | 'results' | SuggestFusionRevisionPayloadKeySpecifier)[]; +export type SuggestFusionRevisionPayloadFieldPolicy = { + clientMutationId?: FieldPolicy | FieldReadFunction, + fusion?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction +}; export type SuggestGeneRevisionPayloadKeySpecifier = ('clientMutationId' | 'gene' | 'results' | SuggestGeneRevisionPayloadKeySpecifier)[]; export type SuggestGeneRevisionPayloadFieldPolicy = { clientMutationId?: FieldPolicy | FieldReadFunction, @@ -3100,6 +3107,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | SuggestFactorVariantRevisionPayloadKeySpecifier | (() => undefined | SuggestFactorVariantRevisionPayloadKeySpecifier), fields?: SuggestFactorVariantRevisionPayloadFieldPolicy, }, + SuggestFusionRevisionPayload?: Omit & { + keyFields?: false | SuggestFusionRevisionPayloadKeySpecifier | (() => undefined | SuggestFusionRevisionPayloadKeySpecifier), + fields?: SuggestFusionRevisionPayloadFieldPolicy, + }, SuggestGeneRevisionPayload?: Omit & { keyFields?: false | SuggestGeneRevisionPayloadKeySpecifier | (() => undefined | SuggestGeneRevisionPayloadKeySpecifier), fields?: SuggestGeneRevisionPayloadFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index efce7e928..66edce8d3 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2646,6 +2646,16 @@ export type FusionEdge = { node?: Maybe; }; +/** Fields on a Fusion that curators may propose revisions to. */ +export type FusionFields = { + /** List of aliases or alternate names for the Fusion. */ + aliases: Array; + /** The Fusion's description/summary text. */ + description: NullableStringInput; + /** Source IDs cited by the Fusion's summary. */ + sourceIds: Array; +}; + /** The fusion partner's status and gene ID (if applicable) */ export type FusionPartnerInput = { /** The CIViC gene ID of the partner, if known */ @@ -3670,6 +3680,8 @@ export type Mutation = { suggestFactorRevision?: Maybe; /** Suggest a Revision to a Variant entity. */ suggestFactorVariantRevision?: Maybe; + /** Suggest a Revision to a Feature entity of instance type "Fusion". */ + suggestFusionRevision?: Maybe; /** Suggest a Revision to a Feature entity of instance type "Gene". */ suggestGeneRevision?: Maybe; /** Suggest a Revision to a Variant entity. */ @@ -3826,6 +3838,11 @@ export type MutationSuggestFactorVariantRevisionArgs = { }; +export type MutationSuggestFusionRevisionArgs = { + input: SuggestFusionRevisionInput; +}; + + export type MutationSuggestGeneRevisionArgs = { input: SuggestGeneRevisionInput; }; @@ -5971,6 +5988,45 @@ export type SuggestFactorVariantRevisionPayload = { variant: FactorVariant; }; +/** Autogenerated input type of SuggestFusionRevision */ +export type SuggestFusionRevisionInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ + comment: Scalars['String']; + /** + * The desired state of the Fusion's editable fields if the change were applied. + * If no change is desired for a particular field, pass in the current value of that field. + */ + fields: FusionFields; + /** The ID of the Feature of instance type "Fusion" to suggest a Revision to. */ + id: Scalars['Int']; + /** + * The ID of the organization to credit the user's contributions to. + * If the user belongs to a single organization or no organizations, this field is not required. + * This field is required if the user belongs to more than one organization. + * The user must belong to the organization provided. + */ + organizationId?: InputMaybe; +}; + +/** Autogenerated return type of SuggestFusionRevision. */ +export type SuggestFusionRevisionPayload = { + __typename: 'SuggestFusionRevisionPayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The Fusion the user has proposed a Revision to. */ + fusion: Fusion; + /** + * A list of Revisions generated as a result of this suggestion. + * If an existing Revision exactly matches the proposed one, it will be returned instead. + * This is indicated via the 'newlyCreated' Boolean. + * Revisions are stored on a per-field basis. + * The changesetId can be used to group Revisions proposed at the same time. + */ + results: Array; +}; + /** Autogenerated input type of SuggestGeneRevision */ export type SuggestGeneRevisionInput = { /** A unique identifier for the client performing the mutation. */ @@ -8188,6 +8244,22 @@ export type SuggestFactorVariantRevisionMutationVariables = Exact<{ export type SuggestFactorVariantRevisionMutation = { __typename: 'Mutation', suggestFactorVariantRevision?: { __typename: 'SuggestFactorVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'FactorVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; +export type FusionRevisableFieldsQueryVariables = Exact<{ + featureId: Scalars['Int']; +}>; + + +export type FusionRevisableFieldsQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, description?: string | undefined, featureAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }>, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' } } | undefined }; + +export type RevisableFusionFieldsFragment = { __typename: 'Feature', id: number, description?: string | undefined, featureAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }>, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' } }; + +export type SuggestFusionRevisionMutationVariables = Exact<{ + input: SuggestFusionRevisionInput; +}>; + + +export type SuggestFusionRevisionMutation = { __typename: 'Mutation', suggestFusionRevision?: { __typename: 'SuggestFusionRevisionPayload', clientMutationId?: string | undefined, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean, id: number, fieldName: string }> } | undefined }; + export type FusionVariantRevisableFieldsQueryVariables = Exact<{ variantId: Scalars['Int']; }>; @@ -10528,6 +10600,22 @@ export const RevisableFactorVariantFieldsFragmentDoc = gql` ncitId } `; +export const RevisableFusionFieldsFragmentDoc = gql` + fragment RevisableFusionFields on Feature { + id + description + sources { + id + sourceType + citation + citationId + } + featureAliases + featureInstance { + __typename + } +} + `; export const RevisableFusionVariantFieldsFragmentDoc = gql` fragment RevisableFusionVariantFields on FusionVariant { name @@ -14802,6 +14890,47 @@ export const SuggestFactorVariantRevisionDocument = gql` export class SuggestFactorVariantRevisionGQL extends Apollo.Mutation { document = SuggestFactorVariantRevisionDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const FusionRevisableFieldsDocument = gql` + query FusionRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableFusionFields + } +} + ${RevisableFusionFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class FusionRevisableFieldsGQL extends Apollo.Query { + document = FusionRevisableFieldsDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SuggestFusionRevisionDocument = gql` + mutation SuggestFusionRevision($input: SuggestFusionRevisionInput!) { + suggestFusionRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SuggestFusionRevisionGQL extends Apollo.Mutation { + document = SuggestFusionRevisionDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 137dcbf07..be2d4e83b 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4490,6 +4490,26 @@ type FusionEdge { node: Fusion } +""" +Fields on a Fusion that curators may propose revisions to. +""" +input FusionFields { + """ + List of aliases or alternate names for the Fusion. + """ + aliases: [String!]! + + """ + The Fusion's description/summary text. + """ + description: NullableStringInput! + + """ + Source IDs cited by the Fusion's summary. + """ + sourceIds: [Int!]! +} + """ The fusion partner's status and gene ID (if applicable) """ @@ -6550,6 +6570,16 @@ type Mutation { input: SuggestFactorVariantRevisionInput! ): SuggestFactorVariantRevisionPayload + """ + Suggest a Revision to a Feature entity of instance type "Fusion". + """ + suggestFusionRevision( + """ + Parameters for SuggestFusionRevision + """ + input: SuggestFusionRevisionInput! + ): SuggestFusionRevisionPayload + """ Suggest a Revision to a Feature entity of instance type "Gene". """ @@ -10059,6 +10089,64 @@ type SuggestFactorVariantRevisionPayload { variant: FactorVariant! } +""" +Autogenerated input type of SuggestFusionRevision +""" +input SuggestFusionRevisionInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + Text describing the reason for the change. Will be attached to the Revision as a comment. + """ + comment: String! + + """ + The desired state of the Fusion's editable fields if the change were applied. + If no change is desired for a particular field, pass in the current value of that field. + """ + fields: FusionFields! + + """ + The ID of the Feature of instance type "Fusion" to suggest a Revision to. + """ + id: Int! + + """ + The ID of the organization to credit the user's contributions to. + If the user belongs to a single organization or no organizations, this field is not required. + This field is required if the user belongs to more than one organization. + The user must belong to the organization provided. + """ + organizationId: Int +} + +""" +Autogenerated return type of SuggestFusionRevision. +""" +type SuggestFusionRevisionPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The Fusion the user has proposed a Revision to. + """ + fusion: Fusion! + + """ + A list of Revisions generated as a result of this suggestion. + If an existing Revision exactly matches the proposed one, it will be returned instead. + This is indicated via the 'newlyCreated' Boolean. + Revisions are stored on a per-field basis. + The changesetId can be used to group Revisions proposed at the same time. + """ + results: [RevisionResult!]! +} + """ Autogenerated input type of SuggestGeneRevision """ diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index ef4bd2c68..a21c27102 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -21078,6 +21078,81 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "FusionFields", + "description": "Fields on a Fusion that curators may propose revisions to.", + "fields": null, + "inputFields": [ + { + "name": "description", + "description": "The Fusion's description/summary text.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "NullableStringInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sourceIds", + "description": "Source IDs cited by the Fusion's summary.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "aliases", + "description": "List of aliases or alternate names for the Fusion.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "FusionPartnerInput", @@ -29855,6 +29930,35 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "suggestFusionRevision", + "description": "Suggest a Revision to a Feature entity of instance type \"Fusion\".", + "args": [ + { + "name": "input", + "description": "Parameters for SuggestFusionRevision", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "SuggestFusionRevisionInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "SuggestFusionRevisionPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "suggestGeneRevision", "description": "Suggest a Revision to a Feature entity of instance type \"Gene\".", @@ -45723,6 +45827,152 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "SuggestFusionRevisionInput", + "description": "Autogenerated input type of SuggestFusionRevision", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": "The ID of the organization to credit the user's contributions to.\nIf the user belongs to a single organization or no organizations, this field is not required.\nThis field is required if the user belongs to more than one organization.\nThe user must belong to the organization provided.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the Feature of instance type \"Fusion\" to suggest a Revision to.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fields", + "description": "The desired state of the Fusion's editable fields if the change were applied.\nIf no change is desired for a particular field, pass in the current value of that field.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "FusionFields", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "comment", + "description": "Text describing the reason for the change. Will be attached to the Revision as a comment.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "SuggestFusionRevisionPayload", + "description": "Autogenerated return type of SuggestFusionRevision.", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fusion", + "description": "The Fusion the user has proposed a Revision to.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "results", + "description": "A list of Revisions generated as a result of this suggestion.\nIf an existing Revision exactly matches the proposed one, it will be returned instead.\nThis is indicated via the 'newlyCreated' Boolean.\nRevisions are stored on a per-field basis.\nThe changesetId can be used to group Revisions proposed at the same time.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RevisionResult", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "SuggestGeneRevisionInput", diff --git a/client/src/app/views/features/features-revise/features-suggest/features-suggest.module.ts b/client/src/app/views/features/features-revise/features-suggest/features-suggest.module.ts index cc202ac4e..1282a6bed 100644 --- a/client/src/app/views/features/features-revise/features-suggest/features-suggest.module.ts +++ b/client/src/app/views/features/features-revise/features-suggest/features-suggest.module.ts @@ -10,6 +10,7 @@ import { NzPageHeaderModule } from 'ng-zorro-antd/page-header' import { CvcSectionNavigationModule } from '@app/components/shared/section-navigation/section-navigation.module' import { CvcGeneReviseFormModule } from '@app/forms/config/gene-revise/gene-revise.form.module' import { CvcFactorReviseForm } from '@app/forms/config/factor-revise/factor-revise.form' +import { CvcFusionReviseForm } from '@app/forms/config/fusion-revise/fusion-revise.form' @NgModule({ declarations: [FeaturesSuggestPage], @@ -25,6 +26,7 @@ import { CvcFactorReviseForm } from '@app/forms/config/factor-revise/factor-revi CvcGeneReviseFormModule, CvcSectionNavigationModule, CvcFactorReviseForm, + CvcFusionReviseForm ], }) export class FeaturesSuggestModule {} diff --git a/client/src/app/views/features/features-revise/features-suggest/features-suggest.page.html b/client/src/app/views/features/features-revise/features-suggest/features-suggest.page.html index 00f4b4779..26872da8a 100644 --- a/client/src/app/views/features/features-revise/features-suggest/features-suggest.page.html +++ b/client/src/app/views/features/features-revise/features-suggest/features-suggest.page.html @@ -8,6 +8,9 @@ @case ('Factor') { } + @case ('Fusion') { + + } } Loading Feature... diff --git a/server/app/graphql/mutations/suggest_fusion_revision.rb b/server/app/graphql/mutations/suggest_fusion_revision.rb new file mode 100644 index 000000000..a9080aa23 --- /dev/null +++ b/server/app/graphql/mutations/suggest_fusion_revision.rb @@ -0,0 +1,83 @@ +class Mutations::SuggestFusionRevision < Mutations::MutationWithOrg + description 'Suggest a Revision to a Feature entity of instance type "Fusion".' + + argument :id, Int, required: true, + description: 'The ID of the Feature of instance type "Fusion" to suggest a Revision to.' + + argument :fields, Types::Revisions::FusionFields, required: true, + description: <<~DOC.strip + The desired state of the Fusion's editable fields if the change were applied. + If no change is desired for a particular field, pass in the current value of that field. + DOC + + argument :comment, String, required: true, + validates: { length: { minimum: 10 } }, + description: 'Text describing the reason for the change. Will be attached to the Revision as a comment.' + + field :fusion, Types::Entities::FusionType, null: false, + description: 'The Fusion the user has proposed a Revision to.' + + field :results, [Types::Revisions::RevisionResult], null: false, + description: <<~DOC.strip + A list of Revisions generated as a result of this suggestion. + If an existing Revision exactly matches the proposed one, it will be returned instead. + This is indicated via the 'newlyCreated' Boolean. + Revisions are stored on a per-field basis. + The changesetId can be used to group Revisions proposed at the same time. + DOC + + attr_reader :fusion + + def ready?(organization_id: nil, id:, fields:, **kwargs) + validate_user_logged_in + validate_user_org(organization_id) + + fusion = Feature.find_by(id: id)&.feature_instance + if fusion.nil? + raise GraphQL::ExecutionError, "Feature with id #{id} doesn't exist." + elsif !fusion.is_a?(Features::Fusion) + raise GraphQL::ExecutionError, "Feature with id #{id} is not a Fusion feature." + end + + @fusion = fusion + + existing_source_ids = Source.where(id: fields.source_ids).pluck(:id) + if existing_source_ids.size != fields.source_ids.size + raise GraphQL::ExecutionError, "Provided source ids: #{fields.source_ids.join(', ')} but only #{existing_source_ids.join(', ')} exist." + end + + return true + end + + def authorized?(organization_id: nil, **kwargs) + validate_user_acting_as_org(user: context[:current_user], organization_id: organization_id) + return true + end + + def resolve(fields:, id:, organization_id: nil, comment:) + updated_fusion = InputAdaptors::FusionInputAdaptor.new( + fusion_input_object: fields, + ).perform + revised_objs = Activities::RevisedObjectPair.new(existing_obj: fusion, updated_obj: updated_fusion) + binding.irb + + cmd = Activities::SuggestRevisionSet.new( + revised_objects: revised_objs, + subject: fusion.feature, + originating_user: context[:current_user], + organization_id: organization_id, + note: comment + ) + res = cmd.perform + + if res.succeeded? + { + fusion: fusion, + results: res.revision_results + } + else + raise GraphQL::ExecutionError, res.errors.join(', ') + end + end +end + diff --git a/server/app/graphql/types/mutation_type.rb b/server/app/graphql/types/mutation_type.rb index 4ebcfd8b3..855b612e5 100644 --- a/server/app/graphql/types/mutation_type.rb +++ b/server/app/graphql/types/mutation_type.rb @@ -6,6 +6,7 @@ class MutationType < Types::BaseObject #revisions field :suggest_gene_revision, mutation: Mutations::SuggestGeneRevision field :suggest_factor_revision, mutation: Mutations::SuggestFactorRevision + field :suggest_fusion_revision, mutation: Mutations::SuggestFusionRevision field :suggest_gene_variant_revision, mutation: Mutations::SuggestGeneVariantRevision field :suggest_factor_variant_revision, mutation: Mutations::SuggestFactorVariantRevision field :suggest_molecular_profile_revision, mutation: Mutations::SuggestMolecularProfileRevision diff --git a/server/app/graphql/types/revisions/fusion_fields.rb b/server/app/graphql/types/revisions/fusion_fields.rb new file mode 100644 index 000000000..10c36efdf --- /dev/null +++ b/server/app/graphql/types/revisions/fusion_fields.rb @@ -0,0 +1,11 @@ +module Types::Revisions + class FusionFields < Types::BaseInputObject + description 'Fields on a Fusion that curators may propose revisions to.' + argument :description, Types::NullableValueInputType.for(GraphQL::Types::String), required: true, + description: "The Fusion's description/summary text." + argument :source_ids, [Int], required: true, + description: "Source IDs cited by the Fusion's summary." + argument :aliases, [String], required: true, + description: 'List of aliases or alternate names for the Fusion.' + end +end diff --git a/server/app/models/concerns/is_feature_instance.rb b/server/app/models/concerns/is_feature_instance.rb index 5677f1191..2f66f1dbe 100644 --- a/server/app/models/concerns/is_feature_instance.rb +++ b/server/app/models/concerns/is_feature_instance.rb @@ -2,7 +2,7 @@ module IsFeatureInstance extend ActiveSupport::Concern included do - has_one :feature, as: :feature_instance, touch: true, autosave: true + has_one :feature, as: :feature_instance, touch: true, autosave: true, inverse_of: :feature_instance delegate_missing_to :feature diff --git a/server/app/models/feature.rb b/server/app/models/feature.rb index 7c4434588..6e220eb53 100644 --- a/server/app/models/feature.rb +++ b/server/app/models/feature.rb @@ -26,7 +26,7 @@ class Feature < ApplicationRecord searchkick highlight: [:name, :aliases, :feature_type], callbacks: :async scope :search_import, -> { includes(:feature_aliases) } -# validates :name, uniqueness: { scope: :feature_instance_type } + validates :name, uniqueness: { scope: :feature_instance_type } def search_data { diff --git a/server/app/models/features/fusion.rb b/server/app/models/features/fusion.rb index 0f3d85371..891135912 100644 --- a/server/app/models/features/fusion.rb +++ b/server/app/models/features/fusion.rb @@ -33,17 +33,19 @@ def mp_name end def partner_status_valid_for_gene_ids - [self.five_prime_gene, self.three_prime_gene].zip([self.five_prime_partner_status, self.three_prime_partner_status], [:five_prime_gene, :three_prime_gene]).each do |gene, status, fk| - if gene.nil? && status == 'known' - errors.add(fk, "Partner status cannot be 'known' if the gene isn't set") - elsif !gene.nil? && status != 'known' - errors.add(fk, "Partner status has to be 'known' if gene is set") + if !self.in_revision_validation_context + [self.five_prime_gene, self.three_prime_gene].zip([self.five_prime_partner_status, self.three_prime_partner_status], [:five_prime_gene, :three_prime_gene]).each do |gene, status, fk| + if gene.nil? && status == 'known' + errors.add(fk, "Partner status cannot be 'known' if the gene isn't set") + elsif !gene.nil? && status != 'known' + errors.add(fk, "Partner status has to be 'known' if gene is set") + end end end end def at_least_one_gene_id - if self.five_prime_gene_id.nil? && self.three_prime_gene_id.nil? + if !self.in_revision_validation_context && self.five_prime_gene_id.nil? && self.three_prime_gene_id.nil? errors.add(:base, "One or both of the genes need to be set") end end @@ -55,7 +57,8 @@ def display_name def editable_fields [ :description, - :source_ids + :source_ids, + :feature_alias_ids ] end diff --git a/server/app/models/input_adaptors/fusion_input_adaptor.rb b/server/app/models/input_adaptors/fusion_input_adaptor.rb new file mode 100644 index 000000000..f4cff7f9d --- /dev/null +++ b/server/app/models/input_adaptors/fusion_input_adaptor.rb @@ -0,0 +1,29 @@ +#Conversion from a GraphQL FusionFields input object to Fusion model type +class InputAdaptors::FusionInputAdaptor + attr_reader :input + + def initialize(fusion_input_object: ) + @input = fusion_input_object + end + + def perform + i = Features::Fusion.new() + f = Feature.new( + description: input.description, + source_ids: input.source_ids, + feature_alias_ids: get_alias_ids, + feature_instance: i + ) + #because there are validations on the fusion feature instance, + #this ensures that the inverse relationship from feature instance -> feature is made + i.feature = f + return f + end + + private + def get_alias_ids + input.aliases.map do |a| + FeatureAlias.get_or_create_by_name(a).id + end + end +end From bcc644a09717ba143ca535694d151227c1d81430 Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Mon, 12 Aug 2024 09:03:38 -0500 Subject: [PATCH 32/56] Name representative variant for Fusions with an unknown fusion partner "Rearrangement" instead of "Fusion" --- server/app/models/actions/create_fusion_feature.rb | 9 +++++++-- server/app/models/variants/fusion_variant.rb | 6 ++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index 6ae26f038..4332aab10 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -32,15 +32,20 @@ def construct_fusion_partner_name(gene_id, partner_status) end def create_representative_variant + variant_name = if five_prime_partner_status == 'unknown' || three_prime_partner_status == 'unknown' + 'Rearrangement' + else + 'Fusion' + end stubbed_variant = Variants::FusionVariant.new( feature: feature, - name: 'Fusion' + name: variant_name ) vicc_compliant_name = stubbed_variant.generate_vicc_name cmd = Actions::CreateVariant.new( - variant_name: 'Fusion', + variant_name: variant_name, feature_id: feature.id, originating_user: originating_user, organization_id: organization_id, diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 92e7ff478..1b8c2838b 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -75,6 +75,8 @@ def required_fields def mp_name if name == 'Fusion' "#{feature.name} Fusion" + elsif name == 'Rearrangement' + "#{feature.name} Rearrangement" else [ construct_five_prime_name(name_type: :molecular_profile), @@ -85,7 +87,7 @@ def mp_name end def generate_vicc_name - if name == 'Fusion' + if name == 'Fusion' || name == 'Rearrangement' "#{construct_five_prime_name(name_type: :representative)}::#{construct_three_prime_name(name_type: :representative)}" else "#{construct_five_prime_name(name_type: :vicc)}::#{construct_three_prime_name(name_type: :vicc)}" @@ -93,7 +95,7 @@ def generate_vicc_name end def generate_name - if name == 'Fusion' + if name == 'Fusion' || name == 'Rearrangement' name else [ From 8af6477c0014f0dc7f6c313d12d7c481b80bd9aa Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Mon, 12 Aug 2024 09:20:13 -0500 Subject: [PATCH 33/56] Fix error with fusion feature creation due to usage of in_revision_validation_context --- .../app/graphql/mutations/suggest_fusion_revision.rb | 1 - server/app/models/actions/create_fusion_feature.rb | 12 +++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/server/app/graphql/mutations/suggest_fusion_revision.rb b/server/app/graphql/mutations/suggest_fusion_revision.rb index a9080aa23..5570fe347 100644 --- a/server/app/graphql/mutations/suggest_fusion_revision.rb +++ b/server/app/graphql/mutations/suggest_fusion_revision.rb @@ -59,7 +59,6 @@ def resolve(fields:, id:, organization_id: nil, comment:) fusion_input_object: fields, ).perform revised_objs = Activities::RevisedObjectPair.new(existing_obj: fusion, updated_obj: updated_fusion) - binding.irb cmd = Activities::SuggestRevisionSet.new( revised_objects: revised_objs, diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index 4332aab10..3a7ed1b6a 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -2,20 +2,22 @@ module Actions class CreateFusionFeature include Actions::Transactional - attr_reader :feature, :originating_user, :organization_id, :create_variant + attr_reader :feature, :originating_user, :organization_id, :create_variant, :five_prime_partner_status, :three_prime_partner_status def initialize(originating_user:, five_prime_gene_id:, three_prime_gene_id:, five_prime_partner_status:, three_prime_partner_status:, organization_id: nil, create_variant: true) feature_name = "#{construct_fusion_partner_name(five_prime_gene_id, five_prime_partner_status)}::#{construct_fusion_partner_name(three_prime_gene_id, three_prime_partner_status)}" + @feature = Feature.new( + name: feature_name, + ) fusion = Features::Fusion.create( five_prime_gene_id: five_prime_gene_id, three_prime_gene_id: three_prime_gene_id, five_prime_partner_status: five_prime_partner_status, three_prime_partner_status: three_prime_partner_status, + feature: feature, ) - @feature = Feature.new( - name: feature_name, - feature_instance: fusion - ) + @five_prime_partner_status = five_prime_partner_status + @three_prime_partner_status = three_prime_partner_status @originating_user = originating_user @organization_id = organization_id @create_variant = create_variant From a3b2596aa20e7b81455d875611ff9d2c4d6542d6 Mon Sep 17 00:00:00 2001 From: Susanna Kiwala Date: Mon, 12 Aug 2024 09:36:23 -0500 Subject: [PATCH 34/56] Fix some bugs in the variant creation introduced with ExonCoordinate switch --- server/app/graphql/mutations/create_fusion_variant.rb | 8 ++++---- .../app/graphql/types/fusion/fusion_variant_input_type.rb | 4 ++-- server/app/models/variants/fusion_variant.rb | 6 ++---- server/app/validators/exon_coordinate_validator.rb | 7 ------- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/server/app/graphql/mutations/create_fusion_variant.rb b/server/app/graphql/mutations/create_fusion_variant.rb index 9b80fd95d..5bf683d00 100644 --- a/server/app/graphql/mutations/create_fusion_variant.rb +++ b/server/app/graphql/mutations/create_fusion_variant.rb @@ -47,8 +47,8 @@ def authorized?(organization_id: nil, **kwargs) def resolve(coordinates:, feature_id:, organization_id: nil) stubbed_variant = Variants::FusionVariant.new( feature_id: feature_id, - five_prime_coordinates: coordinates[:five_prime_coords], - three_prime_coordinates: coordinates[:three_prime_coords] + five_prime_end_exon_coordinates: coordinates[:five_prime_coords], + three_prime_start_exon_coordinates: coordinates[:three_prime_coords] ) vicc_name = stubbed_variant.generate_vicc_name @@ -65,8 +65,8 @@ def resolve(coordinates:, feature_id:, organization_id: nil) else cmd = Activities::CreateFusionVariant.new( - three_prime_coords: coordinates[:three_prime_coords], - five_prime_coords: coordinates[:five_prime_coords], + three_prime_start_exon_coords: coordinates[:three_prime_coords], + five_prime_end_exon_coords: coordinates[:five_prime_coords], feature_id: feature_id, originating_user: context[:current_user], organization_id: organization_id, diff --git a/server/app/graphql/types/fusion/fusion_variant_input_type.rb b/server/app/graphql/types/fusion/fusion_variant_input_type.rb index 017e79902..500994925 100644 --- a/server/app/graphql/types/fusion/fusion_variant_input_type.rb +++ b/server/app/graphql/types/fusion/fusion_variant_input_type.rb @@ -24,7 +24,7 @@ def prepare reference_build: reference_build, ensembl_version: ensembl_version, representative_transcript: five_prime_transcript, - exon_boundary: five_prime_exon_end, + exon: five_prime_exon_end, exon_offset: five_prime_offset, exon_offset_direction: five_prime_offset_direction, record_state: 'exons_provided' @@ -39,7 +39,7 @@ def prepare reference_build: reference_build, ensembl_version: ensembl_version, representative_transcript: three_prime_transcript, - exon_boundary: three_prime_exon_start, + exon: three_prime_exon_start, exon_offset: three_prime_offset, exon_offset_direction: three_prime_offset_direction, record_state: 'exons_provided' diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 1b8c2838b..c41c0f36c 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -111,7 +111,6 @@ def construct_five_prime_name(name_type:) name_type: name_type, partner_status: fusion.five_prime_partner_status, gene: fusion.five_prime_gene, - coords: five_prime_coordinates, exon_coords: five_prime_end_exon_coordinates, ) end @@ -121,12 +120,11 @@ def construct_three_prime_name(name_type:) name_type: name_type, partner_status: fusion.three_prime_partner_status, gene: fusion.three_prime_gene, - coords: three_prime_coordinates, exon_coords: three_prime_start_exon_coordinates, ) end - def construct_partner_name(name_type:, partner_status:, gene:, coords:, exon_coords:) + def construct_partner_name(name_type:, partner_status:, gene:, exon_coords:) if partner_status == 'known' case name_type when :representative @@ -134,7 +132,7 @@ def construct_partner_name(name_type:, partner_status:, gene:, coords:, exon_coo when :civic "e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" when :vicc - "#{coords.representative_transcript}(#{gene.name}):e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" + "#{exon_coords.representative_transcript}(#{gene.name}):e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" when :molecular_profile "#{gene.name}:e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" end diff --git a/server/app/validators/exon_coordinate_validator.rb b/server/app/validators/exon_coordinate_validator.rb index 1425665ae..1b2b177d5 100644 --- a/server/app/validators/exon_coordinate_validator.rb +++ b/server/app/validators/exon_coordinate_validator.rb @@ -41,11 +41,4 @@ def validate_full_record(record) validate_present(record, :stop) validate_present(record, :ensembl_id) end - - def validate_gene_variant_coordinates(record) - validate_not_present(record, :exon_boundary) - validate_not_present(record, :exon_offset) - validate_not_present(record, :exon_offset_direction) - require_transcript_and_build_for_coords(record) - end end From e227cb9c7354c1e59bcdc74a80e07ae8bfb99544 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 12 Aug 2024 10:19:37 -0500 Subject: [PATCH 35/56] retry fragment read with subtype on cache miss --- .../mp-finder/mp-finder.component.ts | 40 ++++++++++++++----- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts b/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts index be97e111e..7875ab52d 100644 --- a/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts +++ b/client/src/app/forms/types/molecular-profile-select/mp-finder/mp-finder.component.ts @@ -111,19 +111,17 @@ export class MpFinderComponent { featureId: undefined, variantId: undefined, } + console.log(variant) this.cvcOnSelect.next(variant.singleVariantMolecularProfile) this.cvcOnVariantSelect.next(variant) } } - getSelectedVariant(variantId: Maybe): Maybe { - if (!variantId) return - const feature = new EnumToTitlePipe().transform(this.featureType) - - const fragment = { + getFragment(feature: string, variantId: number) { + return { id: `${feature}Variant:${variantId}`, fragment: gql` - fragment VariantSelectQuery on ${feature}Variant { + fragment ${feature}VariantSelectQuery on ${feature}Variant { id name link @@ -138,16 +136,36 @@ export class MpFinderComponent { } `, } + } + + getSelectedVariant(variantId: Maybe): Maybe { + if (!variantId) return + const feature = new EnumToTitlePipe().transform(this.featureType) let variant + + const firstFragment = this.getFragment(feature, variantId) try { - variant = this.apollo.client.readFragment(fragment) as Variant + variant = this.apollo.client.readFragment(firstFragment) as Variant } catch (err) { console.error(err) } - if (!variant) { - console.error(`MpFinderForm could not resolve its Variant from the cache`) - return + + if (variant) { + return variant + } + + const secondFragment = this.getFragment('', variantId) + try { + variant = this.apollo.client.readFragment(secondFragment) as Variant + } catch (err) { + console.error(err) } - return variant + + if (variant) { + return variant + } + + console.error(`MpFinderForm could not resolve its Variant from the cache`) + return } } From edeca18698f5047d01378f563ccf1fd974d5b122 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 12 Aug 2024 10:36:14 -0500 Subject: [PATCH 36/56] validate transcript ids match expected ensembl format --- .../fusion-variant-revise.form.config.ts | 15 +++++++++++++++ .../gene-variant-revise.form.config.ts | 8 ++++++++ .../fusion-variant-select.form.ts | 18 ++++++++++++++++++ server/app/models/constants.rb | 3 +++ server/app/models/exon_coordinate.rb | 5 +++++ server/app/models/variant_coordinate.rb | 5 +++++ 6 files changed, 54 insertions(+) diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts index 364651d9f..6fb516ef3 100644 --- a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts @@ -7,6 +7,7 @@ import { CvcFormRowWrapperProps } from '@app/forms/wrappers/form-row/form-row.wr import { CvcOrgSubmitButtonFieldConfig } from '@app/forms/types/org-submit-button/org-submit-button.type' import { directionSelectOptions, + isEnsemblTranscript, isNumeric, } from '@app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form' import { AbstractControl } from '@angular/forms' @@ -129,6 +130,13 @@ function formFieldConfig( tooltip: "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected", }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + "5' Transcript must be a valid, human, versioned, Ensembl transcript ID", + }, + }, }, { key: 'fivePrimeExonEnd', @@ -203,6 +211,13 @@ function formFieldConfig( tooltip: "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected", }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + "3' Transcript must be a valid, human, versioned, Ensembl transcript ID", + }, + }, }, { key: 'threePrimeExonStart', diff --git a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts index 32ca0a939..7a6445b7d 100644 --- a/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts +++ b/client/src/app/forms/config/gene-variant-revise/gene-variant-revise.form.config.ts @@ -7,6 +7,7 @@ import { CvcFormLayoutWrapperProps } from '@app/forms/wrappers/form-layout/form- import { FormlyFieldConfig } from '@ngx-formly/core' import { CvcFormRowWrapperProps } from '@app/forms/wrappers/form-row/form-row.wrapper' import { CvcOrgSubmitButtonFieldConfig } from '@app/forms/types/org-submit-button/org-submit-button.type' +import { isEnsemblTranscript } from '@app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form' const formFieldConfig: FormlyFieldConfig[] = [ { @@ -243,6 +244,13 @@ const formFieldConfig: FormlyFieldConfig[] = [ description: 'Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl).', }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + 'Representative Transcript must be a valid, human, versioned, Ensembl transcript ID', + }, + }, }, ], }, diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts index dfbec1c70..78f713b43 100644 --- a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts @@ -74,6 +74,10 @@ export const directionSelectOptions = [ export const isNumeric = (c: AbstractControl) => c.value ? /^\d+$/.test(c.value) : true +export const isEnsemblTranscript = (c: AbstractControl) => { + return c.value ? /ENST\d{11}\.\d{1,2}/.test(c.value) : true +} + @UntilDestroy() @Component({ standalone: true, @@ -217,6 +221,13 @@ export class CvcFusionVariantSelectForm { tooltip: "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected", }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + "5' Transcript must be a valid, human, versioned, Ensembl transcript ID", + }, + }, }, { key: 'fivePrimeExonEnd', @@ -291,6 +302,13 @@ export class CvcFusionVariantSelectForm { tooltip: "Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected", }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + "5' Transcript must be a valid, human, versioned, Ensembl transcript ID", + }, + }, }, { key: 'threePrimeExonStart', diff --git a/server/app/models/constants.rb b/server/app/models/constants.rb index 49a1f4eac..627130329 100644 --- a/server/app/models/constants.rb +++ b/server/app/models/constants.rb @@ -132,4 +132,7 @@ module Constants ].flatten CIVICBOT_USER_ID = 385 + + # http://useast.ensembl.org/info/genome/stable_ids/index.html + ENSEMBL_TRANSCRIPT_ID_FORMAT = /\AENST\d{11}\.\d{1,2}\z/ end diff --git a/server/app/models/exon_coordinate.rb b/server/app/models/exon_coordinate.rb index cc0dd47bf..09dfce76a 100644 --- a/server/app/models/exon_coordinate.rb +++ b/server/app/models/exon_coordinate.rb @@ -7,6 +7,11 @@ class ExonCoordinate < ApplicationRecord message: "%{value} is not a valid coordinate type" } + validates :representative_transcript, format: { + with: Constants::ENSEMBL_TRANSCRIPT_ID_FORMAT, + message: "must be a valid, versioned, human, Ensembl transcript ID" + }, allow_nil: true + validates_with ExonCoordinateValidator enum reference_build: Constants::SUPPORTED_REFERENCE_BUILDS diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb index e424d775a..2b46308c1 100644 --- a/server/app/models/variant_coordinate.rb +++ b/server/app/models/variant_coordinate.rb @@ -20,6 +20,11 @@ class VariantCoordinate < ApplicationRecord message: "only allows A,C,T,G or /" }, allow_nil: true + validates :representative_transcript, format: { + with: Constants::ENSEMBL_TRANSCRIPT_ID_FORMAT, + message: "must be a valid, versioned, human, Ensembl transcript ID" + }, allow_nil: true + validates :coordinate_type, presence: true validates :coordinate_type, inclusion: { in: Constants::VALID_VARIANT_COORDINATE_TYPES, From d3cf584a8e2f2b6ee7cfa58909981cc0b89c22a6 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 12 Aug 2024 11:00:21 -0500 Subject: [PATCH 37/56] flag variants when there is an issue backfilling coordinates --- .../app/jobs/populate_fusion_coordinates.rb | 38 +++++++++++++++---- server/app/models/variants/fusion_variant.rb | 2 +- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/server/app/jobs/populate_fusion_coordinates.rb b/server/app/jobs/populate_fusion_coordinates.rb index 763d120af..dcfd28d37 100644 --- a/server/app/jobs/populate_fusion_coordinates.rb +++ b/server/app/jobs/populate_fusion_coordinates.rb @@ -12,6 +12,9 @@ def perform(variant) populate_coords(variant.three_prime_start_exon_coordinates, variant.three_prime_end_exon_coordinates) populate_representative_coordinates(variant.three_prime_coordinates, variant.three_prime_start_exon_coordinates, variant.three_prime_end_exon_coordinates) end + rescue StandardError => e + flag_variant(variant, e.message) + raise StandardError.new(e.message) end def populate_coords(coords, secondary_coordinates) @@ -84,14 +87,33 @@ def populate_representative_coordinates(coordinate, start_exon_coordinates, end_ coordinate.record_state = 'fully_curated' coordinate.save! end -end -def calculate_offset(pos, coords) - if coords.exon_offset.blank? - pos - elsif coords.exon_offset_direction == 'positive' - pos + coords.exon_offset - else - pos - coords.exon_offset + def calculate_offset(pos, coords) + if coords.exon_offset.blank? + pos + elsif coords.exon_offset_direction == 'positive' + pos + coords.exon_offset + else + pos - coords.exon_offset + end + end + + def flag_variant(variant, error_message) + existing_flag = variant.flags.includes(:open_activity) + .where(state: 'open') + .select { |f| f.open_activity.note == error_message && f.open_activity.user_id == Constants::CIVICBOT_USER_ID } + .any? + + if !existing_flag + civicbot_user = User.find(Constants::CIVICBOT_USER_ID) + + cmd = Activities::FlagEntity.new( + flagging_user: civicbot_user, + flaggable: variant, + organization_id: nil, + note: error_message + ).perform + end end end + diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index c41c0f36c..b5ed42fb1 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -38,7 +38,7 @@ class FusionVariant < Variant foreign_key: 'variant_id', class_name: 'ExonCoordinate' - after_create :populate_coordinates + after_create_commit :populate_coordinates def self.valid_variant_coordinate_types [ From 2b6470c35da9ffc6a6863e054098e9a15f790e05 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 12 Aug 2024 13:21:14 -0500 Subject: [PATCH 38/56] stub in coordinate fields for default bucket fusions --- .../coordinates-card.component.html | 90 ++++++++++++------- .../fusion-variant-to-model-fields.ts | 21 ++--- client/src/app/generated/civic.apollo.ts | 32 +++---- client/src/app/generated/server.model.graphql | 12 +-- client/src/app/generated/server.schema.json | 60 ++++--------- .../types/variants/fusion_variant_type.rb | 12 +-- .../app/jobs/populate_fusion_coordinates.rb | 5 ++ .../models/actions/create_fusion_feature.rb | 18 +++- server/app/models/variants/fusion_variant.rb | 6 ++ 9 files changed, 141 insertions(+), 115 deletions(-) diff --git a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html index 85e95a9f4..71e7ba7ab 100644 --- a/client/src/app/components/variants/coordinates-card/coordinates-card.component.html +++ b/client/src/app/components/variants/coordinates-card/coordinates-card.component.html @@ -15,8 +15,7 @@ @if (variant.fivePrimeCoordinates) { - + - + - + @@ -159,7 +157,8 @@ *ngTemplateOutlet=" exonCoordinateCard; context: { - $implicit: this.cvcCoordinates.fivePrimeEndExonCoordinates, + $implicit: + this.cvcCoordinates.fivePrimeEndExonCoordinates, variant: this.cvcCoordinates } "> @@ -173,8 +172,7 @@ @if (this.cvcCoordinates.threePrimeCoordinates) { - + @@ -203,7 +202,8 @@ *ngTemplateOutlet=" exonCoordinateCard; context: { - $implicit: this.cvcCoordinates.threePrimeEndExonCoordinates, + $implicit: + this.cvcCoordinates.threePrimeEndExonCoordinates, variant: this.cvcCoordinates } "> @@ -231,9 +231,21 @@ #coordinateCard let-variant="variant" let-coords> + + + + + + @if (coords) { - + - + - + {{ coords.chromosome }} - + {{ coords.start }} - + {{ coords.stop }} - + + + + + + @if (coords) { - + - + + nzTitle="Transcript" + nzSpan="2"> - + {{ coords.chromosome }} @@ -397,7 +418,8 @@ + nzTitle="Start" + nzSpan="2"> {{ coords.start }} @@ -405,19 +427,19 @@ + nzTitle="Stop" + nzSpan="2"> {{ coords.stop }} - + @if (coords.exonOffset && coords.exonOffsetDirection) { - {{ coords.exonOffsetDirection | enumToTitle }}{{ coords.exonOffset }} - } - @else { + {{ coords.exonOffsetDirection | enumToTitle + }}{{ coords.exonOffset }} + } @else { 0 } diff --git a/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts b/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts index 917a584d1..72570902d 100644 --- a/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts +++ b/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts @@ -13,21 +13,22 @@ export function fusionVariantToModelFields( aliases: variant.variantAliases, variantTypeIds: variant.variantTypes.map((vt) => vt.id), fivePrimeTranscript: - variant.fivePrimeEndExonCoordinates.representativeTranscript, - fivePrimeExonEnd: variant.fivePrimeEndExonCoordinates.exon?.toString(), - fivePrimeOffset: variant.fivePrimeEndExonCoordinates.exonOffset?.toString(), + variant.fivePrimeEndExonCoordinates?.representativeTranscript, + fivePrimeExonEnd: variant.fivePrimeEndExonCoordinates?.exon?.toString(), + fivePrimeOffset: + variant.fivePrimeEndExonCoordinates?.exonOffset?.toString(), fivePrimeOffsetDirection: - variant.fivePrimeEndExonCoordinates.exonOffsetDirection, + variant.fivePrimeEndExonCoordinates?.exonOffsetDirection, threePrimeTranscript: - variant.threePrimeStartExonCoordinates.representativeTranscript, + variant.threePrimeStartExonCoordinates?.representativeTranscript, threePrimeExonStart: - variant.threePrimeStartExonCoordinates.exon?.toString(), + variant.threePrimeStartExonCoordinates?.exon?.toString(), threePrimeOffset: - variant.threePrimeStartExonCoordinates.exonOffset?.toString(), + variant.threePrimeStartExonCoordinates?.exonOffset?.toString(), threePrimeOffsetDirection: - variant.threePrimeStartExonCoordinates.exonOffsetDirection, - referenceBuild: variant.fivePrimeEndExonCoordinates.referenceBuild, - ensemblVersion: variant.fivePrimeEndExonCoordinates.ensemblVersion, + variant.threePrimeStartExonCoordinates?.exonOffsetDirection, + referenceBuild: variant.fivePrimeEndExonCoordinates?.referenceBuild, + ensemblVersion: variant.fivePrimeEndExonCoordinates?.ensemblVersion, } } diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 66edce8d3..d0ff60493 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2682,9 +2682,9 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla /** List and filter events for an object */ events: EventConnection; feature: Feature; - fivePrimeCoordinates: VariantCoordinate; - fivePrimeEndExonCoordinates: ExonCoordinate; - fivePrimeStartExonCoordinates: ExonCoordinate; + fivePrimeCoordinates?: Maybe; + fivePrimeEndExonCoordinates?: Maybe; + fivePrimeStartExonCoordinates?: Maybe; flagged: Scalars['Boolean']; /** List and filter flags. */ flags: FlagConnection; @@ -2701,9 +2701,9 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; singleVariantMolecularProfileId: Scalars['Int']; - threePrimeCoordinates: VariantCoordinate; - threePrimeEndExonCoordinates: ExonCoordinate; - threePrimeStartExonCoordinates: ExonCoordinate; + threePrimeCoordinates?: Maybe; + threePrimeEndExonCoordinates?: Maybe; + threePrimeStartExonCoordinates?: Maybe; variantAliases: Array; variantTypes: Array; viccCompliantName: Scalars['String']; @@ -7888,11 +7888,11 @@ export type CoordinatesCardQueryVariables = Exact<{ }>; -export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; +export type CoordinatesCardQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined } | { __typename: 'Variant', id: number, name: string } | undefined }; type CoordinatesCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string }; -type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; +type CoordinatesCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; type CoordinatesCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined }; @@ -8265,9 +8265,9 @@ export type FusionVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type FusionVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number, name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number } | undefined }; +export type FusionVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number, name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableFusionVariantFieldsFragment = { __typename: 'FusionVariant', name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; +export type RevisableFusionVariantFieldsFragment = { __typename: 'FusionVariant', name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; export type SuggestFusionVariantRevisionMutationVariables = Exact<{ input: SuggestFactorVariantRevisionInput; @@ -8866,9 +8866,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8880,7 +8880,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; +type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; @@ -9090,11 +9090,11 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; +type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; @@ -9106,7 +9106,7 @@ export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; -export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, threePrimeCoordinates: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType }, fivePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, fivePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeStartExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }, threePrimeEndExonCoordinates: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } }; +export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index be2d4e83b..5addeb0f1 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4621,9 +4621,9 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F sortBy: DateSort ): EventConnection! feature: Feature! - fivePrimeCoordinates: VariantCoordinate! - fivePrimeEndExonCoordinates: ExonCoordinate! - fivePrimeStartExonCoordinates: ExonCoordinate! + fivePrimeCoordinates: VariantCoordinate + fivePrimeEndExonCoordinates: ExonCoordinate + fivePrimeStartExonCoordinates: ExonCoordinate flagged: Boolean! """ @@ -4751,9 +4751,9 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F ): RevisionConnection! singleVariantMolecularProfile: MolecularProfile! singleVariantMolecularProfileId: Int! - threePrimeCoordinates: VariantCoordinate! - threePrimeEndExonCoordinates: ExonCoordinate! - threePrimeStartExonCoordinates: ExonCoordinate! + threePrimeCoordinates: VariantCoordinate + threePrimeEndExonCoordinates: ExonCoordinate + threePrimeStartExonCoordinates: ExonCoordinate variantAliases: [String!]! variantTypes: [VariantType!]! viccCompliantName: String! diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index a21c27102..b54a8ccca 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -21561,13 +21561,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "VariantCoordinate", - "ofType": null - } + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -21577,13 +21573,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExonCoordinate", - "ofType": null - } + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -21593,13 +21585,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExonCoordinate", - "ofType": null - } + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -22084,13 +22072,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "VariantCoordinate", - "ofType": null - } + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -22100,13 +22084,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExonCoordinate", - "ofType": null - } + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -22116,13 +22096,9 @@ "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ExonCoordinate", - "ofType": null - } + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null }, "isDeprecated": false, "deprecationReason": null diff --git a/server/app/graphql/types/variants/fusion_variant_type.rb b/server/app/graphql/types/variants/fusion_variant_type.rb index ed9673a30..a65b18b76 100644 --- a/server/app/graphql/types/variants/fusion_variant_type.rb +++ b/server/app/graphql/types/variants/fusion_variant_type.rb @@ -1,12 +1,12 @@ module Types::Variants class FusionVariantType < Types::Entities::VariantType - field :five_prime_coordinates, Types::Entities::VariantCoordinateType, null: false - field :three_prime_coordinates, Types::Entities::VariantCoordinateType, null: false - field :five_prime_start_exon_coordinates, Types::Entities::ExonCoordinateType, null: false - field :five_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: false - field :three_prime_start_exon_coordinates, Types::Entities::ExonCoordinateType, null: false - field :three_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: false + field :five_prime_coordinates, Types::Entities::VariantCoordinateType, null: true + field :three_prime_coordinates, Types::Entities::VariantCoordinateType, null: true + field :five_prime_start_exon_coordinates, Types::Entities::ExonCoordinateType, null: true + field :five_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: true + field :three_prime_start_exon_coordinates, Types::Entities::ExonCoordinateType, null: true + field :three_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false field :vicc_compliant_name, String, null: false diff --git a/server/app/jobs/populate_fusion_coordinates.rb b/server/app/jobs/populate_fusion_coordinates.rb index dcfd28d37..43042d62a 100644 --- a/server/app/jobs/populate_fusion_coordinates.rb +++ b/server/app/jobs/populate_fusion_coordinates.rb @@ -77,6 +77,11 @@ def populate_exon_coordinates(coordinates, exon) end def populate_representative_coordinates(coordinate, start_exon_coordinates, end_exon_coordinates) + coordinate.chromosome = start_exon_coordinates.chromosome + coordinate.representative_transcript = start_exon_coordinates.representative_transcript + coordinate.ensembl_version = start_exon_coordinates.ensembl_version + coordinate.reference_build = start_exon_coordinates.reference_build + if start_exon_coordinates.strand == 'positive' coordinate.start = calculate_offset(start_exon_coordinates.start, start_exon_coordinates) coordinate.stop = calculate_offset(end_exon_coordinates.stop, end_exon_coordinates) diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index 3a7ed1b6a..afae55200 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -9,7 +9,7 @@ def initialize(originating_user:, five_prime_gene_id:, three_prime_gene_id:, fiv @feature = Feature.new( name: feature_name, ) - fusion = Features::Fusion.create( + Features::Fusion.create( five_prime_gene_id: five_prime_gene_id, three_prime_gene_id: three_prime_gene_id, five_prime_partner_status: five_prime_partner_status, @@ -55,6 +55,9 @@ def create_representative_variant ) cmd.perform + variant = cmd.variant + stub_remaining_coordinates(variant) + if cmd.errors.any? errors.each do |err| errors << err @@ -64,6 +67,19 @@ def create_representative_variant events << cmd.events end + def stub_remaining_coordinates(variant) + if five_prime_partner_status == 'known' + variant.five_prime_start_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Five Prime Start Exon Coordinate') + variant.five_prime_end_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Five Prime End Exon Coordinate') + variant.five_prime_coordinates = VariantCoordinate.generate_stub(variant, 'Five Prime Fusion Coordinate') + end + if three_prime_partner_status == 'known' + variant.three_prime_end_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Three Prime End Exon Coordinate') + variant.three_prime_start_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Three Prime Start Exon Coordinate') + variant.three_prime_coordinates = VariantCoordinate.generate_stub(variant, 'Three Prime Fusion Coordinate') + end + end + private def execute feature.save! diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index b5ed42fb1..70b8527b0 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -169,6 +169,12 @@ def correct_coordinate_type end def populate_coordinates + unless self.name == 'Fusion' + PopulateFusionCoordinates.perform_later(self) + end + end + + def on_revision_accepted PopulateFusionCoordinates.perform_later(self) end end From 4de938666374261ef838f61b01ea3210c78375a1 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 12 Aug 2024 14:29:10 -0500 Subject: [PATCH 39/56] fusion revision submission working --- .../fusion-variant-revise.query.gql | 5 +- .../fusion-variant-to-model-fields.ts | 50 ++-- .../utilities/input-formatters/shared.ts | 4 + .../src/app/generated/civic.apollo-helpers.ts | 13 +- client/src/app/generated/civic.apollo.ts | 64 ++++- client/src/app/generated/server.model.graphql | 88 +++++++ client/src/app/generated/server.schema.json | 246 ++++++++++++++++++ .../suggest_fusion_variant_revision.rb | 119 +++++++++ server/app/graphql/types/mutation_type.rb | 1 + .../types/revisions/fusion_variant_fields.rb | 12 + server/app/models/exon_coordinate.rb | 13 + .../fusion_variant_input_adaptor.rb | 22 ++ server/app/models/variant.rb | 11 +- server/app/models/variants/factor_variant.rb | 10 + server/app/models/variants/fusion_variant.rb | 14 +- server/app/models/variants/gene_variant.rb | 9 + 16 files changed, 644 insertions(+), 37 deletions(-) create mode 100644 server/app/graphql/mutations/suggest_fusion_variant_revision.rb create mode 100644 server/app/graphql/types/revisions/fusion_variant_fields.rb create mode 100644 server/app/models/input_adaptors/fusion_variant_input_adaptor.rb diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql index dc2a7b427..526fe9179 100644 --- a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql @@ -37,9 +37,8 @@ fragment RevisableFusionVariantFields on FusionVariant { } } -#TODO - Make this for fusions server side -mutation SuggestFusionVariantRevision($input: SuggestFactorVariantRevisionInput!) { - suggestFactorVariantRevision(input: $input) { +mutation SuggestFusionVariantRevision($input: SuggestFusionVariantRevisionInput!) { + suggestFusionVariantRevision(input: $input) { clientMutationId variant { id diff --git a/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts b/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts index 72570902d..e8c885340 100644 --- a/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts +++ b/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts @@ -1,14 +1,22 @@ import { Maybe, RevisableFusionVariantFieldsFragment, - SuggestFactorVariantRevisionInput, + SuggestFusionVariantRevisionInput, } from '@app/generated/civic.apollo' import { FusionVariantReviseModel } from '../models/fusion-variant-revise.model' import { FusionVariantFields } from '../models/fusion-variant-fields.model' +import * as fmt from '@app/forms/utilities/input-formatters' export function fusionVariantToModelFields( variant: RevisableFusionVariantFieldsFragment ): FusionVariantFields { + const refBuild = variant.fivePrimeEndExonCoordinates + ? variant.fivePrimeEndExonCoordinates.referenceBuild + : variant.threePrimeStartExonCoordinates?.referenceBuild + const ensemblVersion = variant.fivePrimeEndExonCoordinates + ? variant.fivePrimeEndExonCoordinates.ensemblVersion + : variant.threePrimeStartExonCoordinates?.ensemblVersion + return { aliases: variant.variantAliases, variantTypeIds: variant.variantTypes.map((vt) => vt.id), @@ -27,29 +35,41 @@ export function fusionVariantToModelFields( variant.threePrimeStartExonCoordinates?.exonOffset?.toString(), threePrimeOffsetDirection: variant.threePrimeStartExonCoordinates?.exonOffsetDirection, - referenceBuild: variant.fivePrimeEndExonCoordinates?.referenceBuild, - ensemblVersion: variant.fivePrimeEndExonCoordinates?.ensemblVersion, + referenceBuild: refBuild, + ensemblVersion: ensemblVersion, } } export function fusionVariantFormModelToReviseInput( vid: number, model: FusionVariantReviseModel -): Maybe { - return undefined - +): Maybe { const fields = model.fields if (!model.comment) { return undefined } - //return { - // id: vid, - // fields: { - // aliases: fields.aliases || [], - // variantTypeIds: fields.variantTypeIds || [], - // }, - // organizationId: model.organizationId, - // comment: model.comment!, - //} + return { + id: vid, + fields: { + aliases: fields.aliases || [], + variantTypeIds: fields.variantTypeIds || [], + coordinates: { + fivePrimeTranscript: model.fields.fivePrimeTranscript, + fivePrimeExonEnd: fmt.toNumOrUndefined(model.fields.fivePrimeExonEnd), + fivePrimeOffset: fmt.toNumOrUndefined(model.fields.fivePrimeOffset), + fivePrimeOffsetDirection: model.fields.fivePrimeOffsetDirection, + threePrimeTranscript: model.fields.threePrimeTranscript, + threePrimeExonStart: fmt.toNumOrUndefined( + model.fields.threePrimeExonStart + ), + threePrimeOffset: fmt.toNumOrUndefined(model.fields.threePrimeOffset), + threePrimeOffsetDirection: model.fields.threePrimeOffsetDirection, + referenceBuild: model.fields.referenceBuild, + ensemblVersion: +model.fields.ensemblVersion!, + }, + }, + organizationId: model.organizationId, + comment: model.comment!, + } } diff --git a/client/src/app/forms/utilities/input-formatters/shared.ts b/client/src/app/forms/utilities/input-formatters/shared.ts index 47dc5f655..71e8e470a 100644 --- a/client/src/app/forms/utilities/input-formatters/shared.ts +++ b/client/src/app/forms/utilities/input-formatters/shared.ts @@ -25,3 +25,7 @@ export function toNullableInput(x: Maybe): { } return nullable } + +export function toNumOrUndefined(x: string | undefined): number | undefined { + return x ? +x : undefined +} diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 13941839a..353fbbe15 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -1373,7 +1373,7 @@ export type MolecularProfileTextSegmentKeySpecifier = ('text' | MolecularProfile export type MolecularProfileTextSegmentFieldPolicy = { text?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createFusionFeature' | 'createFusionVariant' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestFusionRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; +export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createFusionFeature' | 'createFusionVariant' | 'createMolecularProfile' | 'createVariant' | 'deprecateComplexMolecularProfile' | 'deprecateFeature' | 'deprecateVariant' | 'editUser' | 'flagEntity' | 'moderateAssertion' | 'moderateEvidenceItem' | 'rejectRevisions' | 'resolveFlag' | 'submitAssertion' | 'submitEvidence' | 'submitVariantGroup' | 'subscribe' | 'suggestAssertionRevision' | 'suggestEvidenceItemRevision' | 'suggestFactorRevision' | 'suggestFactorVariantRevision' | 'suggestFusionRevision' | 'suggestFusionVariantRevision' | 'suggestGeneRevision' | 'suggestGeneVariantRevision' | 'suggestMolecularProfileRevision' | 'suggestSource' | 'suggestVariantGroupRevision' | 'unsubscribe' | 'updateCoi' | 'updateNotificationStatus' | 'updateSourceSuggestionStatus' | MutationKeySpecifier)[]; export type MutationFieldPolicy = { acceptRevisions?: FieldPolicy | FieldReadFunction, addComment?: FieldPolicy | FieldReadFunction, @@ -1403,6 +1403,7 @@ export type MutationFieldPolicy = { suggestFactorRevision?: FieldPolicy | FieldReadFunction, suggestFactorVariantRevision?: FieldPolicy | FieldReadFunction, suggestFusionRevision?: FieldPolicy | FieldReadFunction, + suggestFusionVariantRevision?: FieldPolicy | FieldReadFunction, suggestGeneRevision?: FieldPolicy | FieldReadFunction, suggestGeneVariantRevision?: FieldPolicy | FieldReadFunction, suggestMolecularProfileRevision?: FieldPolicy | FieldReadFunction, @@ -2032,6 +2033,12 @@ export type SuggestFusionRevisionPayloadFieldPolicy = { fusion?: FieldPolicy | FieldReadFunction, results?: FieldPolicy | FieldReadFunction }; +export type SuggestFusionVariantRevisionPayloadKeySpecifier = ('clientMutationId' | 'results' | 'variant' | SuggestFusionVariantRevisionPayloadKeySpecifier)[]; +export type SuggestFusionVariantRevisionPayloadFieldPolicy = { + clientMutationId?: FieldPolicy | FieldReadFunction, + results?: FieldPolicy | FieldReadFunction, + variant?: FieldPolicy | FieldReadFunction +}; export type SuggestGeneRevisionPayloadKeySpecifier = ('clientMutationId' | 'gene' | 'results' | SuggestGeneRevisionPayloadKeySpecifier)[]; export type SuggestGeneRevisionPayloadFieldPolicy = { clientMutationId?: FieldPolicy | FieldReadFunction, @@ -3111,6 +3118,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | SuggestFusionRevisionPayloadKeySpecifier | (() => undefined | SuggestFusionRevisionPayloadKeySpecifier), fields?: SuggestFusionRevisionPayloadFieldPolicy, }, + SuggestFusionVariantRevisionPayload?: Omit & { + keyFields?: false | SuggestFusionVariantRevisionPayloadKeySpecifier | (() => undefined | SuggestFusionVariantRevisionPayloadKeySpecifier), + fields?: SuggestFusionVariantRevisionPayloadFieldPolicy, + }, SuggestGeneRevisionPayload?: Omit & { keyFields?: false | SuggestGeneRevisionPayloadKeySpecifier | (() => undefined | SuggestGeneRevisionPayloadKeySpecifier), fields?: SuggestGeneRevisionPayloadFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index d0ff60493..9e06c15af 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2767,6 +2767,16 @@ export type FusionVariantRevisionsArgs = { status?: InputMaybe; }; +/** Fields on a FusionVariant that curators may propose revisions to. */ +export type FusionVariantFields = { + /** List of aliases or alternate names for the Variant. */ + aliases: Array; + /** The exon coordinates for this Variant. */ + coordinates: FusionVariantInput; + /** List of IDs for the variant types for this Variant */ + variantTypeIds: Array; +}; + /** The fields required to create a fusion variant */ export type FusionVariantInput = { ensemblVersion: Scalars['Int']; @@ -3682,6 +3692,8 @@ export type Mutation = { suggestFactorVariantRevision?: Maybe; /** Suggest a Revision to a Feature entity of instance type "Fusion". */ suggestFusionRevision?: Maybe; + /** Suggest a Revision to a Fusion entity. */ + suggestFusionVariantRevision?: Maybe; /** Suggest a Revision to a Feature entity of instance type "Gene". */ suggestGeneRevision?: Maybe; /** Suggest a Revision to a Variant entity. */ @@ -3843,6 +3855,11 @@ export type MutationSuggestFusionRevisionArgs = { }; +export type MutationSuggestFusionVariantRevisionArgs = { + input: SuggestFusionVariantRevisionInput; +}; + + export type MutationSuggestGeneRevisionArgs = { input: SuggestGeneRevisionInput; }; @@ -6027,6 +6044,45 @@ export type SuggestFusionRevisionPayload = { results: Array; }; +/** Autogenerated input type of SuggestFusionVariantRevision */ +export type SuggestFusionVariantRevisionInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ + comment?: InputMaybe; + /** + * The desired state of the Variant's editable fields if the change were applied. + * If no change is desired for a particular field, pass in the current value of that field. + */ + fields: FusionVariantFields; + /** The ID of the Variant to suggest a Revision to. */ + id: Scalars['Int']; + /** + * The ID of the organization to credit the user's contributions to. + * If the user belongs to a single organization or no organizations, this field is not required. + * This field is required if the user belongs to more than one organization. + * The user must belong to the organization provided. + */ + organizationId?: InputMaybe; +}; + +/** Autogenerated return type of SuggestFusionVariantRevision. */ +export type SuggestFusionVariantRevisionPayload = { + __typename: 'SuggestFusionVariantRevisionPayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** + * A list of Revisions generated as a result of this suggestion. + * If an existing Revision exactly matches the proposed one, it will be returned instead. + * This is indicated via the 'newlyCreated' Boolean. + * Revisions are stored on a per-field basis. + * The changesetId can be used to group Revisions proposed at the same time. + */ + results: Array; + /** The Variant the user has proposed a Revision to. */ + variant: FusionVariant; +}; + /** Autogenerated input type of SuggestGeneRevision */ export type SuggestGeneRevisionInput = { /** A unique identifier for the client performing the mutation. */ @@ -8270,11 +8326,11 @@ export type FusionVariantRevisableFieldsQuery = { __typename: 'Query', variant?: export type RevisableFusionVariantFieldsFragment = { __typename: 'FusionVariant', name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; export type SuggestFusionVariantRevisionMutationVariables = Exact<{ - input: SuggestFactorVariantRevisionInput; + input: SuggestFusionVariantRevisionInput; }>; -export type SuggestFusionVariantRevisionMutation = { __typename: 'Mutation', suggestFactorVariantRevision?: { __typename: 'SuggestFactorVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'FactorVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; +export type SuggestFusionVariantRevisionMutation = { __typename: 'Mutation', suggestFusionVariantRevision?: { __typename: 'SuggestFusionVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'FusionVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; export type GeneRevisableFieldsQueryVariables = Exact<{ featureId: Scalars['Int']; @@ -14957,8 +15013,8 @@ export const FusionVariantRevisableFieldsDocument = gql` } } export const SuggestFusionVariantRevisionDocument = gql` - mutation SuggestFusionVariantRevision($input: SuggestFactorVariantRevisionInput!) { - suggestFactorVariantRevision(input: $input) { + mutation SuggestFusionVariantRevision($input: SuggestFusionVariantRevisionInput!) { + suggestFusionVariantRevision(input: $input) { clientMutationId variant { id diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 5addeb0f1..090a587c1 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4759,6 +4759,26 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F viccCompliantName: String! } +""" +Fields on a FusionVariant that curators may propose revisions to. +""" +input FusionVariantFields { + """ + List of aliases or alternate names for the Variant. + """ + aliases: [String!]! + + """ + The exon coordinates for this Variant. + """ + coordinates: FusionVariantInput! + + """ + List of IDs for the variant types for this Variant + """ + variantTypeIds: [Int!]! +} + """ The fields required to create a fusion variant """ @@ -6580,6 +6600,16 @@ type Mutation { input: SuggestFusionRevisionInput! ): SuggestFusionRevisionPayload + """ + Suggest a Revision to a Fusion entity. + """ + suggestFusionVariantRevision( + """ + Parameters for SuggestFusionVariantRevision + """ + input: SuggestFusionVariantRevisionInput! + ): SuggestFusionVariantRevisionPayload + """ Suggest a Revision to a Feature entity of instance type "Gene". """ @@ -10147,6 +10177,64 @@ type SuggestFusionRevisionPayload { results: [RevisionResult!]! } +""" +Autogenerated input type of SuggestFusionVariantRevision +""" +input SuggestFusionVariantRevisionInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + Text describing the reason for the change. Will be attached to the Revision as a comment. + """ + comment: String + + """ + The desired state of the Variant's editable fields if the change were applied. + If no change is desired for a particular field, pass in the current value of that field. + """ + fields: FusionVariantFields! + + """ + The ID of the Variant to suggest a Revision to. + """ + id: Int! + + """ + The ID of the organization to credit the user's contributions to. + If the user belongs to a single organization or no organizations, this field is not required. + This field is required if the user belongs to more than one organization. + The user must belong to the organization provided. + """ + organizationId: Int +} + +""" +Autogenerated return type of SuggestFusionVariantRevision. +""" +type SuggestFusionVariantRevisionPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + A list of Revisions generated as a result of this suggestion. + If an existing Revision exactly matches the proposed one, it will be returned instead. + This is indicated via the 'newlyCreated' Boolean. + Revisions are stored on a per-field basis. + The changesetId can be used to group Revisions proposed at the same time. + """ + results: [RevisionResult!]! + + """ + The Variant the user has proposed a Revision to. + """ + variant: FusionVariant! +} + """ Autogenerated input type of SuggestGeneRevision """ diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index b54a8ccca..92e1b0b36 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -22209,6 +22209,81 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "FusionVariantFields", + "description": "Fields on a FusionVariant that curators may propose revisions to.", + "fields": null, + "inputFields": [ + { + "name": "aliases", + "description": "List of aliases or alternate names for the Variant.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantTypeIds", + "description": "List of IDs for the variant types for this Variant", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "coordinates", + "description": "The exon coordinates for this Variant.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "FusionVariantInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "FusionVariantInput", @@ -29935,6 +30010,35 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "suggestFusionVariantRevision", + "description": "Suggest a Revision to a Fusion entity.", + "args": [ + { + "name": "input", + "description": "Parameters for SuggestFusionVariantRevision", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "SuggestFusionVariantRevisionInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "OBJECT", + "name": "SuggestFusionVariantRevisionPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "suggestGeneRevision", "description": "Suggest a Revision to a Feature entity of instance type \"Gene\".", @@ -45949,6 +46053,148 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "SuggestFusionVariantRevisionInput", + "description": "Autogenerated input type of SuggestFusionVariantRevision", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": "The ID of the organization to credit the user's contributions to.\nIf the user belongs to a single organization or no organizations, this field is not required.\nThis field is required if the user belongs to more than one organization.\nThe user must belong to the organization provided.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The ID of the Variant to suggest a Revision to.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fields", + "description": "The desired state of the Variant's editable fields if the change were applied.\nIf no change is desired for a particular field, pass in the current value of that field.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "FusionVariantFields", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "comment", + "description": "Text describing the reason for the change. Will be attached to the Revision as a comment.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "SuggestFusionVariantRevisionPayload", + "description": "Autogenerated return type of SuggestFusionVariantRevision.", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "results", + "description": "A list of Revisions generated as a result of this suggestion.\nIf an existing Revision exactly matches the proposed one, it will be returned instead.\nThis is indicated via the 'newlyCreated' Boolean.\nRevisions are stored on a per-field basis.\nThe changesetId can be used to group Revisions proposed at the same time.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RevisionResult", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variant", + "description": "The Variant the user has proposed a Revision to.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "SuggestGeneRevisionInput", diff --git a/server/app/graphql/mutations/suggest_fusion_variant_revision.rb b/server/app/graphql/mutations/suggest_fusion_variant_revision.rb new file mode 100644 index 000000000..a6c159d43 --- /dev/null +++ b/server/app/graphql/mutations/suggest_fusion_variant_revision.rb @@ -0,0 +1,119 @@ +class Mutations::SuggestFusionVariantRevision < Mutations::MutationWithOrg + description 'Suggest a Revision to a Fusion entity.' + argument :id, Int, required: true, + description: 'The ID of the Variant to suggest a Revision to.' + + argument :fields, Types::Revisions::FusionVariantFields, required: true, + description: <<~DOC.strip + The desired state of the Variant's editable fields if the change were applied. + If no change is desired for a particular field, pass in the current value of that field. + DOC + + argument :comment, String, required: false, + validates: { length: { minimum: 10 } }, + description: 'Text describing the reason for the change. Will be attached to the Revision as a comment.' + + field :variant, Types::Variants::FusionVariantType, null: false, + description: 'The Variant the user has proposed a Revision to.' + + field :results, [Types::Revisions::RevisionResult], null: false, + description: <<~DOC.strip + A list of Revisions generated as a result of this suggestion. + If an existing Revision exactly matches the proposed one, it will be returned instead. + This is indicated via the 'newlyCreated' Boolean. + Revisions are stored on a per-field basis. + The changesetId can be used to group Revisions proposed at the same time. + DOC + + attr_reader :variant + + def ready?(organization_id: nil, id:, fields:, **kwargs) + validate_user_logged_in + validate_user_org(organization_id) + + variant = Variant.find_by(id: id) + if variant.nil? + raise GraphQL::ExecutionError, "Variant with id #{id} doesn't exist." + end + + if !variant.is_a?(Variants::FusionVariant) + raise GraphQL::ExecutionError, "Variant with id #{id} is a #{variant.type} and you called the FusionVariant mutation." + end + + @variant = variant + + existing_variant_type_ids = VariantType.where(id: fields.variant_type_ids).pluck(:id) + if existing_variant_type_ids.size != fields.variant_type_ids.size + raise GraphQL::ExecutionError, "Provided variant type ids: #{fields.variant_type_ids.join(', ')} but only #{existing_variant_type_ids.join(', ')} exist." + end + + return true + end + + def authorized?(organization_id: nil, **kwargs) + validate_user_acting_as_org(user: context[:current_user], organization_id: organization_id) + return true + end + + def resolve(fields:, id:, organization_id: nil, comment: nil) + revision_objs = [] + + updated_variant = InputAdaptors::FusionVariantInputAdaptor.new(variant_input_object: fields).perform + + updated_coordinates = fields.coordinates + + if updated_coordinates[:five_prime_coords] + updated_variant.five_prime_end_exon_coordinates = updated_coordinates[:five_prime_coords] + revision_objs << Activities::RevisedObjectPair.new( + existing_obj: variant.five_prime_end_exon_coordinates, + updated_obj: updated_coordinates[:five_prime_coords] + ) + end + + if updated_coordinates[:three_prime_coords] + updated_variant.three_prime_start_exon_coordinates = updated_coordinates[:three_prime_coords] + revision_objs << Activities::RevisedObjectPair.new( + existing_obj: variant.three_prime_start_exon_coordinates, + updated_obj: updated_coordinates[:three_prime_coords] + ) + end + + updated_coordinates.each do |_, coords| + next unless coords + coords.variant_id = variant.id + end + + updated_variant.single_variant_molecular_profile_id = variant.single_variant_molecular_profile_id + updated_variant.feature = variant.feature + updated_variant.fusion = variant.feature.feature_instance + updated_variant.name = updated_variant.generate_name + updated_variant.vicc_compliant_name = updated_variant.generate_vicc_name + + variant_revisions_obj = Activities::RevisedObjectPair.new(existing_obj: variant, updated_obj: updated_variant) + revision_objs << variant_revisions_obj + + #set variant id? + cmd = Activities::SuggestRevisionSet.new( + revised_objects: revision_objs, + subject: variant, + originating_user: context[:current_user], + organization_id: organization_id, + note: comment + ) + res = cmd.perform + + if res.succeeded? + { + variant: variant, + results: res.revision_results + } + else + raise GraphQL::ExecutionError, res.errors.join(', ') + end + end +end + + + + + diff --git a/server/app/graphql/types/mutation_type.rb b/server/app/graphql/types/mutation_type.rb index 855b612e5..fa25a5beb 100644 --- a/server/app/graphql/types/mutation_type.rb +++ b/server/app/graphql/types/mutation_type.rb @@ -9,6 +9,7 @@ class MutationType < Types::BaseObject field :suggest_fusion_revision, mutation: Mutations::SuggestFusionRevision field :suggest_gene_variant_revision, mutation: Mutations::SuggestGeneVariantRevision field :suggest_factor_variant_revision, mutation: Mutations::SuggestFactorVariantRevision + field :suggest_fusion_variant_revision, mutation: Mutations::SuggestFusionVariantRevision field :suggest_molecular_profile_revision, mutation: Mutations::SuggestMolecularProfileRevision field :suggest_evidence_item_revision, mutation: Mutations::SuggestEvidenceItemRevision field :suggest_assertion_revision, mutation: Mutations::SuggestAssertionRevision diff --git a/server/app/graphql/types/revisions/fusion_variant_fields.rb b/server/app/graphql/types/revisions/fusion_variant_fields.rb new file mode 100644 index 000000000..7cbfd1ea9 --- /dev/null +++ b/server/app/graphql/types/revisions/fusion_variant_fields.rb @@ -0,0 +1,12 @@ +module Types::Revisions + class FusionVariantFields < Types::BaseInputObject + description 'Fields on a FusionVariant that curators may propose revisions to.' + argument :aliases, [String], required: true, + description: 'List of aliases or alternate names for the Variant.' + argument :variant_type_ids, [Int], required: true, + description: 'List of IDs for the variant types for this Variant' + argument :coordinates, Types::Fusion::FusionVariantInputType, required: true, + description: "The exon coordinates for this Variant." + end +end + diff --git a/server/app/models/exon_coordinate.rb b/server/app/models/exon_coordinate.rb index 09dfce76a..0f045fd2d 100644 --- a/server/app/models/exon_coordinate.rb +++ b/server/app/models/exon_coordinate.rb @@ -1,4 +1,6 @@ class ExonCoordinate < ApplicationRecord + include Moderated + belongs_to :variant, touch: true validates :coordinate_type, presence: true @@ -59,4 +61,15 @@ def formatted_strand '-1' end end + + def editable_fields + [ + :reference_build, + :ensembl_version, + :representative_transcript, + :exon, + :exon_offset, + :exon_offset_direction, + ] + end end diff --git a/server/app/models/input_adaptors/fusion_variant_input_adaptor.rb b/server/app/models/input_adaptors/fusion_variant_input_adaptor.rb new file mode 100644 index 000000000..f29fee1c8 --- /dev/null +++ b/server/app/models/input_adaptors/fusion_variant_input_adaptor.rb @@ -0,0 +1,22 @@ +#Conversion from a GraphQL VariantFields input object to Variant model type +class InputAdaptors::FusionVariantInputAdaptor + attr_reader :input + + def initialize(variant_input_object: ) + @input = variant_input_object + end + + def perform + Variants::FusionVariant.new( + variant_type_ids: input.variant_type_ids, + variant_alias_ids: get_alias_ids(), + ) + end + + private + def get_alias_ids + input.aliases.map do |a| + VariantAlias.get_or_create_by_name(a).id + end + end +end diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index dffc0cd0a..8d8d86a2f 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -160,8 +160,6 @@ def editable_fields def shared_editable_fields [ - :feature_id, - :name, :variant_type_ids, :variant_alias_ids, ] @@ -172,14 +170,7 @@ def unique_editable_fields end def forbidden_fields - #Grab the editable fields from each variant subclass, except the current one - #Combine their editable fields into a list, and remove the editable fields of the current type - #This produces a list of fields that should not be populated on this variant type - other_editable_fields = Variant.known_subclasses - .reject { |c| self.is_a?(c) } - .flat_map { |c| c.new.editable_fields } - - other_editable_fields - self.editable_fields + [] end def required_fields diff --git a/server/app/models/variants/factor_variant.rb b/server/app/models/variants/factor_variant.rb index 2f3f942a7..a864cdf28 100644 --- a/server/app/models/variants/factor_variant.rb +++ b/server/app/models/variants/factor_variant.rb @@ -2,6 +2,8 @@ module Variants class FactorVariant < Variant def unique_editable_fields [ + :feature_id, + :name, :ncit_id, ] end @@ -10,6 +12,14 @@ def required_fields [] end + def forbidden_fields + [ + :vicc_compliant_name, + :hgvs_description_ids, + :clinvar_entry_ids, + ] + end + def correct_coordinate_type if variant_coordinates.size > 0 errors.add(:variant_coordinates, "Factor Variants may not have coordinates") diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 70b8527b0..1bc185e29 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -60,10 +60,7 @@ def self.valid_exon_coordinate_types enum reference_build: [:GRCh38, :GRCh37, :NCBI36] def unique_editable_fields - [ - :hgvs_description_ids, - :clinvar_entry_ids, - ] + [] end def required_fields @@ -105,6 +102,15 @@ def generate_name end end + def forbidden_fields + [ + :ncit_id, + :hgvs_description_ids, + :clinvar_entry_ids, + :allele_registry_id, + ] + end + private def construct_five_prime_name(name_type:) construct_partner_name( diff --git a/server/app/models/variants/gene_variant.rb b/server/app/models/variants/gene_variant.rb index a3cfe398f..e0a9a756b 100644 --- a/server/app/models/variants/gene_variant.rb +++ b/server/app/models/variants/gene_variant.rb @@ -22,6 +22,8 @@ def self.valid_variant_coordinate_types def unique_editable_fields [ + :feature_id, + :name, :hgvs_description_ids, :clinvar_entry_ids, ] @@ -31,6 +33,13 @@ def required_fields [] end + def forbidden_fields + [ + :ncit_id, + :vicc_compliant_name, + ] + end + def correct_coordinate_type if variant_coordinates.size > 1 errors.add(:variant_coordinates, "Gene Variants can only have one coordinate object specified") From 4a3b42e240210a6214e4c9bd5ead824551a76f30 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 12 Aug 2024 14:31:44 -0500 Subject: [PATCH 40/56] remove hgvs and clinvar ids from fusion variant type --- .../fusion-variant-summary.page.html | 27 ----------- client/src/app/generated/civic.apollo.ts | 14 +++--- client/src/app/generated/server.model.graphql | 3 -- client/src/app/generated/server.schema.json | 48 ------------------- .../variants-summary.query.gql | 2 - .../types/variants/fusion_variant_type.rb | 2 - 6 files changed, 6 insertions(+), 90 deletions(-) diff --git a/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html index 1180f3f1f..c89f7df84 100644 --- a/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html +++ b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html @@ -56,33 +56,6 @@ > - - - - - - {{ - desc - }} - - - - None specified - - diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 9e06c15af..8e02c6eda 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -8922,9 +8922,9 @@ export type MolecularProfileSummaryQueryVariables = Exact<{ }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceType: SourceSource }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }>, complexMolecularProfileCreationActivity?: { __typename: 'CreateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, variantDeprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; type MolecularProfileParsedName_Feature_Fragment = { __typename: 'Feature', id: number, name: string, link: string }; @@ -8936,7 +8936,7 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; +type VariantMolecularProfileCardFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; type VariantMolecularProfileCardFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; @@ -9146,11 +9146,11 @@ export type VariantSummaryQueryVariables = Exact<{ }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined } | { __typename: 'Variant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; type VariantSummaryFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined }; -type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; +type VariantSummaryFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; type VariantSummaryFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, lastSubmittedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, lastAcceptedRevisionEvent?: { __typename: 'Event', originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, creationActivity?: { __typename: 'CreateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateVariantActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; @@ -9162,7 +9162,7 @@ export type FactorVariantSummaryFieldsFragment = { __typename: 'FactorVariant', export type GeneVariantSummaryFieldsFragment = { __typename: 'GeneVariant', alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, coordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, myVariantInfo?: { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined }; -export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, hgvsDescriptions: Array, clinvarIds: Array, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; +export type FusionVariantSummaryFieldsFragment = { __typename: 'FusionVariant', viccCompliantName: string, fusion: { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, fivePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined }, fivePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, threePrimeCoordinates?: { __typename: 'VariantCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, coordinateType: VariantCoordinateType } | undefined, fivePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; export type MyVariantInfoFieldsFragment = { __typename: 'MyVariantInfo', myVariantInfoId: string, caddConsequence: Array, caddDetail: Array, caddScore?: number | undefined, caddPhred?: number | undefined, clinvarClinicalSignificance: Array, clinvarHgvsCoding: Array, clinvarHgvsGenomic: Array, clinvarHgvsNonCoding: Array, clinvarHgvsProtein: Array, clinvarId?: number | undefined, clinvarOmim?: string | undefined, cosmicId?: string | undefined, dbnsfpInterproDomain: Array, dbsnpRsid?: string | undefined, eglClass?: string | undefined, eglHgvs: Array, eglProtein?: string | undefined, eglTranscript?: string | undefined, exacAlleleCount?: number | undefined, exacAlleleFrequency?: number | undefined, exacAlleleNumber?: number | undefined, fathmmMklPrediction?: string | undefined, fathmmMklScore?: number | undefined, fathmmPrediction: Array, fathmmScore: Array, fitconsScore?: number | undefined, gerp?: number | undefined, gnomadExomeAlleleCount?: number | undefined, gnomadExomeAlleleFrequency?: number | undefined, gnomadExomeAlleleNumber?: number | undefined, gnomadExomeFilter?: string | undefined, gnomadGenomeAlleleCount?: number | undefined, gnomadGenomeAlleleFrequency?: number | undefined, gnomadGenomeAlleleNumber?: number | undefined, gnomadGenomeFilter?: string | undefined, lrtPrediction?: string | undefined, lrtScore?: number | undefined, metalrPrediction?: string | undefined, metalrScore?: number | undefined, metasvmPrediction?: string | undefined, metasvmScore?: number | undefined, mutationassessorPrediction: Array, mutationassessorScore: Array, mutationtasterPrediction: Array, mutationtasterScore: Array, phastcons100way?: number | undefined, phastcons30way?: number | undefined, phyloP100way?: number | undefined, phyloP30way?: number | undefined, polyphen2HdivPrediction: Array, polyphen2HdivScore: Array, polyphen2HvarPrediction: Array, polyphen2HvarScore: Array, proveanPrediction: Array, proveanScore: Array, revelScore?: Array | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; @@ -11623,8 +11623,6 @@ export const FactorVariantSummaryFieldsFragmentDoc = gql` export const FusionVariantSummaryFieldsFragmentDoc = gql` fragment FusionVariantSummaryFields on FusionVariant { viccCompliantName - hgvsDescriptions - clinvarIds fusion { fivePrimePartnerStatus fivePrimeGene { diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 090a587c1..8a18ea145 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -4532,8 +4532,6 @@ enum FusionPartnerStatus { } type FusionVariant implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions { - clinvarIds: [String!]! - """ List and filter comments. """ @@ -4671,7 +4669,6 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F state: FlagState ): FlagConnection! fusion: Fusion! - hgvsDescriptions: [String!]! id: Int! lastAcceptedRevisionEvent: Event lastCommentEvent: Event diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 92e1b0b36..f7f3c83f4 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -21226,30 +21226,6 @@ "name": "FusionVariant", "description": null, "fields": [ - { - "name": "clinvarIds", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "comments", "description": "List and filter comments.", @@ -21737,30 +21713,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "hgvsDescriptions", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "id", "description": null, diff --git a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql index eb1461f5b..bb0f91b23 100644 --- a/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql +++ b/client/src/app/views/variants/variants-detail/variants-summary/variants-summary.query.gql @@ -98,8 +98,6 @@ fragment GeneVariantSummaryFields on GeneVariant { fragment FusionVariantSummaryFields on FusionVariant { viccCompliantName - hgvsDescriptions - clinvarIds fusion { fivePrimePartnerStatus fivePrimeGene { diff --git a/server/app/graphql/types/variants/fusion_variant_type.rb b/server/app/graphql/types/variants/fusion_variant_type.rb index a65b18b76..fff96f46b 100644 --- a/server/app/graphql/types/variants/fusion_variant_type.rb +++ b/server/app/graphql/types/variants/fusion_variant_type.rb @@ -7,8 +7,6 @@ class FusionVariantType < Types::Entities::VariantType field :five_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: true field :three_prime_start_exon_coordinates, Types::Entities::ExonCoordinateType, null: true field :three_prime_end_exon_coordinates, Types::Entities::ExonCoordinateType, null: true - field :clinvar_ids, [String], null: false - field :hgvs_descriptions, [String], null: false field :vicc_compliant_name, String, null: false field :fusion, "Types::Entities::FusionType", null: false From 78f6ef8d61714c54cd43c975fd0e8d76b3d6d799 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 12 Aug 2024 14:34:58 -0500 Subject: [PATCH 41/56] remove clinvar ids from fusions on mp card --- ...profile-fusion-variant-card.component.html | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html index 7053be791..7fe977bb3 100644 --- a/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html +++ b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html @@ -74,48 +74,6 @@
- - - - - - - {{ id }} - - - - - - - N/A - - - - None provided - - - Date: Tue, 13 Aug 2024 11:24:20 -0500 Subject: [PATCH 42/56] accepting fusion coordinate revisions is working --- .../event-timeline-item.component.html | 8 +- .../fusion-variant-revise.query.gql | 1 - .../src/app/generated/civic.apollo-helpers.ts | 54 +- client/src/app/generated/civic.apollo.ts | 142 +++-- .../src/app/generated/civic.possible-types.ts | 2 + client/src/app/generated/server.model.graphql | 89 ++- client/src/app/generated/server.schema.json | 546 +++++++++++++++++- .../variants-detail/variants-detail.query.gql | 4 +- .../variants-detail/variants-detail.view.ts | 54 +- .../coordinate-ids-for-variant.gql | 8 + .../variants-revisions.page.ts | 23 + .../types/entities/exon_coordinate_type.rb | 2 + .../types/entities/variant_coordinate_type.rb | 2 + .../graphql/types/interfaces/event_subject.rb | 4 +- .../types/interfaces/with_revisions.rb | 5 + .../revisions/moderated_entities_type.rb | 1 + .../types/variants/fusion_variant_type.rb | 19 +- .../types/variants/gene_variant_type.rb | 10 + server/app/models/activity.rb | 2 +- server/app/models/exon_coordinate.rb | 13 + server/app/models/revision.rb | 6 +- server/app/models/variant.rb | 1 + server/app/models/variant_coordinate.rb | 9 + server/app/models/variants/fusion_variant.rb | 2 - 24 files changed, 892 insertions(+), 115 deletions(-) diff --git a/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html b/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html index 61e1280fb..486f4151a 100644 --- a/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html +++ b/client/src/app/components/events/event-timeline-item/event-timeline-item.component.html @@ -97,7 +97,13 @@ - {{ subject.name }} + + + + {{ subject.name }} + + + diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql index 526fe9179..5146fed14 100644 --- a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql @@ -22,7 +22,6 @@ fragment RevisableFusionVariantFields on FusionVariant { } } } - hgvsDescriptions variantAliases variantTypes { id diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 353fbbe15..46bf1b099 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -85,7 +85,7 @@ export type AdvancedSearchResultFieldPolicy = { resultIds?: FieldPolicy | FieldReadFunction, searchEndpoint?: FieldPolicy | FieldReadFunction }; -export type AssertionKeySpecifier = ('acceptanceEvent' | 'acmgCodes' | 'ampLevel' | 'assertionDirection' | 'assertionType' | 'clingenCodes' | 'comments' | 'description' | 'disease' | 'events' | 'evidenceItems' | 'evidenceItemsCount' | 'fdaCompanionTest' | 'fdaCompanionTestLastUpdated' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfile' | 'name' | 'nccnGuideline' | 'nccnGuidelineVersion' | 'phenotypes' | 'regulatoryApproval' | 'regulatoryApprovalLastUpdated' | 'rejectionEvent' | 'revisions' | 'significance' | 'status' | 'submissionActivity' | 'submissionEvent' | 'summary' | 'therapies' | 'therapyInteractionType' | 'variantOrigin' | AssertionKeySpecifier)[]; +export type AssertionKeySpecifier = ('acceptanceEvent' | 'acmgCodes' | 'ampLevel' | 'assertionDirection' | 'assertionType' | 'clingenCodes' | 'comments' | 'description' | 'disease' | 'events' | 'evidenceItems' | 'evidenceItemsCount' | 'fdaCompanionTest' | 'fdaCompanionTestLastUpdated' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfile' | 'name' | 'nccnGuideline' | 'nccnGuidelineVersion' | 'openRevisionCount' | 'phenotypes' | 'regulatoryApproval' | 'regulatoryApprovalLastUpdated' | 'rejectionEvent' | 'revisions' | 'significance' | 'status' | 'submissionActivity' | 'submissionEvent' | 'summary' | 'therapies' | 'therapyInteractionType' | 'variantOrigin' | AssertionKeySpecifier)[]; export type AssertionFieldPolicy = { acceptanceEvent?: FieldPolicy | FieldReadFunction, acmgCodes?: FieldPolicy | FieldReadFunction, @@ -112,6 +112,7 @@ export type AssertionFieldPolicy = { name?: FieldPolicy | FieldReadFunction, nccnGuideline?: FieldPolicy | FieldReadFunction, nccnGuidelineVersion?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, phenotypes?: FieldPolicy | FieldReadFunction, regulatoryApproval?: FieldPolicy | FieldReadFunction, regulatoryApprovalLastUpdated?: FieldPolicy | FieldReadFunction, @@ -764,7 +765,7 @@ export type EventSubjectWithCountFieldPolicy = { occuranceCount?: FieldPolicy | FieldReadFunction, subject?: FieldPolicy | FieldReadFunction }; -export type EvidenceItemKeySpecifier = ('acceptanceEvent' | 'assertions' | 'comments' | 'description' | 'disease' | 'events' | 'evidenceDirection' | 'evidenceLevel' | 'evidenceRating' | 'evidenceType' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfile' | 'name' | 'phenotypes' | 'rejectionEvent' | 'revisions' | 'significance' | 'source' | 'status' | 'submissionActivity' | 'submissionEvent' | 'therapies' | 'therapyInteractionType' | 'variantHgvs' | 'variantOrigin' | EvidenceItemKeySpecifier)[]; +export type EvidenceItemKeySpecifier = ('acceptanceEvent' | 'assertions' | 'comments' | 'description' | 'disease' | 'events' | 'evidenceDirection' | 'evidenceLevel' | 'evidenceRating' | 'evidenceType' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfile' | 'name' | 'openRevisionCount' | 'phenotypes' | 'rejectionEvent' | 'revisions' | 'significance' | 'source' | 'status' | 'submissionActivity' | 'submissionEvent' | 'therapies' | 'therapyInteractionType' | 'variantHgvs' | 'variantOrigin' | EvidenceItemKeySpecifier)[]; export type EvidenceItemFieldPolicy = { acceptanceEvent?: FieldPolicy | FieldReadFunction, assertions?: FieldPolicy | FieldReadFunction, @@ -785,6 +786,7 @@ export type EvidenceItemFieldPolicy = { link?: FieldPolicy | FieldReadFunction, molecularProfile?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, phenotypes?: FieldPolicy | FieldReadFunction, rejectionEvent?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, @@ -828,23 +830,26 @@ export type EvidenceItemsByTypeFieldPolicy = { predisposingCount?: FieldPolicy | FieldReadFunction, prognosticCount?: FieldPolicy | FieldReadFunction }; -export type ExonCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblId' | 'ensemblVersion' | 'exon' | 'exonOffset' | 'exonOffsetDirection' | 'id' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'strand' | ExonCoordinateKeySpecifier)[]; +export type ExonCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblId' | 'ensemblVersion' | 'events' | 'exon' | 'exonOffset' | 'exonOffsetDirection' | 'id' | 'link' | 'name' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'strand' | ExonCoordinateKeySpecifier)[]; export type ExonCoordinateFieldPolicy = { chromosome?: FieldPolicy | FieldReadFunction, coordinateType?: FieldPolicy | FieldReadFunction, ensemblId?: FieldPolicy | FieldReadFunction, ensemblVersion?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, exon?: FieldPolicy | FieldReadFunction, exonOffset?: FieldPolicy | FieldReadFunction, exonOffsetDirection?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, + link?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, referenceBuild?: FieldPolicy | FieldReadFunction, representativeTranscript?: FieldPolicy | FieldReadFunction, start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction, strand?: FieldPolicy | FieldReadFunction }; -export type FactorKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'ncitDetails' | 'ncitId' | 'revisions' | 'sources' | 'variants' | FactorKeySpecifier)[]; +export type FactorKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'ncitDetails' | 'ncitId' | 'openRevisionCount' | 'revisions' | 'sources' | 'variants' | FactorKeySpecifier)[]; export type FactorFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -867,11 +872,12 @@ export type FactorFieldPolicy = { name?: FieldPolicy | FieldReadFunction, ncitDetails?: FieldPolicy | FieldReadFunction, ncitId?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, sources?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction }; -export type FactorVariantKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'ncitDetails' | 'ncitId' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | FactorVariantKeySpecifier)[]; +export type FactorVariantKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'ncitDetails' | 'ncitId' | 'openRevisionCount' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | FactorVariantKeySpecifier)[]; export type FactorVariantFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -891,6 +897,7 @@ export type FactorVariantFieldPolicy = { name?: FieldPolicy | FieldReadFunction, ncitDetails?: FieldPolicy | FieldReadFunction, ncitId?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, @@ -902,7 +909,7 @@ export type FdaCodeFieldPolicy = { code?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction }; -export type FeatureKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'variants' | FeatureKeySpecifier)[]; +export type FeatureKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'openRevisionCount' | 'revisions' | 'sources' | 'variants' | FeatureKeySpecifier)[]; export type FeatureFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -923,6 +930,7 @@ export type FeatureFieldPolicy = { lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, sources?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction @@ -995,7 +1003,7 @@ export type FlaggableFieldPolicy = { link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type FusionKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'fivePrimeGene' | 'fivePrimePartnerStatus' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'threePrimeGene' | 'threePrimePartnerStatus' | 'variants' | FusionKeySpecifier)[]; +export type FusionKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'fivePrimeGene' | 'fivePrimePartnerStatus' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'openRevisionCount' | 'revisions' | 'sources' | 'threePrimeGene' | 'threePrimePartnerStatus' | 'variants' | FusionKeySpecifier)[]; export type FusionFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -1018,6 +1026,7 @@ export type FusionFieldPolicy = { lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, sources?: FieldPolicy | FieldReadFunction, threePrimeGene?: FieldPolicy | FieldReadFunction, @@ -1037,9 +1046,8 @@ export type FusionEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type FusionVariantKeySpecifier = ('clinvarIds' | 'comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'fivePrimeEndExonCoordinates' | 'fivePrimeStartExonCoordinates' | 'flagged' | 'flags' | 'fusion' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'threePrimeEndExonCoordinates' | 'threePrimeStartExonCoordinates' | 'variantAliases' | 'variantTypes' | 'viccCompliantName' | FusionVariantKeySpecifier)[]; +export type FusionVariantKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'fivePrimeCoordinates' | 'fivePrimeEndExonCoordinates' | 'fivePrimeStartExonCoordinates' | 'flagged' | 'flags' | 'fusion' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'openRevisionCount' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'threePrimeCoordinates' | 'threePrimeEndExonCoordinates' | 'threePrimeStartExonCoordinates' | 'variantAliases' | 'variantTypes' | 'viccCompliantName' | FusionVariantKeySpecifier)[]; export type FusionVariantFieldPolicy = { - clinvarIds?: FieldPolicy | FieldReadFunction, comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, deprecated?: FieldPolicy | FieldReadFunction, @@ -1053,7 +1061,6 @@ export type FusionVariantFieldPolicy = { flagged?: FieldPolicy | FieldReadFunction, flags?: FieldPolicy | FieldReadFunction, fusion?: FieldPolicy | FieldReadFunction, - hgvsDescriptions?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, lastCommentEvent?: FieldPolicy | FieldReadFunction, @@ -1061,6 +1068,7 @@ export type FusionVariantFieldPolicy = { link?: FieldPolicy | FieldReadFunction, molecularProfiles?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, @@ -1071,7 +1079,7 @@ export type FusionVariantFieldPolicy = { variantTypes?: FieldPolicy | FieldReadFunction, viccCompliantName?: FieldPolicy | FieldReadFunction }; -export type GeneKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'entrezId' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'myGeneInfoDetails' | 'name' | 'revisions' | 'sources' | 'variants' | GeneKeySpecifier)[]; +export type GeneKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'description' | 'entrezId' | 'events' | 'featureAliases' | 'featureInstance' | 'featureType' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'myGeneInfoDetails' | 'name' | 'openRevisionCount' | 'revisions' | 'sources' | 'variants' | GeneKeySpecifier)[]; export type GeneFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -1094,6 +1102,7 @@ export type GeneFieldPolicy = { link?: FieldPolicy | FieldReadFunction, myGeneInfoDetails?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, sources?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction @@ -1111,7 +1120,7 @@ export type GeneEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'coordinates' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | GeneVariantKeySpecifier)[]; +export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'coordinates' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'openRevisionCount' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | GeneVariantKeySpecifier)[]; export type GeneVariantFieldPolicy = { alleleRegistryId?: FieldPolicy | FieldReadFunction, clinvarIds?: FieldPolicy | FieldReadFunction, @@ -1136,6 +1145,7 @@ export type GeneVariantFieldPolicy = { myVariantInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, openCravatUrl?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, @@ -1306,7 +1316,7 @@ export type ModeratedObjectFieldFieldPolicy = { id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction }; -export type MolecularProfileKeySpecifier = ('assertions' | 'comments' | 'complexMolecularProfileCreationActivity' | 'complexMolecularProfileDeprecationActivity' | 'deprecated' | 'deprecatedVariants' | 'deprecationReason' | 'description' | 'events' | 'evidenceCountsByStatus' | 'evidenceCountsByType' | 'evidenceItems' | 'flagged' | 'flags' | 'id' | 'isComplex' | 'isMultiVariant' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfileAliases' | 'molecularProfileScore' | 'name' | 'parsedName' | 'rawName' | 'revisions' | 'sources' | 'variantCreationActivity' | 'variantDeprecationActivity' | 'variants' | MolecularProfileKeySpecifier)[]; +export type MolecularProfileKeySpecifier = ('assertions' | 'comments' | 'complexMolecularProfileCreationActivity' | 'complexMolecularProfileDeprecationActivity' | 'deprecated' | 'deprecatedVariants' | 'deprecationReason' | 'description' | 'events' | 'evidenceCountsByStatus' | 'evidenceCountsByType' | 'evidenceItems' | 'flagged' | 'flags' | 'id' | 'isComplex' | 'isMultiVariant' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfileAliases' | 'molecularProfileScore' | 'name' | 'openRevisionCount' | 'parsedName' | 'rawName' | 'revisions' | 'sources' | 'variantCreationActivity' | 'variantDeprecationActivity' | 'variants' | MolecularProfileKeySpecifier)[]; export type MolecularProfileFieldPolicy = { assertions?: FieldPolicy | FieldReadFunction, comments?: FieldPolicy | FieldReadFunction, @@ -1332,6 +1342,7 @@ export type MolecularProfileFieldPolicy = { molecularProfileAliases?: FieldPolicy | FieldReadFunction, molecularProfileScore?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, parsedName?: FieldPolicy | FieldReadFunction, rawName?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, @@ -2211,7 +2222,7 @@ export type ValidationErrorsFieldPolicy = { genericErrors?: FieldPolicy | FieldReadFunction, validationErrors?: FieldPolicy | FieldReadFunction }; -export type VariantKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | VariantKeySpecifier)[]; +export type VariantKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'openRevisionCount' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | VariantKeySpecifier)[]; export type VariantFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -2229,6 +2240,7 @@ export type VariantFieldPolicy = { link?: FieldPolicy | FieldReadFunction, molecularProfiles?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, @@ -2247,12 +2259,15 @@ export type VariantConnectionFieldPolicy = { pageInfo?: FieldPolicy | FieldReadFunction, totalCount?: FieldPolicy | FieldReadFunction }; -export type VariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'id' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | VariantCoordinateKeySpecifier)[]; +export type VariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'events' | 'id' | 'link' | 'name' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | VariantCoordinateKeySpecifier)[]; export type VariantCoordinateFieldPolicy = { chromosome?: FieldPolicy | FieldReadFunction, coordinateType?: FieldPolicy | FieldReadFunction, ensemblVersion?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, + link?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, referenceBases?: FieldPolicy | FieldReadFunction, referenceBuild?: FieldPolicy | FieldReadFunction, representativeTranscript?: FieldPolicy | FieldReadFunction, @@ -2265,7 +2280,7 @@ export type VariantEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type VariantGroupKeySpecifier = ('comments' | 'description' | 'events' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'variants' | VariantGroupKeySpecifier)[]; +export type VariantGroupKeySpecifier = ('comments' | 'description' | 'events' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'openRevisionCount' | 'revisions' | 'sources' | 'variants' | VariantGroupKeySpecifier)[]; export type VariantGroupFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, @@ -2278,6 +2293,7 @@ export type VariantGroupFieldPolicy = { lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, sources?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction @@ -2295,7 +2311,7 @@ export type VariantGroupEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type VariantInterfaceKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | VariantInterfaceKeySpecifier)[]; +export type VariantInterfaceKeySpecifier = ('comments' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'name' | 'openRevisionCount' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | VariantInterfaceKeySpecifier)[]; export type VariantInterfaceFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -2313,6 +2329,7 @@ export type VariantInterfaceFieldPolicy = { link?: FieldPolicy | FieldReadFunction, molecularProfiles?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, @@ -2351,10 +2368,11 @@ export type VariantTypePopoverFieldPolicy = { url?: FieldPolicy | FieldReadFunction, variantCount?: FieldPolicy | FieldReadFunction }; -export type WithRevisionsKeySpecifier = ('lastAcceptedRevisionEvent' | 'lastSubmittedRevisionEvent' | 'revisions' | WithRevisionsKeySpecifier)[]; +export type WithRevisionsKeySpecifier = ('lastAcceptedRevisionEvent' | 'lastSubmittedRevisionEvent' | 'openRevisionCount' | 'revisions' | WithRevisionsKeySpecifier)[]; export type WithRevisionsFieldPolicy = { lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction }; export type StrictTypedTypePolicies = { diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 8e02c6eda..b588c210a 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -300,6 +300,7 @@ export type Assertion = Commentable & EventOriginObject & EventSubject & Flaggab name: Scalars['String']; nccnGuideline?: Maybe; nccnGuidelineVersion?: Maybe; + openRevisionCount: Scalars['Int']; phenotypes: Array; regulatoryApproval?: Maybe; regulatoryApprovalLastUpdated?: Maybe; @@ -1754,6 +1755,7 @@ export type EvidenceItem = Commentable & EventOriginObject & EventSubject & Flag link: Scalars['String']; molecularProfile: MolecularProfile; name: Scalars['String']; + openRevisionCount: Scalars['Int']; phenotypes: Array; rejectionEvent?: Maybe; /** List and filter revisions. */ @@ -1969,16 +1971,20 @@ export enum EvidenceType { Prognostic = 'PROGNOSTIC' } -export type ExonCoordinate = { +export type ExonCoordinate = EventSubject & { __typename: 'ExonCoordinate'; chromosome?: Maybe; coordinateType: ExonCoordinateType; ensemblId?: Maybe; ensemblVersion?: Maybe; + /** List and filter events for an object */ + events: EventConnection; exon?: Maybe; exonOffset?: Maybe; exonOffsetDirection?: Maybe; id: Scalars['Int']; + link: Scalars['String']; + name: Scalars['String']; referenceBuild?: Maybe; representativeTranscript?: Maybe; start?: Maybe; @@ -1986,6 +1992,18 @@ export type ExonCoordinate = { strand?: Maybe; }; + +export type ExonCoordinateEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + export enum ExonCoordinateType { FivePrimeEndExonCoordinate = 'FIVE_PRIME_END_EXON_COORDINATE', FivePrimeStartExonCoordinate = 'FIVE_PRIME_START_EXON_COORDINATE', @@ -2020,6 +2038,7 @@ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable name: Scalars['String']; ncitDetails?: Maybe; ncitId?: Maybe; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2130,6 +2149,7 @@ export type FactorVariant = Commentable & EventOriginObject & EventSubject & Fla name: Scalars['String']; ncitDetails?: Maybe; ncitId?: Maybe; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -2241,6 +2261,7 @@ export type Feature = Commentable & EventOriginObject & EventSubject & Flaggable lastSubmittedRevisionEvent?: Maybe; link: Scalars['String']; name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2549,6 +2570,7 @@ export type Fusion = Commentable & EventOriginObject & EventSubject & Flaggable lastSubmittedRevisionEvent?: Maybe; link: Scalars['String']; name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2672,7 +2694,6 @@ export enum FusionPartnerStatus { export type FusionVariant = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions & { __typename: 'FusionVariant'; - clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; @@ -2689,7 +2710,6 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla /** List and filter flags. */ flags: FlagConnection; fusion: Fusion; - hgvsDescriptions: Array; id: Scalars['Int']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; @@ -2697,6 +2717,7 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla link: Scalars['String']; molecularProfiles: MolecularProfileConnection; name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -2819,6 +2840,7 @@ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & link: Scalars['String']; myGeneInfoDetails?: Maybe; name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2962,6 +2984,7 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg myVariantInfo?: Maybe; name: Scalars['String']; openCravatUrl?: Maybe; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -3355,6 +3378,7 @@ export type ModerateEvidenceItemPayload = { export enum ModeratedEntities { Assertion = 'ASSERTION', EvidenceItem = 'EVIDENCE_ITEM', + ExonCoordinates = 'EXON_COORDINATES', Feature = 'FEATURE', MolecularProfile = 'MOLECULAR_PROFILE', Variant = 'VARIANT', @@ -3420,6 +3444,7 @@ export type MolecularProfile = Commentable & EventOriginObject & EventSubject & molecularProfileScore: Scalars['Float']; /** The human readable name of this profile, including gene and variant names. */ name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** The profile name with its constituent parts as objects, suitable for building tags. */ parsedName: Array; /** The profile name as stored, with ids rather than names. */ @@ -6656,6 +6681,7 @@ export type Variant = Commentable & EventOriginObject & EventSubject & Flaggable link: Scalars['String']; molecularProfiles: MolecularProfileConnection; name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -6756,12 +6782,16 @@ export type VariantConnection = { totalCount: Scalars['Int']; }; -export type VariantCoordinate = { +export type VariantCoordinate = EventSubject & { __typename: 'VariantCoordinate'; chromosome?: Maybe; coordinateType: VariantCoordinateType; ensemblVersion?: Maybe; + /** List and filter events for an object */ + events: EventConnection; id: Scalars['Int']; + link: Scalars['String']; + name: Scalars['String']; referenceBases?: Maybe; referenceBuild?: Maybe; representativeTranscript?: Maybe; @@ -6770,6 +6800,18 @@ export type VariantCoordinate = { variantBases?: Maybe; }; + +export type VariantCoordinateEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + export enum VariantCoordinateType { FivePrimeFusionCoordinate = 'FIVE_PRIME_FUSION_COORDINATE', GeneVariantCoordinate = 'GENE_VARIANT_COORDINATE', @@ -6808,6 +6850,7 @@ export type VariantGroup = Commentable & EventSubject & Flaggable & WithRevision lastSubmittedRevisionEvent?: Maybe; link: Scalars['String']; name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -6946,6 +6989,7 @@ export type VariantInterface = { link: Scalars['String']; molecularProfiles: MolecularProfileConnection; name: Scalars['String']; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -7115,6 +7159,7 @@ export enum VariantsSortColumns { export type WithRevisions = { lastAcceptedRevisionEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; + openRevisionCount: Scalars['Int']; /** List and filter revisions. */ revisions: RevisionConnection; }; @@ -7187,45 +7232,45 @@ export type ActivityFeedQueryVariables = Exact<{ }>; -export type ActivityFeedQuery = { __typename: 'Query', activities: { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> } }; +export type ActivityFeedQuery = { __typename: 'Query', activities: { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> } }; -export type ActivityFeedFragment = { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> }; +export type ActivityFeedFragment = { __typename: 'ActivityInterfaceConnection', pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, edges: Array<{ __typename: 'ActivityInterfaceEdge', cursor: string, node?: { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } } | undefined }> }; -type ActivityFeedNode_AcceptRevisionsActivity_Fragment = { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_AcceptRevisionsActivity_Fragment = { __typename: 'AcceptRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CommentActivity_Fragment = { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CommentActivity_Fragment = { __typename: 'CommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment = { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment = { __typename: 'CreateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateFeatureActivity_Fragment = { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateFeatureActivity_Fragment = { __typename: 'CreateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_CreateVariantActivity_Fragment = { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_CreateVariantActivity_Fragment = { __typename: 'CreateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment = { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment = { __typename: 'DeprecateComplexMolecularProfileActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateFeatureActivity_Fragment = { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateFeatureActivity_Fragment = { __typename: 'DeprecateFeatureActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_DeprecateVariantActivity_Fragment = { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_DeprecateVariantActivity_Fragment = { __typename: 'DeprecateVariantActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_FlagEntityActivity_Fragment = { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_FlagEntityActivity_Fragment = { __typename: 'FlagEntityActivity', id: number, verbiage: string, createdAt: any, flag: { __typename: 'Flag', id: number, name: string, link: string }, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ModerateAssertionActivity_Fragment = { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ModerateAssertionActivity_Fragment = { __typename: 'ModerateAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ModerateEvidenceItemActivity_Fragment = { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ModerateEvidenceItemActivity_Fragment = { __typename: 'ModerateEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_RejectRevisionsActivity_Fragment = { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_RejectRevisionsActivity_Fragment = { __typename: 'RejectRevisionsActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_ResolveFlagActivity_Fragment = { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_ResolveFlagActivity_Fragment = { __typename: 'ResolveFlagActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SubmitAssertionActivity_Fragment = { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SubmitAssertionActivity_Fragment = { __typename: 'SubmitAssertionActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SubmitEvidenceItemActivity_Fragment = { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SubmitEvidenceItemActivity_Fragment = { __typename: 'SubmitEvidenceItemActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SuggestRevisionSetActivity_Fragment = { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SuggestRevisionSetActivity_Fragment = { __typename: 'SuggestRevisionSetActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_SuggestSourceActivity_Fragment = { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_SuggestSourceActivity_Fragment = { __typename: 'SuggestSourceActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; -type ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment = { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; +type ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment = { __typename: 'UpdateSourceSuggestionStatusActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', name: string, id: number, link: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } }; export type ActivityFeedNodeFragment = ActivityFeedNode_AcceptRevisionsActivity_Fragment | ActivityFeedNode_CommentActivity_Fragment | ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_CreateFeatureActivity_Fragment | ActivityFeedNode_CreateVariantActivity_Fragment | ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_DeprecateFeatureActivity_Fragment | ActivityFeedNode_DeprecateVariantActivity_Fragment | ActivityFeedNode_FlagEntityActivity_Fragment | ActivityFeedNode_ModerateAssertionActivity_Fragment | ActivityFeedNode_ModerateEvidenceItemActivity_Fragment | ActivityFeedNode_RejectRevisionsActivity_Fragment | ActivityFeedNode_ResolveFlagActivity_Fragment | ActivityFeedNode_SubmitAssertionActivity_Fragment | ActivityFeedNode_SubmitEvidenceItemActivity_Fragment | ActivityFeedNode_SuggestRevisionSetActivity_Fragment | ActivityFeedNode_SuggestSourceActivity_Fragment | ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment; @@ -7382,11 +7427,11 @@ export type EventFeedQueryVariables = Exact<{ }>; -export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; +export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; -export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; +export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; -export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; +export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; export type EvidencePopoverQueryVariables = Exact<{ evidenceId: Scalars['Int']; @@ -7676,9 +7721,9 @@ export type RevisionPopoverQueryVariables = Exact<{ }>; -export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } } | undefined }; +export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'ExonCoordinate', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', id: number, link: string, name: string } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } } | undefined }; -export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; +export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, creationActivity?: { __typename: 'SuggestRevisionSetActivity', user: { __typename: 'User', id: number, displayName: string, role: UserRole }, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'ExonCoordinate', id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Feature', id: number, link: string, name: string } | { __typename: 'Flag', id: number, link: string, name: string } | { __typename: 'Fusion', id: number, link: string, name: string } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', id: number, link: string, name: string } | { __typename: 'RevisionSet', id: number, link: string, name: string } | { __typename: 'Source', id: number, link: string, name: string } | { __typename: 'SourcePopover', id: number, link: string, name: string } | { __typename: 'SourceSuggestion', id: number, link: string, name: string } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'VariantCoordinate', id: number, link: string, name: string } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; export type RevisionsQueryVariables = Exact<{ subject?: InputMaybe; @@ -8321,9 +8366,9 @@ export type FusionVariantRevisableFieldsQueryVariables = Exact<{ }>; -export type FusionVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number, name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number } | undefined }; +export type FusionVariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number } | undefined }; -export type RevisableFusionVariantFieldsFragment = { __typename: 'FusionVariant', name: string, hgvsDescriptions: Array, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; +export type RevisableFusionVariantFieldsFragment = { __typename: 'FusionVariant', name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene' } }, variantTypes: Array<{ __typename: 'VariantType', id: number, name: string, soid: string }>, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType } | undefined }; export type SuggestFusionVariantRevisionMutationVariables = Exact<{ input: SuggestFusionVariantRevisionInput; @@ -9049,22 +9094,22 @@ export type UserNotificationsQueryVariables = Exact<{ }>; -export type UserNotificationsQuery = { __typename: 'Query', notifications: { __typename: 'NotificationConnection', eventTypes: Array, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, notificationSubjects: Array<{ __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined } | undefined }> } }; +export type UserNotificationsQuery = { __typename: 'Query', notifications: { __typename: 'NotificationConnection', eventTypes: Array, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, notificationSubjects: Array<{ __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'ExonCoordinate', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantCoordinate', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'ExonCoordinate', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantCoordinate', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined } | undefined }> } }; export type NotificationOrganizationFragment = { __typename: 'Organization', id: number, name: string }; export type NotificationOriginatingUsersFragment = { __typename: 'User', id: number, displayName: string }; -export type NotificationFeedSubjectsFragment = { __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }; +export type NotificationFeedSubjectsFragment = { __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'ExonCoordinate', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantCoordinate', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }; -export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; +export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'ExonCoordinate', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantCoordinate', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; export type UpdateNotificationStatusMutationVariables = Exact<{ input: UpdateNotificationStatusInput; }>; -export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; +export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }, subscription?: { __typename: 'Subscription', id: number, subscribable: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'ExonCoordinate', id: number, name: string } | { __typename: 'Factor', id: number, name: string } | { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'Feature', id: number, name: string } | { __typename: 'Flag', id: number, name: string } | { __typename: 'Fusion', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'RevisionSet', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantCoordinate', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; export type UnsubscribeMutationVariables = Exact<{ input: UnsubscribeInput; @@ -9112,15 +9157,15 @@ export type VariantDetailQueryVariables = Exact<{ }>; -export type VariantDetailQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'FusionVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'GeneVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; +export type VariantDetailQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'FusionVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'GeneVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; -type VariantDetailFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +type VariantDetailFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; -type VariantDetailFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +type VariantDetailFields_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; -type VariantDetailFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +type VariantDetailFields_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; -type VariantDetailFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +type VariantDetailFields_Variant_Fragment = { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: VariantDeprecationReason | undefined, variantAliases: Array, openRevisionCount: number, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type VariantDetailFieldsFragment = VariantDetailFields_FactorVariant_Fragment | VariantDetailFields_FusionVariant_Fragment | VariantDetailFields_GeneVariant_Fragment | VariantDetailFields_Variant_Fragment; @@ -9129,11 +9174,11 @@ export type CoordinateIdsForVariantQueryVariables = Exact<{ }>; -export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant' } | { __typename: 'GeneVariant', coordinates?: { __typename: 'VariantCoordinate', id: number } | undefined } | { __typename: 'Variant' } | undefined }; +export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant', fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined } | { __typename: 'GeneVariant', coordinates?: { __typename: 'VariantCoordinate', id: number } | undefined } | { __typename: 'Variant' } | undefined }; type VariantCoordinateIds_FactorVariant_Fragment = { __typename: 'FactorVariant' }; -type VariantCoordinateIds_FusionVariant_Fragment = { __typename: 'FusionVariant' }; +type VariantCoordinateIds_FusionVariant_Fragment = { __typename: 'FusionVariant', fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined }; type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates?: { __typename: 'VariantCoordinate', id: number } | undefined }; @@ -10688,7 +10733,6 @@ export const RevisableFusionVariantFieldsFragmentDoc = gql` } } } - hgvsDescriptions variantAliases variantTypes { id @@ -12125,9 +12169,7 @@ export const VariantDetailFieldsFragmentDoc = gql` flags(state: OPEN) { totalCount } - revisions(status: NEW) { - totalCount - } + openRevisionCount comments { totalCount } @@ -12141,6 +12183,14 @@ export const VariantCoordinateIdsFragmentDoc = gql` id } } + ... on FusionVariant { + fivePrimeEndExonCoordinates { + id + } + threePrimeStartExonCoordinates { + id + } + } } `; export const VariantSummaryFieldsFragmentDoc = gql` diff --git a/client/src/app/generated/civic.possible-types.ts b/client/src/app/generated/civic.possible-types.ts index a5c948551..a33d89c49 100644 --- a/client/src/app/generated/civic.possible-types.ts +++ b/client/src/app/generated/civic.possible-types.ts @@ -69,6 +69,7 @@ "EventSubject": [ "Assertion", "EvidenceItem", + "ExonCoordinate", "Factor", "FactorVariant", "Feature", @@ -84,6 +85,7 @@ "SourcePopover", "SourceSuggestion", "Variant", + "VariantCoordinate", "VariantGroup" ], "FeatureInstance": [ diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 8a18ea145..08b377a51 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -526,6 +526,7 @@ type Assertion implements Commentable & EventOriginObject & EventSubject & Flagg name: String! nccnGuideline: NccnGuideline nccnGuidelineVersion: String + openRevisionCount: Int! phenotypes: [Phenotype!]! regulatoryApproval: Boolean regulatoryApprovalLastUpdated: ISO8601DateTime @@ -2803,6 +2804,7 @@ type EvidenceItem implements Commentable & EventOriginObject & EventSubject & Fl link: String! molecularProfile: MolecularProfile! name: String! + openRevisionCount: Int! phenotypes: [Phenotype!]! rejectionEvent: Event @@ -3080,15 +3082,50 @@ enum EvidenceType { PROGNOSTIC } -type ExonCoordinate { +type ExonCoordinate implements EventSubject { chromosome: String coordinateType: ExonCoordinateType! ensemblId: String ensemblVersion: Int + + """ + List and filter events for an object + """ + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + eventType: EventAction + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + organizationId: Int + originatingUserId: Int + + """ + Sort order for the events. Defaults to most recent. + """ + sortBy: DateSort + ): EventConnection! exon: Int exonOffset: Int exonOffsetDirection: Direction id: Int! + link: String! + name: String! referenceBuild: ReferenceBuild representativeTranscript: String start: Int @@ -3252,6 +3289,7 @@ type Factor implements Commentable & EventOriginObject & EventSubject & Flaggabl name: String! ncitDetails: NcitDetails ncitId: String + openRevisionCount: Int! """ List and filter revisions. @@ -3533,6 +3571,7 @@ type FactorVariant implements Commentable & EventOriginObject & EventSubject & F name: String! ncitDetails: NcitDetails ncitId: String + openRevisionCount: Int! """ List and filter revisions. @@ -3771,6 +3810,7 @@ type Feature implements Commentable & EventOriginObject & EventSubject & Flaggab lastSubmittedRevisionEvent: Event link: String! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -4360,6 +4400,7 @@ type Fusion implements Commentable & EventOriginObject & EventSubject & Flaggabl lastSubmittedRevisionEvent: Event link: String! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -4696,6 +4737,7 @@ type FusionVariant implements Commentable & EventOriginObject & EventSubject & F last: Int ): MolecularProfileConnection! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -4945,6 +4987,7 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable link: String! myGeneInfoDetails: JSON name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -5269,6 +5312,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla myVariantInfo: MyVariantInfo name: String! openCravatUrl: String + openRevisionCount: Int! """ List and filter revisions. @@ -5822,6 +5866,7 @@ Enumeration of all moderated CIViC entities. enum ModeratedEntities { ASSERTION EVIDENCE_ITEM + EXON_COORDINATES FEATURE MOLECULAR_PROFILE VARIANT @@ -6066,6 +6111,7 @@ type MolecularProfile implements Commentable & EventOriginObject & EventSubject The human readable name of this profile, including gene and variant names. """ name: String! + openRevisionCount: Int! """ The profile name with its constituent parts as objects, suitable for building tags. @@ -11221,6 +11267,7 @@ type Variant implements Commentable & EventOriginObject & EventSubject & Flaggab last: Int ): MolecularProfileConnection! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -11332,11 +11379,46 @@ type VariantConnection { totalCount: Int! } -type VariantCoordinate { +type VariantCoordinate implements EventSubject { chromosome: String coordinateType: VariantCoordinateType! ensemblVersion: Int + + """ + List and filter events for an object + """ + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + eventType: EventAction + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + organizationId: Int + originatingUserId: Int + + """ + Sort order for the events. Defaults to most recent. + """ + sortBy: DateSort + ): EventConnection! id: Int! + link: String! + name: String! referenceBases: String referenceBuild: ReferenceBuild representativeTranscript: String @@ -11509,6 +11591,7 @@ type VariantGroup implements Commentable & EventSubject & Flaggable & WithRevisi lastSubmittedRevisionEvent: Event link: String! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -11846,6 +11929,7 @@ interface VariantInterface implements Commentable & EventOriginObject & EventSub last: Int ): MolecularProfileConnection! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -12036,6 +12120,7 @@ A CIViC entity that can have revisions proposed to it. interface WithRevisions { lastAcceptedRevisionEvent: Event lastSubmittedRevisionEvent: Event + openRevisionCount: Int! """ List and filter revisions. diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index f7f3c83f4..898eeb37c 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -2432,6 +2432,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "phenotypes", "description": null, @@ -13262,6 +13278,11 @@ "name": "EvidenceItem", "ofType": null }, + { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + }, { "kind": "OBJECT", "name": "Factor", @@ -13357,6 +13378,11 @@ "name": "Variant", "ofType": null }, + { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, { "kind": "OBJECT", "name": "VariantGroup", @@ -14028,6 +14054,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "phenotypes", "description": null, @@ -15426,6 +15468,119 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "events", + "description": "List and filter events for an object", + "args": [ + { + "name": "eventType", + "description": null, + "type": { + "kind": "ENUM", + "name": "EventAction", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "originatingUserId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the events. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "exon", "description": null, @@ -15478,6 +15633,38 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "link", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "referenceBuild", "description": null, @@ -15540,7 +15727,13 @@ } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "EventSubject", + "ofType": null + } + ], "enumValues": null, "possibleTypes": null }, @@ -16191,6 +16384,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -17190,6 +17399,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -18175,6 +18400,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -20641,6 +20882,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -21862,6 +22119,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -22987,6 +23260,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -24271,6 +24560,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -27158,6 +27463,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "EXON_COORDINATES", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -28144,6 +28455,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "parsedName", "description": "The profile name with its constituent parts as objects, suitable for building tags.", @@ -50279,6 +50606,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -50777,6 +51120,119 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "events", + "description": "List and filter events for an object", + "args": [ + { + "name": "eventType", + "description": null, + "type": { + "kind": "ENUM", + "name": "EventAction", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "originatingUserId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "organizationId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the events. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "EventConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "id", "description": null, @@ -50793,6 +51249,38 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "link", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "name", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "referenceBases", "description": null, @@ -50867,7 +51355,13 @@ } ], "inputFields": null, - "interfaces": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "EventSubject", + "ofType": null + } + ], "enumValues": null, "possibleTypes": null }, @@ -51446,6 +51940,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -52609,6 +53119,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", @@ -53538,6 +54064,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "revisions", "description": "List and filter revisions.", diff --git a/client/src/app/views/variants/variants-detail/variants-detail.query.gql b/client/src/app/views/variants/variants-detail/variants-detail.query.gql index 6ec96d317..33dbb7c14 100644 --- a/client/src/app/views/variants/variants-detail/variants-detail.query.gql +++ b/client/src/app/views/variants/variants-detail/variants-detail.query.gql @@ -23,9 +23,7 @@ fragment VariantDetailFields on VariantInterface { flags(state: OPEN) { totalCount } - revisions(status: NEW) { - totalCount - } + openRevisionCount comments { totalCount } diff --git a/client/src/app/views/variants/variants-detail/variants-detail.view.ts b/client/src/app/views/variants/variants-detail/variants-detail.view.ts index b9364c0b6..022efc378 100644 --- a/client/src/app/views/variants/variants-detail/variants-detail.view.ts +++ b/client/src/app/views/variants/variants-detail/variants-detail.view.ts @@ -81,35 +81,33 @@ export class VariantsDetailView implements OnDestroy { this.flagsTotal$ = this.variant$.pipe(pluck('flags', 'totalCount')) - this.variant$ - .pipe(takeUntil(this.destroy$)) - .subscribe({ - next: (variantResp) => { - this.tabs$.next( - this.defaultTabs.map((tab) => { - if (tab.tabLabel === 'Revisions') { - return { - badgeCount: variantResp?.revisions.totalCount, - ...tab, - } - } else if (tab.tabLabel === 'Flags') { - return { - badgeCount: variantResp?.flags.totalCount, - ...tab, - } - } else if (tab.tabLabel === 'Comments') { - return { - badgeCount: variantResp?.comments.totalCount, - badgeColor: '#cccccc', - ...tab, - } - } else { - return tab + this.variant$.pipe(takeUntil(this.destroy$)).subscribe({ + next: (variantResp) => { + this.tabs$.next( + this.defaultTabs.map((tab) => { + if (tab.tabLabel === 'Revisions') { + return { + badgeCount: variantResp?.openRevisionCount, + ...tab, } - }) - ) - }, - }) + } else if (tab.tabLabel === 'Flags') { + return { + badgeCount: variantResp?.flags.totalCount, + ...tab, + } + } else if (tab.tabLabel === 'Comments') { + return { + badgeCount: variantResp?.comments.totalCount, + badgeColor: '#cccccc', + ...tab, + } + } else { + return tab + } + }) + ) + }, + }) this.subscribable = { id: +params.variantId, diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql b/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql index e79a169a5..b011da3f8 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql +++ b/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql @@ -11,4 +11,12 @@ fragment VariantCoordinateIds on VariantInterface { id } } + ... on FusionVariant { + fivePrimeEndExonCoordinates { + id + } + threePrimeStartExonCoordinates { + id + } + } } diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts index d4633f916..726ebad61 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts @@ -82,6 +82,29 @@ export class VariantsRevisionsPage implements OnDestroy, OnInit { }, }, ]) + } else if (variant.__typename == 'FusionVariant') { + let currentTabs = this.tabs() + + if (variant.fivePrimeEndExonCoordinates) { + currentTabs.push({ + name: "5' Exon End Coordinates", + moderated: { + id: variant.fivePrimeEndExonCoordinates.id, + entityType: ModeratedEntities.ExonCoordinates, + }, + }) + } + if (variant.threePrimeStartExonCoordinates) { + currentTabs.push({ + name: "3' Exon Start Coordinates", + moderated: { + id: variant.threePrimeStartExonCoordinates.id, + entityType: ModeratedEntities.ExonCoordinates, + }, + }) + } + + this.tabs.set(currentTabs) } } diff --git a/server/app/graphql/types/entities/exon_coordinate_type.rb b/server/app/graphql/types/entities/exon_coordinate_type.rb index e18a42991..5109c231c 100644 --- a/server/app/graphql/types/entities/exon_coordinate_type.rb +++ b/server/app/graphql/types/entities/exon_coordinate_type.rb @@ -1,5 +1,7 @@ module Types::Entities class ExonCoordinateType < Types::BaseObject + implements Types::Interfaces::EventSubject + field :id, Int, null: false field :representative_transcript, String, null: true field :reference_build, Types::ReferenceBuildType, null: true diff --git a/server/app/graphql/types/entities/variant_coordinate_type.rb b/server/app/graphql/types/entities/variant_coordinate_type.rb index bc55a1353..60c0045a1 100644 --- a/server/app/graphql/types/entities/variant_coordinate_type.rb +++ b/server/app/graphql/types/entities/variant_coordinate_type.rb @@ -1,5 +1,7 @@ module Types::Entities class VariantCoordinateType < Types::BaseObject + implements Types::Interfaces::EventSubject + field :id, Int, null: false field :representative_transcript, String, null: true field :chromosome, String, null: true diff --git a/server/app/graphql/types/interfaces/event_subject.rb b/server/app/graphql/types/interfaces/event_subject.rb index 9e0e11406..ca4fa802e 100644 --- a/server/app/graphql/types/interfaces/event_subject.rb +++ b/server/app/graphql/types/interfaces/event_subject.rb @@ -22,7 +22,9 @@ def resolve_type(object, context) when Variants::FusionVariant Types::Variants::FusionVariantType when VariantCoordinate - Types::Entities::GeneVariantCoordinateType + Types::Entities::VariantCoordinateType + when ExonCoordinate + Types::Entities::ExonCoordinateType when EvidenceItem Types::Entities::EvidenceItemType when Assertion diff --git a/server/app/graphql/types/interfaces/with_revisions.rb b/server/app/graphql/types/interfaces/with_revisions.rb index deb76aae0..0816623c6 100644 --- a/server/app/graphql/types/interfaces/with_revisions.rb +++ b/server/app/graphql/types/interfaces/with_revisions.rb @@ -6,6 +6,7 @@ module WithRevisions field :revisions, resolver: Resolvers::Revisions field :last_submitted_revision_event, Types::Entities::EventType, null: true field :last_accepted_revision_event, Types::Entities::EventType, null: true + field :open_revision_count, Int, null: false def last_submitted_revision_event Loaders::AssociationLoader.for(object.class, :last_submitted_revision_event).load(object) @@ -14,5 +15,9 @@ def last_submitted_revision_event def last_accepted_revision_event Loaders::AssociationLoader.for(object.class, :last_accepted_revision_event).load(object) end + + def open_revision_count + Loaders::AssociationCountLoader.for(object.class, association: :open_revisions).load(object.id) + end end end diff --git a/server/app/graphql/types/revisions/moderated_entities_type.rb b/server/app/graphql/types/revisions/moderated_entities_type.rb index ce1324aec..1f1cb9006 100644 --- a/server/app/graphql/types/revisions/moderated_entities_type.rb +++ b/server/app/graphql/types/revisions/moderated_entities_type.rb @@ -8,5 +8,6 @@ class ModeratedEntitiesType < Types::BaseEnum value 'VARIANT_GROUP', value: 'VariantGroup' value 'MOLECULAR_PROFILE', value: 'MolecularProfile' value 'VARIANT_COORDINATES', value: 'VariantCoordinate' + value 'EXON_COORDINATES', value: 'ExonCoordinate' end end diff --git a/server/app/graphql/types/variants/fusion_variant_type.rb b/server/app/graphql/types/variants/fusion_variant_type.rb index fff96f46b..4540027e5 100644 --- a/server/app/graphql/types/variants/fusion_variant_type.rb +++ b/server/app/graphql/types/variants/fusion_variant_type.rb @@ -38,15 +38,16 @@ def fusion Loaders::AssociationLoader.for(Variants::FusionVariant, :fusion).load(object) end - def clinvar_ids - Loaders::AssociationLoader.for(Variant, :clinvar_entries).load(object).then do |clinvar_entries| - clinvar_entries.map(&:clinvar_id) - end - end - - def hgvs_descriptions - Loaders::AssociationLoader.for(Variant, :hgvs_descriptions).load(object).then do |hgvs| - hgvs.map(&:description) + def open_revision_count + Loaders::AssociationCountLoader.for(object.class, association: :open_revisions).load(object.id).then do |count| + Loaders::AssociationLoader.for(Variants::FusionVariant, :exon_coordinates).load(object).then do |exon_coordinates| + exon_counts = Promise.all( + exon_coordinates.map do |ec| + Loaders::AssociationCountLoader.for(ExonCoordinate, association: :open_revisions).load(ec.id) + end) + + exon_counts.then { |ec_counts| ec_counts.sum + count } + end end end end diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index b274d7b40..309469ae6 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -32,5 +32,15 @@ def my_variant_info def mane_select_transcript ManeSelectTranscript.new(object).mane_select_transcript end + + def open_revision_count + Loaders::AssociationCountLoader.for(object.class, association: :open_revisions).load(object.id).then do |count| + Loaders::AssociationLoader.for(Variants::GeneVariant, :coordinates).load(object).then do |coord| + Loaders::AssociationCountLoader.for(VariantCoordinate, association: :open_revisions).load(coord.id) do |coord_count| + count + coord_count + end + end + end + end end end diff --git a/server/app/models/activity.rb b/server/app/models/activity.rb index f5031cbcc..2bcb57bbc 100644 --- a/server/app/models/activity.rb +++ b/server/app/models/activity.rb @@ -17,7 +17,7 @@ def linked_entities end def link_entities!(entities) - Array(entities).each do |e| + Array(entities).flatten.each do |e| ActivityLinkedEntity.where(activity: self, entity: e).first_or_create! end end diff --git a/server/app/models/exon_coordinate.rb b/server/app/models/exon_coordinate.rb index 0f045fd2d..9a5ac7dcc 100644 --- a/server/app/models/exon_coordinate.rb +++ b/server/app/models/exon_coordinate.rb @@ -1,5 +1,6 @@ class ExonCoordinate < ApplicationRecord include Moderated + include Subscribable belongs_to :variant, touch: true @@ -42,6 +43,14 @@ def self.generate_stub(variant, coordinate_type) ) end + def name + "#{variant.name} Coordinates" + end + + def link + variant.link + end + def formatted_offset if exon_offset_direction.nil? '' @@ -72,4 +81,8 @@ def editable_fields :exon_offset_direction, ] end + + def on_revision_accepted + PopulateFusionCoordinates.perform_later(self.variant) + end end diff --git a/server/app/models/revision.rb b/server/app/models/revision.rb index 39f97ce1f..bd0fa5114 100644 --- a/server/app/models/revision.rb +++ b/server/app/models/revision.rb @@ -46,7 +46,11 @@ def name end def link - "/#{Constants::DB_TYPE_TO_PATH_SEGMENT[self.subject_type]}/#{self.subject_id}/revisions" + if self.subject_type == 'ExonCoordinate' || self.subject_type == 'VariantCoordinate' + "/variants/#{self.subject.variant.id}/revisions" + else + "/#{Constants::DB_TYPE_TO_PATH_SEGMENT[self.subject_type]}/#{self.subject_id}/revisions" + end end def self.timepoint_query diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index 8d8d86a2f..3e9a94fbc 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -7,6 +7,7 @@ class Variant < ApplicationRecord belongs_to :feature has_many :variant_coordinates, foreign_key: 'variant_id' + has_many :exon_coordinates, foreign_key: 'variant_id' has_and_belongs_to_many :molecular_profiles has_many :variant_group_variants diff --git a/server/app/models/variant_coordinate.rb b/server/app/models/variant_coordinate.rb index 2b46308c1..99f0d70c3 100644 --- a/server/app/models/variant_coordinate.rb +++ b/server/app/models/variant_coordinate.rb @@ -1,5 +1,6 @@ class VariantCoordinate < ApplicationRecord include Moderated + include Subscribable belongs_to :variant, touch: true @@ -41,6 +42,14 @@ def self.generate_stub(variant, coordinate_type) ) end + def name + "#{variant.name} Coordinates" + end + + def link + variant.link + end + def editable_fields [ :reference_build, diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 1bc185e29..2a16ed944 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -6,8 +6,6 @@ class FusionVariant < Variant #validates_with FusionVariantValidator #check feature partner status and corresponding stubbed coords - has_many :exon_coordinates, foreign_key: 'variant_id' - has_one :five_prime_coordinates, ->() { where(coordinate_type: 'Five Prime Fusion Coordinate') }, foreign_key: 'variant_id', From cb4c7b55c2331737f4fce9c8bf52b89158c0d24e Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Tue, 13 Aug 2024 14:17:59 -0500 Subject: [PATCH 43/56] add fusion filter to feature browse table --- .../features/features-table/features-table.component.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/app/components/features/features-table/features-table.component.html b/client/src/app/components/features/features-table/features-table.component.html index 6fd6fe6d1..8add75d0c 100644 --- a/client/src/app/components/features/features-table/features-table.component.html +++ b/client/src/app/components/features/features-table/features-table.component.html @@ -146,6 +146,10 @@ [nzValue]="featureTypes.Factor" nzLabel="Factor"> + + From 48266d21b007bd55522435388478e827cae345fa Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 14 Aug 2024 10:00:50 -0500 Subject: [PATCH 44/56] remove rearrangement fusion naming logic --- server/app/models/actions/create_fusion_feature.rb | 7 +------ server/app/models/constants.rb | 2 ++ server/app/models/variants/fusion_variant.rb | 12 +++++------- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index afae55200..77eb88bc1 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -34,14 +34,9 @@ def construct_fusion_partner_name(gene_id, partner_status) end def create_representative_variant - variant_name = if five_prime_partner_status == 'unknown' || three_prime_partner_status == 'unknown' - 'Rearrangement' - else - 'Fusion' - end stubbed_variant = Variants::FusionVariant.new( feature: feature, - name: variant_name + name: Constants::REPRESENTATIVE_FUSION_VARIANT_NAME ) vicc_compliant_name = stubbed_variant.generate_vicc_name diff --git a/server/app/models/constants.rb b/server/app/models/constants.rb index 627130329..b6356713c 100644 --- a/server/app/models/constants.rb +++ b/server/app/models/constants.rb @@ -135,4 +135,6 @@ module Constants # http://useast.ensembl.org/info/genome/stable_ids/index.html ENSEMBL_TRANSCRIPT_ID_FORMAT = /\AENST\d{11}\.\d{1,2}\z/ + + REPRESENTATIVE_FUSION_VARIANT_NAME = 'Fusion' end diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 2a16ed944..8a7ce2637 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -68,10 +68,8 @@ def required_fields end def mp_name - if name == 'Fusion' - "#{feature.name} Fusion" - elsif name == 'Rearrangement' - "#{feature.name} Rearrangement" + if name == Constants::REPRESENTATIVE_FUSION_VARIANT_NAME + "#{feature.name} #{Constants::REPRESENTATIVE_FUSION_VARIANT_NAME}" else [ construct_five_prime_name(name_type: :molecular_profile), @@ -82,7 +80,7 @@ def mp_name end def generate_vicc_name - if name == 'Fusion' || name == 'Rearrangement' + if name == Constants::REPRESENTATIVE_FUSION_VARIANT_NAME "#{construct_five_prime_name(name_type: :representative)}::#{construct_three_prime_name(name_type: :representative)}" else "#{construct_five_prime_name(name_type: :vicc)}::#{construct_three_prime_name(name_type: :vicc)}" @@ -90,7 +88,7 @@ def generate_vicc_name end def generate_name - if name == 'Fusion' || name == 'Rearrangement' + if name == Constants::REPRESENTATIVE_FUSION_VARIANT_NAME name else [ @@ -173,7 +171,7 @@ def correct_coordinate_type end def populate_coordinates - unless self.name == 'Fusion' + unless self.name == Constants::REPRESENTATIVE_FUSION_VARIANT_NAME PopulateFusionCoordinates.perform_later(self) end end From 76abf45ccc5aad15534b3ad3d1fd2e713ef86dbf Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Wed, 14 Aug 2024 11:11:22 -0500 Subject: [PATCH 45/56] fix failing test case --- .../src/app/generated/civic.apollo-helpers.ts | 24 +-- client/src/app/generated/civic.apollo.ts | 56 ++---- client/src/app/generated/server.model.graphql | 56 +----- client/src/app/generated/server.schema.json | 168 ++---------------- server/app/graphql/resolvers/variants.rb | 2 +- .../types/variants/gene_variant_type.rb | 6 + .../query_examples/evidence_for_variant.yml | 14 +- 7 files changed, 57 insertions(+), 269 deletions(-) diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 46bf1b099..d8c3eb99e 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -1120,7 +1120,7 @@ export type GeneEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'coordinates' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'openRevisionCount' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | GeneVariantKeySpecifier)[]; +export type GeneVariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'coordinates' | 'creationActivity' | 'deprecated' | 'deprecationActivity' | 'deprecationReason' | 'events' | 'feature' | 'flagged' | 'flags' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'openRevisionCount' | 'primaryCoordinates' | 'revisions' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantTypes' | GeneVariantKeySpecifier)[]; export type GeneVariantFieldPolicy = { alleleRegistryId?: FieldPolicy | FieldReadFunction, clinvarIds?: FieldPolicy | FieldReadFunction, @@ -1146,6 +1146,7 @@ export type GeneVariantFieldPolicy = { name?: FieldPolicy | FieldReadFunction, openCravatUrl?: FieldPolicy | FieldReadFunction, openRevisionCount?: FieldPolicy | FieldReadFunction, + primaryCoordinates?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfile?: FieldPolicy | FieldReadFunction, singleVariantMolecularProfileId?: FieldPolicy | FieldReadFunction, @@ -2251,14 +2252,6 @@ export type VariantAliasKeySpecifier = ('name' | VariantAliasKeySpecifier)[]; export type VariantAliasFieldPolicy = { name?: FieldPolicy | FieldReadFunction }; -export type VariantConnectionKeySpecifier = ('edges' | 'nodes' | 'pageCount' | 'pageInfo' | 'totalCount' | VariantConnectionKeySpecifier)[]; -export type VariantConnectionFieldPolicy = { - edges?: FieldPolicy | FieldReadFunction, - nodes?: FieldPolicy | FieldReadFunction, - pageCount?: FieldPolicy | FieldReadFunction, - pageInfo?: FieldPolicy | FieldReadFunction, - totalCount?: FieldPolicy | FieldReadFunction -}; export type VariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'events' | 'id' | 'link' | 'name' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | VariantCoordinateKeySpecifier)[]; export type VariantCoordinateFieldPolicy = { chromosome?: FieldPolicy | FieldReadFunction, @@ -2275,11 +2268,6 @@ export type VariantCoordinateFieldPolicy = { stop?: FieldPolicy | FieldReadFunction, variantBases?: FieldPolicy | FieldReadFunction }; -export type VariantEdgeKeySpecifier = ('cursor' | 'node' | VariantEdgeKeySpecifier)[]; -export type VariantEdgeFieldPolicy = { - cursor?: FieldPolicy | FieldReadFunction, - node?: FieldPolicy | FieldReadFunction -}; export type VariantGroupKeySpecifier = ('comments' | 'description' | 'events' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'openRevisionCount' | 'revisions' | 'sources' | 'variants' | VariantGroupKeySpecifier)[]; export type VariantGroupFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, @@ -3228,18 +3216,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | VariantAliasKeySpecifier | (() => undefined | VariantAliasKeySpecifier), fields?: VariantAliasFieldPolicy, }, - VariantConnection?: Omit & { - keyFields?: false | VariantConnectionKeySpecifier | (() => undefined | VariantConnectionKeySpecifier), - fields?: VariantConnectionFieldPolicy, - }, VariantCoordinate?: Omit & { keyFields?: false | VariantCoordinateKeySpecifier | (() => undefined | VariantCoordinateKeySpecifier), fields?: VariantCoordinateFieldPolicy, }, - VariantEdge?: Omit & { - keyFields?: false | VariantEdgeKeySpecifier | (() => undefined | VariantEdgeKeySpecifier), - fields?: VariantEdgeFieldPolicy, - }, VariantGroup?: Omit & { keyFields?: false | VariantGroupKeySpecifier | (() => undefined | VariantGroupKeySpecifier), fields?: VariantGroupFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index b588c210a..4855cd7bd 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -2043,7 +2043,7 @@ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable revisions: RevisionConnection; sources: Array; /** List and filter variants. */ - variants: VariantConnection; + variants: VariantInterfaceConnection; }; @@ -2266,7 +2266,7 @@ export type Feature = Commentable & EventOriginObject & EventSubject & Flaggable revisions: RevisionConnection; sources: Array; /** List and filter variants. */ - variants: VariantConnection; + variants: VariantInterfaceConnection; }; @@ -2577,7 +2577,7 @@ export type Fusion = Commentable & EventOriginObject & EventSubject & Flaggable threePrimeGene?: Maybe; threePrimePartnerStatus: FusionPartnerStatus; /** List and filter variants. */ - variants: VariantConnection; + variants: VariantInterfaceConnection; }; @@ -2845,7 +2845,7 @@ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & revisions: RevisionConnection; sources: Array; /** List and filter variants. */ - variants: VariantConnection; + variants: VariantInterfaceConnection; }; @@ -2985,6 +2985,8 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg name: Scalars['String']; openCravatUrl?: Maybe; openRevisionCount: Scalars['Int']; + /** @deprecated The new Fusion variant type means Gene variants no longer have primary and secondary coordinates. Use 'coordinates' instead. */ + primaryCoordinates?: Maybe; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -6767,21 +6769,6 @@ export type VariantComponent = { variantId: Scalars['Int']; }; -/** The connection type for Variant. */ -export type VariantConnection = { - __typename: 'VariantConnection'; - /** A list of edges. */ - edges: Array; - /** A list of nodes. */ - nodes: Array; - /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; -}; - export type VariantCoordinate = EventSubject & { __typename: 'VariantCoordinate'; chromosome?: Maybe; @@ -6825,15 +6812,6 @@ export enum VariantDeprecationReason { Other = 'OTHER' } -/** An edge in a connection. */ -export type VariantEdge = { - __typename: 'VariantEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - export type VariantGroup = Commentable & EventSubject & Flaggable & WithRevisions & { __typename: 'VariantGroup'; /** List and filter comments. */ @@ -6855,7 +6833,7 @@ export type VariantGroup = Commentable & EventSubject & Flaggable & WithRevision revisions: RevisionConnection; sources: Array; /** List and filter variants. */ - variants: VariantConnection; + variants: VariantInterfaceConnection; }; @@ -7482,9 +7460,9 @@ export type FeaturePopoverQueryVariables = Exact<{ }>; -export type FeaturePopoverQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | undefined }; +export type FeaturePopoverQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, variants: { __typename: 'VariantInterfaceConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } } | undefined }; -export type FeaturePopoverFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; +export type FeaturePopoverFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, variants: { __typename: 'VariantInterfaceConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; export type BrowseFeaturesQueryVariables = Exact<{ featureName?: InputMaybe; @@ -7940,9 +7918,9 @@ export type VariantGroupPopoverQueryVariables = Exact<{ }>; -export type VariantGroupPopoverQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | undefined }> }, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }> } | undefined }; +export type VariantGroupPopoverQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantInterfaceConnection', edges: Array<{ __typename: 'VariantInterfaceEdge', node?: { __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'FusionVariant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | undefined }> }, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }> } | undefined }; -export type VariantGroupPopoverFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | undefined }> }, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }> }; +export type VariantGroupPopoverFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantInterfaceConnection', edges: Array<{ __typename: 'VariantInterfaceEdge', node?: { __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'FusionVariant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string } } | undefined }> }, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }> }; export type BrowseVariantGroupsQueryVariables = Exact<{ first?: InputMaybe; @@ -8446,9 +8424,9 @@ export type VariantGroupRevisableFieldsQueryVariables = Exact<{ }>; -export type VariantGroupRevisableFieldsQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', totalCount: number, edges: Array<{ __typename: 'VariantEdge', cursor: string, node?: { __typename: 'Variant', id: number, name: string, link: string } | undefined }>, nodes: Array<{ __typename: 'Variant', id: number, name: string, link: string }> }, sources: Array<{ __typename: 'Source', id: number, name: string, link: string }> } | undefined }; +export type VariantGroupRevisableFieldsQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantInterfaceConnection', totalCount: number, edges: Array<{ __typename: 'VariantInterfaceEdge', cursor: string, node?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }>, nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string }> }, sources: Array<{ __typename: 'Source', id: number, name: string, link: string }> } | undefined }; -export type VariantGroupRevisableFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', totalCount: number, edges: Array<{ __typename: 'VariantEdge', cursor: string, node?: { __typename: 'Variant', id: number, name: string, link: string } | undefined }>, nodes: Array<{ __typename: 'Variant', id: number, name: string, link: string }> }, sources: Array<{ __typename: 'Source', id: number, name: string, link: string }> }; +export type VariantGroupRevisableFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantInterfaceConnection', totalCount: number, edges: Array<{ __typename: 'VariantInterfaceEdge', cursor: string, node?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }>, nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string }> }, sources: Array<{ __typename: 'Source', id: number, name: string, link: string }> }; export type SuggestVariantGroupRevisionMutationVariables = Exact<{ input: SuggestVariantGroupRevisionInput; @@ -8462,9 +8440,9 @@ export type VariantGroupSubmittableFieldsQueryVariables = Exact<{ }>; -export type VariantGroupSubmittableFieldsQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', nodes: Array<{ __typename: 'Variant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }> }, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceType: SourceSource }> } | undefined }; +export type VariantGroupSubmittableFieldsQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantInterfaceConnection', nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | { __typename: 'FusionVariant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | { __typename: 'GeneVariant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | { __typename: 'Variant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }> }, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceType: SourceSource }> } | undefined }; -export type SubmittableVariantGroupFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', nodes: Array<{ __typename: 'Variant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }> }, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceType: SourceSource }> }; +export type SubmittableVariantGroupFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantInterfaceConnection', nodes: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | { __typename: 'FusionVariant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | { __typename: 'GeneVariant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | { __typename: 'Variant', id: number, name: string, link: string, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }> }, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceType: SourceSource }> }; export type SubmitVariantGroupMutationVariables = Exact<{ input: SubmitVariantGroupInput; @@ -9132,9 +9110,9 @@ export type VariantGroupDetailQueryVariables = Exact<{ }>; -export type VariantGroupDetailQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; +export type VariantGroupDetailQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, variants: { __typename: 'VariantInterfaceConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; -export type VariantGroupDetailFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, variants: { __typename: 'VariantConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +export type VariantGroupDetailFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, variants: { __typename: 'VariantInterfaceConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type VariantGroupsSummaryQueryVariables = Exact<{ variantGroupId: Scalars['Int']; diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 08b377a51..db5540021 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -3370,7 +3370,7 @@ type Factor implements Commentable & EventOriginObject & EventSubject & Flaggabl Left anchored filtering for variant name and aliases. """ name: String - ): VariantConnection! + ): VariantInterfaceConnection! } """ @@ -3891,7 +3891,7 @@ type Feature implements Commentable & EventOriginObject & EventSubject & Flaggab Left anchored filtering for variant name and aliases. """ name: String - ): VariantConnection! + ): VariantInterfaceConnection! } enum FeatureDeprecationReason { @@ -4483,7 +4483,7 @@ type Fusion implements Commentable & EventOriginObject & EventSubject & Flaggabl Left anchored filtering for variant name and aliases. """ name: String - ): VariantConnection! + ): VariantInterfaceConnection! } """ @@ -5068,7 +5068,7 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable Left anchored filtering for variant name and aliases. """ name: String - ): VariantConnection! + ): VariantInterfaceConnection! } """ @@ -5313,6 +5313,7 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla name: String! openCravatUrl: String openRevisionCount: Int! + primaryCoordinates: VariantCoordinate @deprecated(reason: "The new Fusion variant type means Gene variants no longer have primary and secondary coordinates. Use 'coordinates' instead.") """ List and filter revisions. @@ -11349,36 +11350,6 @@ input VariantComponent { variantId: Int! } -""" -The connection type for Variant. -""" -type VariantConnection { - """ - A list of edges. - """ - edges: [VariantEdge!]! - - """ - A list of nodes. - """ - nodes: [Variant!]! - - """ - Total number of pages, based on filtered count and pagesize. - """ - pageCount: Int! - - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - - """ - The total number of records in this filtered collection. - """ - totalCount: Int! -} - type VariantCoordinate implements EventSubject { chromosome: String coordinateType: VariantCoordinateType! @@ -11440,21 +11411,6 @@ enum VariantDeprecationReason { OTHER } -""" -An edge in a connection. -""" -type VariantEdge { - """ - A cursor for use in pagination. - """ - cursor: String! - - """ - The item at the end of the edge. - """ - node: Variant -} - type VariantGroup implements Commentable & EventSubject & Flaggable & WithRevisions { """ List and filter comments. @@ -11672,7 +11628,7 @@ type VariantGroup implements Commentable & EventSubject & Flaggable & WithRevisi Left anchored filtering for variant name and aliases. """ name: String - ): VariantConnection! + ): VariantInterfaceConnection! } """ diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index 898eeb37c..7dfaa637b 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -16619,7 +16619,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "VariantConnection", + "name": "VariantInterfaceConnection", "ofType": null } }, @@ -18635,7 +18635,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "VariantConnection", + "name": "VariantInterfaceConnection", "ofType": null } }, @@ -21145,7 +21145,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "VariantConnection", + "name": "VariantInterfaceConnection", "ofType": null } }, @@ -23495,7 +23495,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "VariantConnection", + "name": "VariantInterfaceConnection", "ofType": null } }, @@ -24576,6 +24576,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "primaryCoordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, + "isDeprecated": true, + "deprecationReason": "The new Fusion variant type means Gene variants no longer have primary and secondary coordinates. Use 'coordinates' instead." + }, { "name": "revisions", "description": "List and filter revisions.", @@ -50968,113 +50980,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "VariantConnection", - "description": "The connection type for Variant.", - "fields": [ - { - "name": "edges", - "description": "A list of edges.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "VariantEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodes", - "description": "A list of nodes.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Variant", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageCount", - "description": "Total number of pages, based on filtered count and pagesize.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": "Information to aid in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "totalCount", - "description": "The total number of records in this filtered collection.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "VariantCoordinate", @@ -51429,45 +51334,6 @@ ], "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "VariantEdge", - "description": "An edge in a connection.", - "fields": [ - { - "name": "cursor", - "description": "A cursor for use in pagination.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": "The item at the end of the edge.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "Variant", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "VariantGroup", @@ -52175,7 +52041,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "VariantConnection", + "name": "VariantInterfaceConnection", "ofType": null } }, diff --git a/server/app/graphql/resolvers/variants.rb b/server/app/graphql/resolvers/variants.rb index ccf042021..89c90d7ff 100644 --- a/server/app/graphql/resolvers/variants.rb +++ b/server/app/graphql/resolvers/variants.rb @@ -4,7 +4,7 @@ class Resolvers::Variants < GraphQL::Schema::Resolver include SearchObject.module(:graphql) - type Types::Entities::VariantType.connection_type, null: false + type Types::Interfaces::VariantInterface.connection_type, null: false description 'List and filter variants.' diff --git a/server/app/graphql/types/variants/gene_variant_type.rb b/server/app/graphql/types/variants/gene_variant_type.rb index 309469ae6..44fcb99c6 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -2,6 +2,8 @@ module Types::Variants class GeneVariantType < Types::Entities::VariantType field :coordinates, Types::Entities::VariantCoordinateType, null: true + field :primary_coordinates, Types::Entities::VariantCoordinateType, null: true, + deprecation_reason: "The new Fusion variant type means Gene variants no longer have primary and secondary coordinates. Use 'coordinates' instead." field :allele_registry_id, String, null: true field :clinvar_ids, [String], null: false field :hgvs_descriptions, [String], null: false @@ -13,6 +15,10 @@ def coordinates Loaders::AssociationLoader.for(Variants::GeneVariant, :coordinates).load(object) end + def primary_coordinates + coordinates + end + def clinvar_ids Loaders::AssociationLoader.for(Variant, :clinvar_entries).load(object).then do |clinvar_entries| clinvar_entries.map(&:clinvar_id) diff --git a/server/config/query_examples/evidence_for_variant.yml b/server/config/query_examples/evidence_for_variant.yml index e928b3647..3a58eeec4 100644 --- a/server/config/query_examples/evidence_for_variant.yml +++ b/server/config/query_examples/evidence_for_variant.yml @@ -13,12 +13,14 @@ query: | name id link - alleleRegistryId - primaryCoordinates { - start - stop - chromosome - representativeTranscript + ... on GeneVariant { + alleleRegistryId + primaryCoordinates { + start + stop + chromosome + representativeTranscript + } } molecularProfiles { pageInfo { From bee7cd902d0c1b0e77f2d126a9c2ebf80c132d98 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 10:03:41 -0500 Subject: [PATCH 46/56] fix typo in tooltip message --- .../fusion-variant-revise/fusion-variant-revise.form.config.ts | 2 +- .../fusion-variant-select/fusion-variant-select.form.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts index 6fb516ef3..68af24edf 100644 --- a/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts @@ -231,7 +231,7 @@ function formFieldConfig( props: { label: "3' Start Exon", tooltip: - 'The exon number counted from the 5’ end of the transcript.', + 'The exon number counted from the 3’ end of the transcript.', required: !threePrimeDisabled, disabled: threePrimeDisabled, }, diff --git a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts index 78f713b43..a063f9af8 100644 --- a/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts @@ -322,7 +322,7 @@ export class CvcFusionVariantSelectForm { props: { label: "3' Start Exon", tooltip: - 'The exon number counted from the 5’ end of the transcript.', + 'The exon number counted from the 3’ end of the transcript.', required: !threePrimeDisabled, disabled: threePrimeDisabled, }, From 0d7e4f543e6fd04d561de0b74c17cc299c1f3351 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 10:20:13 -0500 Subject: [PATCH 47/56] pass in representative fusion name --- server/app/models/actions/create_fusion_feature.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/models/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb index 77eb88bc1..5ee6e8c7e 100644 --- a/server/app/models/actions/create_fusion_feature.rb +++ b/server/app/models/actions/create_fusion_feature.rb @@ -42,7 +42,7 @@ def create_representative_variant vicc_compliant_name = stubbed_variant.generate_vicc_name cmd = Actions::CreateVariant.new( - variant_name: variant_name, + variant_name: stubbed_variant.name, feature_id: feature.id, originating_user: originating_user, organization_id: organization_id, From 236a0ce799aadece1424392a7525349bb14d939a Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 14:27:48 -0500 Subject: [PATCH 48/56] strip whitespace from transcript ids on input --- server/app/graphql/types/fusion/fusion_variant_input_type.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/graphql/types/fusion/fusion_variant_input_type.rb b/server/app/graphql/types/fusion/fusion_variant_input_type.rb index 500994925..1aaaf0a2f 100644 --- a/server/app/graphql/types/fusion/fusion_variant_input_type.rb +++ b/server/app/graphql/types/fusion/fusion_variant_input_type.rb @@ -23,7 +23,7 @@ def prepare coordinate_type: 'Five Prime End Exon Coordinate', reference_build: reference_build, ensembl_version: ensembl_version, - representative_transcript: five_prime_transcript, + representative_transcript: five_prime_transcript&.strip, exon: five_prime_exon_end, exon_offset: five_prime_offset, exon_offset_direction: five_prime_offset_direction, @@ -38,7 +38,7 @@ def prepare coordinate_type: 'Three Prime Start Exon Coordinate', reference_build: reference_build, ensembl_version: ensembl_version, - representative_transcript: three_prime_transcript, + representative_transcript: three_prime_transcript&.strip, exon: three_prime_exon_start, exon_offset: three_prime_offset, exon_offset_direction: three_prime_offset_direction, From e1534fd681e454f9922f274faec22a786fc0aa30 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 16:03:24 -0500 Subject: [PATCH 49/56] update query example to work with new coordinate schema --- server/config/query_examples/evidence_for_variant.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config/query_examples/evidence_for_variant.yml b/server/config/query_examples/evidence_for_variant.yml index 3a58eeec4..b4002fef9 100644 --- a/server/config/query_examples/evidence_for_variant.yml +++ b/server/config/query_examples/evidence_for_variant.yml @@ -15,7 +15,7 @@ query: | link ... on GeneVariant { alleleRegistryId - primaryCoordinates { + coordinates { start stop chromosome From 5cec74ad0535447594bfe410e3066f9030b6f3ca Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 16:05:07 -0500 Subject: [PATCH 50/56] update backfill script --- .../fusions/port_fusion_coords.rb | 68 ++++++++----------- 1 file changed, 28 insertions(+), 40 deletions(-) diff --git a/server/misc_scripts/fusions/port_fusion_coords.rb b/server/misc_scripts/fusions/port_fusion_coords.rb index 2b8eb3d39..bf76748b7 100644 --- a/server/misc_scripts/fusions/port_fusion_coords.rb +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -33,12 +33,12 @@ def create_exon_coords(variant, relation_name, coordinate_type, exon) coordinate_type: coordinate_type, variant_id: variant.id #TODO set curation status - ).first_or_create + ).first_or_create! rel = "#{relation_name}=" variant.send(rel, coord) rescue => e - binding.pry + binding.irb end fusion_variants = VariantType.where(name: 'transcript_fusion').first.variants.where(deprecated: false).all @@ -46,8 +46,8 @@ def create_exon_coords(variant, relation_name, coordinate_type, exon) vt.variants.where(deprecated: false).all end -#fusions = fusion_variants - missense_variants -fusions = Array(Variant.find(503)) +fusions = fusion_variants - missense_variants +#fusions = Array(Variant.find(503)) suspected_mps = fusion_variants.to_a.intersection(missense_variants) suspected_mps_report = File.open("fusions_that_are_mps.tsv", 'w') @@ -99,30 +99,6 @@ def call_api(url) end end -#hgnc symbol? -# def get_ensembl_id(gene_symbol) -# key = "#{gene_symbol}:ensembl_id" -# url ="https://grch37.rest.ensembl.org/xrefs/symbol/human/#{gene_symbol}?object_type=gene;content-type=application/json" -# data = call_api(url, key) -# ensembl_candidates = data.select { |gene| gene["id"] =~ /^ENSG/ } -# if ensembl_candidates.size > 1 -# binding.irb -# raise StandardError.new("More than one match found for #{gene_symbol}") -# elsif ensembl_candidates.size == 0 -# raise StandardError.new("No matches found for #{gene_symbol}") -# end -# -# ensembl_candidates.first['id'] -# end - -# def get_exons_for_region(region) -# key = "#{region}::exons" -# url = "https://grch37.rest.ensembl.org/overlap/region/human/#{region}?feature=exon;content-type=application/json" -# data = call_api(url, key) -# data.sort_by { |exon| exon['start'] } -# end - -#exon vs cds? def get_exons_for_ensembl_id(ensembl_id, variant, warning = nil) t = ensembl_id.split('.').first url = "https://grch37.rest.ensembl.org/overlap/id/#{ensembl_id}?content-type=application/json;feature=exon" @@ -251,7 +227,6 @@ def port_variant_to_fusion(variant) else regex = Regexp.new(/^e(?\d+)-e(?\d+)$/) if match = possible_exons.match(regex) - binding.irb variant.name = "e.#{match[:five_prime_exon]}-e.#{match[:three_prime_exon]}" #TODO - create matching exon and variant coordinate entries else @@ -267,8 +242,10 @@ def port_variant_to_fusion(variant) def update_variant_coordinates(variant, five_prime_partner_status, three_prime_partner_status) if five_prime_partner_status == 'known' five_prime_coordinate = variant.variant_coordinates.first - five_prime_coordinate.coordinate_type = "Five Prime Fusion Coordinate" - five_prime_coordinate.save + if five_prime_coordinate + five_prime_coordinate.coordinate_type = "Five Prime Fusion Coordinate" + five_prime_coordinate.save! + end if three_prime_partner_status == 'known' coord = VariantCoordinate.where( variant: variant, @@ -280,16 +257,18 @@ def update_variant_coordinates(variant, five_prime_partner_status, three_prime_p representative_transcript: variant.representative_transcript2, ensembl_version: variant.ensembl_version #TODO: set curation status - ).first_or_create + ).first_or_create! end elsif three_prime_partner_status == 'known' three_prime_coordinate = variant.variant_coordinates.first - three_prime_coordinate.coordinate_type = "Three Prime Fusion Coordinate" - three_prime_coordinate.chromosome = variant.chromosome2 - three_prime_coordinate.start = variant.start2 - three_prime_coordinate.stop = variant.stop2 - three_prime_coordinate.representative_transcript = variant.representative_transcript2 - three_prime_coordinate.save + if three_prime_coordinate + three_prime_coordinate.coordinate_type = "Three Prime Fusion Coordinate" + three_prime_coordinate.chromosome = variant.chromosome2 + three_prime_coordinate.start = variant.start2 + three_prime_coordinate.stop = variant.stop2 + three_prime_coordinate.representative_transcript = variant.representative_transcript2 + three_prime_coordinate.save! + end end end @@ -324,9 +303,18 @@ def update_variant_coordinates(variant, five_prime_partner_status, three_prime_p #TODO: capture these in a file next end + variant = Variant.find(variant.id) update_variant_coordinates(variant, five_prime_partner_status, three_prime_partner_status) - #TODO create stub exon coordinates - #TODO set vicc compatible name? + if five_prime_partner_status == 'known' + variant.five_prime_start_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Five Prime Start Exon Coordinate') + variant.five_prime_end_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Five Prime End Exon Coordinate') + end + if three_prime_partner_status == 'known' + variant.three_prime_start_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Three Prime Start Exon Coordinate') + variant.three_prime_end_exon_coordinates = ExonCoordinate.generate_stub(variant, 'Three Prime End Exon Coordinate') + end + variant.vicc_compliant_name = variant.generate_vicc_name + variant.save! end next end From 40af6e32dcb0ce489ffac9f284df07659ef81ce0 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 16:05:44 -0500 Subject: [PATCH 51/56] remove hgvs/clinvar entry id validation until we determine what to do with it --- server/app/models/variants/fusion_variant.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb index 8a7ce2637..aa9a90bd3 100644 --- a/server/app/models/variants/fusion_variant.rb +++ b/server/app/models/variants/fusion_variant.rb @@ -100,10 +100,10 @@ def generate_name def forbidden_fields [ - :ncit_id, - :hgvs_description_ids, - :clinvar_entry_ids, - :allele_registry_id, + # :ncit_id, + # :hgvs_description_ids, + # :clinvar_entry_ids, + # :allele_registry_id, ] end From b2b5e9af1fbb7604766397cd396a6434ff9869d5 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 16:06:54 -0500 Subject: [PATCH 52/56] pull back deprecated status in one more place --- .../features-detail/features-summary/features-summary.query.gql | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql b/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql index c55183b98..fa87216d8 100644 --- a/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql +++ b/client/src/app/views/features/features-detail/features-summary/features-summary.query.gql @@ -99,6 +99,7 @@ fragment GeneBaseFields on Gene { sourceUrl displayType sourceType + deprecated } } From b39a1da454a4629463f27e6e6317655802009b4f Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 16:59:50 -0500 Subject: [PATCH 53/56] add open revision counts to the individual revision tabs --- .../src/app/generated/civic.apollo-helpers.ts | 12 +- client/src/app/generated/civic.apollo.ts | 5059 +++++++++-------- .../src/app/generated/civic.possible-types.ts | 2 + client/src/app/generated/server.model.graphql | 110 +- client/src/app/generated/server.schema.json | 350 ++ .../coordinate-ids-for-variant.gql | 4 + .../variants-revisions.module.ts | 8 +- .../variants-revisions.page.html | 15 +- .../variants-revisions.page.ts | 36 +- 9 files changed, 3069 insertions(+), 2527 deletions(-) diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index 02a524a46..d582bee13 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -968,7 +968,7 @@ export type EvidenceItemsByTypeFieldPolicy = { predisposingCount?: FieldPolicy | FieldReadFunction, prognosticCount?: FieldPolicy | FieldReadFunction }; -export type ExonCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblId' | 'ensemblVersion' | 'events' | 'exon' | 'exonOffset' | 'exonOffsetDirection' | 'id' | 'link' | 'name' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'strand' | ExonCoordinateKeySpecifier)[]; +export type ExonCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblId' | 'ensemblVersion' | 'events' | 'exon' | 'exonOffset' | 'exonOffsetDirection' | 'id' | 'lastAcceptedRevisionEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'openRevisionCount' | 'referenceBuild' | 'representativeTranscript' | 'revisions' | 'start' | 'stop' | 'strand' | ExonCoordinateKeySpecifier)[]; export type ExonCoordinateFieldPolicy = { chromosome?: FieldPolicy | FieldReadFunction, coordinateType?: FieldPolicy | FieldReadFunction, @@ -979,10 +979,14 @@ export type ExonCoordinateFieldPolicy = { exonOffset?: FieldPolicy | FieldReadFunction, exonOffsetDirection?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, + lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, + lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, referenceBuild?: FieldPolicy | FieldReadFunction, representativeTranscript?: FieldPolicy | FieldReadFunction, + revisions?: FieldPolicy | FieldReadFunction, start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction, strand?: FieldPolicy | FieldReadFunction @@ -2437,18 +2441,22 @@ export type VariantAliasKeySpecifier = ('name' | VariantAliasKeySpecifier)[]; export type VariantAliasFieldPolicy = { name?: FieldPolicy | FieldReadFunction }; -export type VariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'events' | 'id' | 'link' | 'name' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'start' | 'stop' | 'variantBases' | VariantCoordinateKeySpecifier)[]; +export type VariantCoordinateKeySpecifier = ('chromosome' | 'coordinateType' | 'ensemblVersion' | 'events' | 'id' | 'lastAcceptedRevisionEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'openRevisionCount' | 'referenceBases' | 'referenceBuild' | 'representativeTranscript' | 'revisions' | 'start' | 'stop' | 'variantBases' | VariantCoordinateKeySpecifier)[]; export type VariantCoordinateFieldPolicy = { chromosome?: FieldPolicy | FieldReadFunction, coordinateType?: FieldPolicy | FieldReadFunction, ensemblVersion?: FieldPolicy | FieldReadFunction, events?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, + lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, + lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, referenceBases?: FieldPolicy | FieldReadFunction, referenceBuild?: FieldPolicy | FieldReadFunction, representativeTranscript?: FieldPolicy | FieldReadFunction, + revisions?: FieldPolicy | FieldReadFunction, start?: FieldPolicy | FieldReadFunction, stop?: FieldPolicy | FieldReadFunction, variantBases?: FieldPolicy | FieldReadFunction diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 7504f853c..b3289e911 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -7,58 +7,60 @@ export type InputMaybe = T | undefined; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } /** An ISO 8601-encoded datetime */ - ISO8601DateTime: any; + ISO8601DateTime: { input: any; output: any; } /** Represents untyped JSON */ - JSON: any; + JSON: { input: any; output: any; } }; export type AcceptRevisionsActivity = ActivityInterface & { __typename: 'AcceptRevisionsActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; revisions: Array; subject: EventSubject; supersededRevisions: Array; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of AcceptRevisions */ export type AcceptRevisionsInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Body of an optional comment to attach to the revision on acceptance. */ - comment?: InputMaybe; + comment?: InputMaybe; /** A list of IDs of the Revisions to accept. */ - ids?: InputMaybe>; + ids?: InputMaybe>; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** The ID of a revision set. */ - revisionSetId?: InputMaybe; + revisionSetId?: InputMaybe; }; /** Autogenerated return type of AcceptRevisions. */ export type AcceptRevisionsPayload = { __typename: 'AcceptRevisionsPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** A list of newly accepted Revisions. */ revisions: Array; /** A list of any revisions that were superseded by the acceptance of this one. */ @@ -67,24 +69,24 @@ export type AcceptRevisionsPayload = { export type AcmgCode = { __typename: 'AcmgCode'; - code: Scalars['String']; - description: Scalars['String']; - id: Scalars['Int']; - name: Scalars['String']; - tooltip: Scalars['String']; + code: Scalars['String']['output']; + description: Scalars['String']['output']; + id: Scalars['Int']['output']; + name: Scalars['String']['output']; + tooltip: Scalars['String']['output']; }; /** An activity done by a curator or editor */ export type ActivityInterface = { - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** The connection type for ActivityInterface. */ @@ -97,19 +99,19 @@ export type ActivityInterfaceConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** List of all organizations who are involved in this activity stream. */ participatingOrganizations: Array; subjectTypes: Array; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; /** * When filtered on a subject, user, or organization, the total number of events * for that subject/user/organization, irregardless of other filters. */ - unfilteredCount: Scalars['Int']; + unfilteredCount: Scalars['Int']['output']; /** List of all users that have performed an activity on the subject entity. */ uniqueParticipants: Array; }; @@ -118,7 +120,7 @@ export type ActivityInterfaceConnection = { export type ActivityInterfaceEdge = { __typename: 'ActivityInterfaceEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -161,27 +163,27 @@ export enum ActivityTypeInput { /** Autogenerated input type of AddComment */ export type AddCommentInput = { /** Text of the comment. */ - body: Scalars['String']; + body: Scalars['String']['input']; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** The commentable to attach the comment to. Specified by ID and Type. */ subject: CommentableInput; /** Optional title for the comment. */ - title?: InputMaybe; + title?: InputMaybe; }; /** Autogenerated return type of AddComment. */ export type AddCommentPayload = { __typename: 'AddCommentPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created comment. */ comment?: Maybe; }; @@ -189,30 +191,30 @@ export type AddCommentPayload = { /** Autogenerated input type of AddDisease */ export type AddDiseaseInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The DOID of the disease, if the disease is present in the Disease Ontology. */ - doid?: InputMaybe; + doid?: InputMaybe; /** The name of the disease. */ - name: Scalars['String']; + name: Scalars['String']['input']; }; /** Autogenerated return type of AddDisease. */ export type AddDiseasePayload = { __typename: 'AddDiseasePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created disease. */ disease: Disease; /** True if the disease was newly created. False if the returned disease was already in the database. */ - new: Scalars['Boolean']; + new: Scalars['Boolean']['output']; }; /** Autogenerated input type of AddRemoteCitation */ export type AddRemoteCitationInput = { /** The external id for the source to add. */ - citationId: Scalars['String']; + citationId: Scalars['String']['input']; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The origin of the external source. */ sourceType: SourceSource; }; @@ -221,7 +223,7 @@ export type AddRemoteCitationInput = { export type AddRemoteCitationPayload = { __typename: 'AddRemoteCitationPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The stubbed in record for the newly created source. */ newSource: SourceStub; }; @@ -229,29 +231,29 @@ export type AddRemoteCitationPayload = { /** Autogenerated input type of AddTherapy */ export type AddTherapyInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The name of the therapy. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** The NCIt ID of the therapy, if the therapy is present in the NCIthesaurus. */ - ncitId?: InputMaybe; + ncitId?: InputMaybe; }; /** Autogenerated return type of AddTherapy. */ export type AddTherapyPayload = { __typename: 'AddTherapyPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** True if the therapy was newly created. False if the returned therapy was already in the database. */ - new: Scalars['Boolean']; + new: Scalars['Boolean']['output']; /** The newly created therapy. */ therapy: Therapy; }; export type AdvancedSearchResult = { __typename: 'AdvancedSearchResult'; - permalinkId?: Maybe; - resultIds: Array; - searchEndpoint: Scalars['String']; + permalinkId?: Maybe; + resultIds: Array; + searchEndpoint: Scalars['String']['output']; }; export enum AmpLevel { @@ -280,30 +282,30 @@ export type Assertion = Commentable & EventOriginObject & EventSubject & Flaggab clingenCodes: Array; /** List and filter comments. */ comments: CommentConnection; - description: Scalars['String']; + description: Scalars['String']['output']; disease?: Maybe; /** List and filter events for an object */ events: EventConnection; evidenceItems: Array; - evidenceItemsCount: Scalars['Int']; - fdaCompanionTest?: Maybe; - fdaCompanionTestLastUpdated?: Maybe; - flagged: Scalars['Boolean']; + evidenceItemsCount: Scalars['Int']['output']; + fdaCompanionTest?: Maybe; + fdaCompanionTestLastUpdated?: Maybe; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; molecularProfile: MolecularProfile; - name: Scalars['String']; + name: Scalars['String']['output']; nccnGuideline?: Maybe; - nccnGuidelineVersion?: Maybe; - openRevisionCount: Scalars['Int']; + nccnGuidelineVersion?: Maybe; + openRevisionCount: Scalars['Int']['output']; phenotypes: Array; - regulatoryApproval?: Maybe; - regulatoryApprovalLastUpdated?: Maybe; + regulatoryApproval?: Maybe; + regulatoryApprovalLastUpdated?: Maybe; rejectionEvent?: Maybe; /** List and filter revisions. */ revisions: RevisionConnection; @@ -311,7 +313,7 @@ export type Assertion = Commentable & EventOriginObject & EventSubject & Flaggab status: EvidenceStatus; submissionActivity: SubmitAssertionActivity; submissionEvent: Event; - summary: Scalars['String']; + summary: Scalars['String']['output']; therapies: Array; therapyInteractionType?: Maybe; variantOrigin: VariantOrigin; @@ -319,50 +321,50 @@ export type Assertion = Commentable & EventOriginObject & EventSubject & Flaggab export type AssertionCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type AssertionEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type AssertionFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type AssertionRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -375,11 +377,11 @@ export type AssertionConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export enum AssertionDirection { @@ -391,7 +393,7 @@ export enum AssertionDirection { export type AssertionEdge = { __typename: 'AssertionEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -399,7 +401,7 @@ export type AssertionEdge = { /** Fields on an Assertion that curators may propose revisions to. */ export type AssertionFields = { /** List of CIViC IDs for the ACMG/AMP codes associated with this Assertion */ - acmgCodeIds: Array; + acmgCodeIds: Array; /** The AMP/ASCO/CAP Category for this assertion. */ ampLevel: NullableAmpLevelTypeInput; /** The evidence direction for this Assertion. */ @@ -407,31 +409,31 @@ export type AssertionFields = { /** The Type of the Assertion */ assertionType: AssertionType; /** List of CIViC IDs for the ClinGen/CGC/VICC codes associated with this Assertion */ - clingenCodeIds: Array; + clingenCodeIds: Array; /** A detailed description of the Assertion including practice guidelines and approved tests. */ description: NullableStringInput; /** The ID of the disease (if applicable) for this Assertion */ diseaseId: NullableIntInput; /** IDs of evidence items that are included in this Assertion. */ - evidenceItemIds: Array; + evidenceItemIds: Array; /** Is an FDA companion test available that pertains to this Assertion. */ fdaCompanionTest: NullableBooleanInput; /** Does the Assertion have FDA regulatory approval. */ fdaRegulatoryApproval: NullableBooleanInput; /** The ID of the Molecular Profile to which this Assertion belongs */ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; /** The internal CIViC ID of the NCCN guideline associated with this Assertion */ nccnGuidelineId: NullableIntInput; /** The version of the NCCN Guideline specified */ nccnGuidelineVersion: NullableStringInput; /** List of IDs of CIViC Phenotype entries for this Assertion. An empty list indicates none. */ - phenotypeIds: Array; + phenotypeIds: Array; /** The Clinical Significance of the Assertion */ significance: AssertionSignificance; /** A brief single sentence statement summarizing the clinical significance of this Assertion. */ summary: NullableStringInput; /** List of IDs of CIViC Therapy entries for this Assertion. An empty list indicates none. */ - therapyIds: Array; + therapyIds: Array; /** Therapy interaction type for cases where more than one therapy ID is provided. */ therapyInteractionType: NullableTherapyInteractionTypeInput; /** The Variant Origin for this Assertion. */ @@ -490,18 +492,18 @@ export enum BooleanOperator { } export type BooleanSearchInput = { - value: Scalars['Boolean']; + value: Scalars['Boolean']['input']; }; export type BrowseClinicalTrial = { __typename: 'BrowseClinicalTrial'; - evidenceCount: Scalars['Int']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - nctId?: Maybe; - sourceCount: Scalars['Int']; - url?: Maybe; + evidenceCount: Scalars['Int']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + nctId?: Maybe; + sourceCount: Scalars['Int']['output']; + url?: Maybe; }; /** The connection type for BrowseClinicalTrial. */ @@ -510,43 +512,43 @@ export type BrowseClinicalTrialConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseClinicalTrialEdge = { __typename: 'BrowseClinicalTrialEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowseDisease = { __typename: 'BrowseDisease'; - assertionCount: Scalars['Int']; - deprecated: Scalars['Boolean']; - diseaseAliases?: Maybe>; - diseaseUrl?: Maybe; - displayName: Scalars['String']; - doid?: Maybe; - evidenceItemCount: Scalars['Int']; - featureCount: Scalars['Int']; + assertionCount: Scalars['Int']['output']; + deprecated: Scalars['Boolean']['output']; + diseaseAliases?: Maybe>; + diseaseUrl?: Maybe; + displayName: Scalars['String']['output']; + doid?: Maybe; + evidenceItemCount: Scalars['Int']['output']; + featureCount: Scalars['Int']['output']; features: Array; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - variantCount: Scalars['Int']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + variantCount: Scalars['Int']['output']; }; /** The connection type for BrowseDisease. */ @@ -555,58 +557,58 @@ export type BrowseDiseaseConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseDiseaseEdge = { __typename: 'BrowseDiseaseEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowseFeature = Flaggable & { __typename: 'BrowseFeature'; - assertionCount: Scalars['Int']; - deprecated: Scalars['Boolean']; - description: Scalars['String']; + assertionCount: Scalars['Int']['output']; + deprecated: Scalars['Boolean']['output']; + description: Scalars['String']['output']; diseases?: Maybe>; - evidenceItemCount: Scalars['Int']; - featureAliases?: Maybe>; - featureInstanceId: Scalars['Int']; + evidenceItemCount: Scalars['Int']['output']; + featureAliases?: Maybe>; + featureInstanceId: Scalars['Int']['output']; featureInstanceType: FeatureInstanceTypes; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - fullName?: Maybe; - id: Scalars['Int']; - link: Scalars['String']; - molecularProfileCount: Scalars['Int']; - name: Scalars['String']; + fullName?: Maybe; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + molecularProfileCount: Scalars['Int']['output']; + name: Scalars['String']['output']; therapies?: Maybe>; - variantCount: Scalars['Int']; + variantCount: Scalars['Int']['output']; }; export type BrowseFeatureFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; @@ -617,24 +619,24 @@ export type BrowseFeatureConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseFeatureEdge = { __typename: 'BrowseFeatureEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -642,16 +644,16 @@ export type BrowseFeatureEdge = { export type BrowseMolecularProfile = { __typename: 'BrowseMolecularProfile'; aliases: Array; - assertionCount: Scalars['Int']; - deprecated: Scalars['Boolean']; + assertionCount: Scalars['Int']['output']; + deprecated: Scalars['Boolean']['output']; diseases: Array; - evidenceItemCount: Scalars['Int']; - id: Scalars['Int']; - link: Scalars['String']; - molecularProfileScore: Scalars['Float']; - name: Scalars['String']; + evidenceItemCount: Scalars['Int']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + molecularProfileScore: Scalars['Float']['output']; + name: Scalars['String']['output']; therapies: Array; - variantCount: Scalars['Int']; + variantCount: Scalars['Int']['output']; variants: Array; }; @@ -661,41 +663,41 @@ export type BrowseMolecularProfileConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseMolecularProfileEdge = { __typename: 'BrowseMolecularProfileEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowseOrganization = { __typename: 'BrowseOrganization'; - activityCount: Scalars['Int']; + activityCount: Scalars['Int']['output']; childOrganizations: Array; - createdAt?: Maybe; - description: Scalars['String']; - id: Scalars['Int']; - memberCount: Scalars['Int']; - mostRecentActivityTimestamp?: Maybe; - name: Scalars['String']; - parentId?: Maybe; - updatedAt?: Maybe; - url: Scalars['String']; + createdAt?: Maybe; + description: Scalars['String']['output']; + id: Scalars['Int']['output']; + memberCount: Scalars['Int']['output']; + mostRecentActivityTimestamp?: Maybe; + name: Scalars['String']['output']; + parentId?: Maybe; + updatedAt?: Maybe; + url: Scalars['String']['output']; }; /** The connection type for BrowseOrganization. */ @@ -704,37 +706,37 @@ export type BrowseOrganizationConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseOrganizationEdge = { __typename: 'BrowseOrganizationEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowsePhenotype = { __typename: 'BrowsePhenotype'; - assertionCount: Scalars['Int']; - evidenceCount: Scalars['Int']; - hpoId: Scalars['String']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - url: Scalars['String']; + assertionCount: Scalars['Int']['output']; + evidenceCount: Scalars['Int']['output']; + hpoId: Scalars['String']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + url: Scalars['String']['output']; }; /** The connection type for BrowsePhenotype. */ @@ -743,47 +745,47 @@ export type BrowsePhenotypeConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowsePhenotypeEdge = { __typename: 'BrowsePhenotypeEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowseSource = { __typename: 'BrowseSource'; - authors: Array; - citation: Scalars['String']; - citationId: Scalars['Int']; + authors: Array; + citation: Scalars['String']['output']; + citationId: Scalars['Int']['output']; clinicalTrials: Array; - deprecated: Scalars['Boolean']; - displayType: Scalars['String']; - evidenceItemCount: Scalars['Int']; - id: Scalars['Int']; - journal?: Maybe; - link: Scalars['String']; - name?: Maybe; - openAccess: Scalars['Boolean']; - publicationYear?: Maybe; - retractionNature?: Maybe; - sourceSuggestionCount: Scalars['Int']; + deprecated: Scalars['Boolean']['output']; + displayType: Scalars['String']['output']; + evidenceItemCount: Scalars['Int']['output']; + id: Scalars['Int']['output']; + journal?: Maybe; + link: Scalars['String']['output']; + name?: Maybe; + openAccess: Scalars['Boolean']['output']; + publicationYear?: Maybe; + retractionNature?: Maybe; + sourceSuggestionCount: Scalars['Int']['output']; sourceType: SourceSource; - sourceUrl: Scalars['String']; + sourceUrl: Scalars['String']['output']; }; /** The connection type for BrowseSource. */ @@ -792,39 +794,39 @@ export type BrowseSourceConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseSourceEdge = { __typename: 'BrowseSourceEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowseTherapy = { __typename: 'BrowseTherapy'; - assertionCount: Scalars['Int']; - deprecated: Scalars['Boolean']; - evidenceCount: Scalars['Int']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - ncitId?: Maybe; - therapyAliases?: Maybe>; - therapyUrl?: Maybe; + assertionCount: Scalars['Int']['output']; + deprecated: Scalars['Boolean']['output']; + evidenceCount: Scalars['Int']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + ncitId?: Maybe; + therapyAliases?: Maybe>; + therapyUrl?: Maybe; }; /** The connection type for BrowseTherapy. */ @@ -833,24 +835,24 @@ export type BrowseTherapyConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseTherapyEdge = { __typename: 'BrowseTherapyEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -858,57 +860,57 @@ export type BrowseTherapyEdge = { export type BrowseUser = { __typename: 'BrowseUser'; areaOfExpertise?: Maybe; - bio?: Maybe; + bio?: Maybe; country?: Maybe; - displayName: Scalars['String']; - email?: Maybe; + displayName: Scalars['String']['output']; + email?: Maybe; events: EventConnection; - evidenceCount: Scalars['Int']; - facebookProfile?: Maybe; - id: Scalars['Int']; - linkedinProfile?: Maybe; - mostRecentActivityTimestamp?: Maybe; + evidenceCount: Scalars['Int']['output']; + facebookProfile?: Maybe; + id: Scalars['Int']['output']; + linkedinProfile?: Maybe; + mostRecentActivityTimestamp?: Maybe; mostRecentConflictOfInterestStatement?: Maybe; mostRecentEvent?: Maybe; - mostRecentOrganizationId?: Maybe; - name?: Maybe; + mostRecentOrganizationId?: Maybe; + name?: Maybe; /** Filterable list of notifications for the logged in user. */ notifications?: Maybe; - orcid?: Maybe; + orcid?: Maybe; organizations: Array; - profileImagePath?: Maybe; + profileImagePath?: Maybe; ranks: Ranks; - revisionCount: Scalars['Int']; + revisionCount: Scalars['Int']['output']; role: UserRole; statsHash: Stats; - twitterHandle?: Maybe; - url?: Maybe; - username: Scalars['String']; + twitterHandle?: Maybe; + url?: Maybe; + username: Scalars['String']['output']; }; export type BrowseUserEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type BrowseUserNotificationsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - includeSeen?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + includeSeen?: InputMaybe; + last?: InputMaybe; notificationType?: InputMaybe; - subscriptionId?: InputMaybe; + subscriptionId?: InputMaybe; }; export type BrowseUserProfileImagePathArgs = { - size?: InputMaybe; + size?: InputMaybe; }; /** The connection type for BrowseUser. */ @@ -917,24 +919,24 @@ export type BrowseUserConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseUserEdge = { __typename: 'BrowseUserEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -943,17 +945,17 @@ export type BrowseVariant = { __typename: 'BrowseVariant'; aliases: Array; category: VariantCategories; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; diseases: Array; - featureDeprecated: Scalars['Boolean']; - featureFlagged: Scalars['Boolean']; - featureId: Scalars['Int']; - featureLink: Scalars['String']; - featureName: Scalars['String']; - flagged: Scalars['Boolean']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + featureDeprecated: Scalars['Boolean']['output']; + featureFlagged: Scalars['Boolean']['output']; + featureId: Scalars['Int']['output']; + featureLink: Scalars['String']['output']; + featureName: Scalars['String']['output']; + flagged: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; therapies: Array; variantTypes: Array; }; @@ -964,37 +966,37 @@ export type BrowseVariantConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseVariantEdge = { __typename: 'BrowseVariantEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowseVariantGroup = { __typename: 'BrowseVariantGroup'; - evidenceItemCount: Scalars['Int']; - featureNames: Array; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - variantCount: Scalars['Int']; - variantNames: Array; + evidenceItemCount: Scalars['Int']['output']; + featureNames: Array; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + variantCount: Scalars['Int']['output']; + variantNames: Array; }; /** The connection type for BrowseVariantGroup. */ @@ -1003,36 +1005,36 @@ export type BrowseVariantGroupConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseVariantGroupEdge = { __typename: 'BrowseVariantGroupEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type BrowseVariantType = { __typename: 'BrowseVariantType'; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - soid: Scalars['String']; - url?: Maybe; - variantCount: Scalars['Int']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + soid: Scalars['String']['output']; + url?: Maybe; + variantCount: Scalars['Int']['output']; }; /** The connection type for BrowseVariantType. */ @@ -1041,24 +1043,24 @@ export type BrowseVariantTypeConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type BrowseVariantTypeEdge = { __typename: 'BrowseVariantTypeEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -1081,22 +1083,22 @@ export type CivicTimepointStats = { export type ClingenCode = { __typename: 'ClingenCode'; - code: Scalars['String']; - description: Scalars['String']; - exclusive: Scalars['Boolean']; - id: Scalars['Int']; - name: Scalars['String']; - tooltip: Scalars['String']; + code: Scalars['String']['output']; + description: Scalars['String']['output']; + exclusive: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + name: Scalars['String']['output']; + tooltip: Scalars['String']['output']; }; export type ClinicalTrial = { __typename: 'ClinicalTrial'; - description: Scalars['String']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - nctId: Scalars['String']; - url?: Maybe; + description: Scalars['String']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + nctId: Scalars['String']['output']; + url?: Maybe; }; export type ClinicalTrialSort = { @@ -1119,19 +1121,19 @@ export enum ClinicalTrialSortColumns { */ export type ClinvarInput = { /** The ClinVar ID(s) */ - ids?: InputMaybe>; - noneFound?: InputMaybe; - notApplicable?: InputMaybe; + ids?: InputMaybe>; + noneFound?: InputMaybe; + notApplicable?: InputMaybe; }; export type Coi = { __typename: 'Coi'; - coiPresent: Scalars['Boolean']; - coiStatement?: Maybe; + coiPresent: Scalars['Boolean']['output']; + coiStatement?: Maybe; coiStatus: CoiStatus; - createdAt?: Maybe; - expiresAt: Scalars['ISO8601DateTime']; - id: Scalars['Int']; + createdAt?: Maybe; + expiresAt: Scalars['ISO8601DateTime']['output']; + id: Scalars['Int']['output']; }; export enum CoiStatus { @@ -1143,32 +1145,32 @@ export enum CoiStatus { export type Comment = EventOriginObject & { __typename: 'Comment'; - comment: Scalars['String']; + comment: Scalars['String']['output']; commentable: Commentable; commenter: User; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; creationEvent?: Maybe; - deleted: Scalars['Boolean']; - deletedAt?: Maybe; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + deleted: Scalars['Boolean']['output']; + deletedAt?: Maybe; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; parsedComment: Array; - title?: Maybe; + title?: Maybe; }; export type CommentActivity = ActivityInterface & { __typename: 'CommentActivity'; comment: Comment; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Segment of a comment that can either be text or an object to be rendered as a tag */ @@ -1188,16 +1190,16 @@ export type CommentConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; /** * When filtered on a subject, the total number of comments for that subject, * irregardless of other filters. Returns null when there is no subject. */ - unfilteredCountForSubject?: Maybe; + unfilteredCountForSubject?: Maybe; /** List of all users that have commented on this entity. */ uniqueCommenters: Array; }; @@ -1206,82 +1208,82 @@ export type CommentConnection = { export type CommentEdge = { __typename: 'CommentEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type CommentTagSegment = { __typename: 'CommentTagSegment'; - displayName: Scalars['String']; - entityId: Scalars['Int']; + displayName: Scalars['String']['output']; + entityId: Scalars['Int']['output']; feature?: Maybe; - link: Scalars['String']; - revisionSetId?: Maybe; + link: Scalars['String']['output']; + revisionSetId?: Maybe; tagType: TaggableEntity; }; export type CommentTagSegmentFlagged = { __typename: 'CommentTagSegmentFlagged'; - displayName: Scalars['String']; - entityId: Scalars['Int']; + displayName: Scalars['String']['output']; + entityId: Scalars['Int']['output']; feature?: Maybe; - flagged: Scalars['Boolean']; - link: Scalars['String']; - revisionSetId?: Maybe; + flagged: Scalars['Boolean']['output']; + link: Scalars['String']['output']; + revisionSetId?: Maybe; tagType: TaggableEntity; }; export type CommentTagSegmentFlaggedAndDeprecated = { __typename: 'CommentTagSegmentFlaggedAndDeprecated'; - deprecated: Scalars['Boolean']; - displayName: Scalars['String']; - entityId: Scalars['Int']; + deprecated: Scalars['Boolean']['output']; + displayName: Scalars['String']['output']; + entityId: Scalars['Int']['output']; feature?: Maybe; - flagged: Scalars['Boolean']; - link: Scalars['String']; - revisionSetId?: Maybe; + flagged: Scalars['Boolean']['output']; + link: Scalars['String']['output']; + revisionSetId?: Maybe; tagType: TaggableEntity; }; export type CommentTagSegmentFlaggedAndWithStatus = { __typename: 'CommentTagSegmentFlaggedAndWithStatus'; - displayName: Scalars['String']; - entityId: Scalars['Int']; + displayName: Scalars['String']['output']; + entityId: Scalars['Int']['output']; feature?: Maybe; - flagged: Scalars['Boolean']; - link: Scalars['String']; - revisionSetId?: Maybe; + flagged: Scalars['Boolean']['output']; + link: Scalars['String']['output']; + revisionSetId?: Maybe; status: EvidenceStatus; tagType: TaggableEntity; }; export type CommentTextSegment = { __typename: 'CommentTextSegment'; - text: Scalars['String']; + text: Scalars['String']['output']; }; /** A CIViC entity that can have comments on it. */ export type Commentable = { /** List and filter comments. */ comments: CommentConnection; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastCommentEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; /** A CIViC entity that can have comments on it. */ export type CommentableCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; @@ -1300,14 +1302,14 @@ export type CommentableInput = { /** The type of the entity to comment on. */ entityType: CommentableEntities; /** ID of the entity to comment on. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; }; /** A user with all the unique kinds of actions they've performed on a given entity */ export type ContributingUser = { __typename: 'ContributingUser'; - lastActionDate: Scalars['ISO8601DateTime']; - totalActionCount: Scalars['Int']; + lastActionDate: Scalars['ISO8601DateTime']['output']; + totalActionCount: Scalars['Int']['output']; uniqueActions: Array; user: User; }; @@ -1321,74 +1323,74 @@ export type ContributingUsersSummary = { export type Contribution = { __typename: 'Contribution'; action: EventAction; - count: Scalars['Int']; + count: Scalars['Int']['output']; }; export type Country = { __typename: 'Country'; - id: Scalars['Int']; - iso: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + iso: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type CreateComplexMolecularProfileActivity = ActivityInterface & { __typename: 'CreateComplexMolecularProfileActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; export type CreateFeatureActivity = ActivityInterface & { __typename: 'CreateFeatureActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of CreateFeature */ export type CreateFeatureInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The Type of Feature you are creating */ featureType: CreateableFeatureTypes; /** The name of the feature to create. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of CreateFeature. */ export type CreateFeaturePayload = { __typename: 'CreateFeaturePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created Feature. */ feature: Feature; /** True if the feature was newly created. False if the returned feature was already in the database. */ - new: Scalars['Boolean']; + new: Scalars['Boolean']['output']; }; /** Autogenerated input type of CreateFusionFeature */ export type CreateFusionFeatureInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The 5" fusion partner */ fivePrimeGene: FusionPartnerInput; /** @@ -1397,7 +1399,7 @@ export type CreateFusionFeatureInput = { * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** The 3" fusion partner */ threePrimeGene: FusionPartnerInput; }; @@ -1406,38 +1408,38 @@ export type CreateFusionFeatureInput = { export type CreateFusionFeaturePayload = { __typename: 'CreateFusionFeaturePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created Feature. */ feature: Feature; /** True if the feature was newly created. False if the returned feature was already in the database. */ - new: Scalars['Boolean']; + new: Scalars['Boolean']['output']; }; /** Autogenerated input type of CreateFusionVariant */ export type CreateFusionVariantInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; coordinates: FusionVariantInput; /** The CIViC ID of the Feature to which the new variant belongs. */ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of CreateFusionVariant. */ export type CreateFusionVariantPayload = { __typename: 'CreateFusionVariantPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created molecular profile for the new variant. */ molecularProfile: MolecularProfile; /** True if the variant was newly created. False if the returned variant was already in the database. */ - new: Scalars['Boolean']; + new: Scalars['Boolean']['output']; /** The newly created Variant. */ variant: VariantInterface; }; @@ -1445,14 +1447,14 @@ export type CreateFusionVariantPayload = { /** Autogenerated input type of CreateMolecularProfile */ export type CreateMolecularProfileInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** Representation of the constituent parts of the Molecular Profile along with the logic used to combine them. */ structure: MolecularProfileComponentInput; }; @@ -1461,51 +1463,51 @@ export type CreateMolecularProfileInput = { export type CreateMolecularProfilePayload = { __typename: 'CreateMolecularProfilePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created (or already existing) Molecular Profile. */ molecularProfile: MolecularProfile; }; export type CreateVariantActivity = ActivityInterface & { __typename: 'CreateVariantActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; + id: Scalars['Int']['output']; molecularProfile: MolecularProfile; - note?: Maybe; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of CreateVariant */ export type CreateVariantInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The CIViC ID of the Feature to which the new variant belongs. */ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; /** The name of the variant to create. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of CreateVariant. */ export type CreateVariantPayload = { __typename: 'CreateVariantPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created molecular profile for the new variant. */ molecularProfile: MolecularProfile; /** True if the variant was newly created. False if the returned variant was already in the database. */ - new: Scalars['Boolean']; + new: Scalars['Boolean']['output']; /** The newly created Variant. */ variant: Variant; }; @@ -1523,7 +1525,7 @@ export type DataRelease = { evidenceTsv?: Maybe; geneTsv?: Maybe; molecularProfileTsv?: Maybe; - name: Scalars['String']; + name: Scalars['String']['output']; variantGroupTsv?: Maybe; variantTsv?: Maybe; }; @@ -1543,121 +1545,121 @@ export enum DateSortColumns { export type DeleteCommentActivity = ActivityInterface & { __typename: 'DeleteCommentActivity'; comment: Comment; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of DeleteComment */ export type DeleteCommentInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The ID of the comment to delete. */ - commentId: Scalars['Int']; + commentId: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of DeleteComment. */ export type DeleteCommentPayload = { __typename: 'DeleteCommentPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The deleted comment. */ comment?: Maybe; }; export type DeprecateComplexMolecularProfileActivity = ActivityInterface & { __typename: 'DeprecateComplexMolecularProfileActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of DeprecateComplexMolecularProfile */ export type DeprecateComplexMolecularProfileInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text giving more context for deprecating this complex molecular profile. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** The reason for deprecating this molecular profile. */ deprecationReason: MolecularProfileDeprecationReasonMutationInput; /** The CIViC ID of the complex molecular profile to deprecate. */ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of DeprecateComplexMolecularProfile. */ export type DeprecateComplexMolecularProfilePayload = { __typename: 'DeprecateComplexMolecularProfilePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The deprecated complex Molecular Profile. */ molecularProfile?: Maybe; }; export type DeprecateFeatureActivity = ActivityInterface & { __typename: 'DeprecateFeatureActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; + id: Scalars['Int']['output']; molecularProfiles: Array; - note?: Maybe; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; variants: Array; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of DeprecateFeature */ export type DeprecateFeatureInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text giving more context for deprecation this feature. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** The reason for deprecation this feature. */ deprecationReason: FeatureDeprecationReason; /** The CIViC ID of the feature to deprecate. */ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of DeprecateFeature. */ export type DeprecateFeaturePayload = { __typename: 'DeprecateFeaturePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The deprecated Feature. */ feature?: Maybe; /** @@ -1671,24 +1673,24 @@ export type DeprecateFeaturePayload = { export type DeprecateVariantActivity = ActivityInterface & { __typename: 'DeprecateVariantActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; + id: Scalars['Int']['output']; molecularProfiles: Array; - note?: Maybe; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of DeprecateVariant */ export type DeprecateVariantInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text giving more context for deprecation this variant. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** The reason for deprecation this variant. */ deprecationReason: VariantDeprecationReason; /** @@ -1697,16 +1699,16 @@ export type DeprecateVariantInput = { * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** The CIViC ID of the variant to deprecate. */ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }; /** Autogenerated return type of DeprecateVariant. */ export type DeprecateVariantPayload = { __typename: 'DeprecateVariantPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** * The molecular profiles linked to this variant that weren't already deprecated * and have been newly deprecated by running this mutation. @@ -1723,31 +1725,31 @@ export enum Direction { export type Disease = { __typename: 'Disease'; - deprecated: Scalars['Boolean']; - diseaseAliases: Array; - diseaseUrl?: Maybe; - displayName: Scalars['String']; - doid?: Maybe; - id: Scalars['Int']; - link: Scalars['String']; + deprecated: Scalars['Boolean']['output']; + diseaseAliases: Array; + diseaseUrl?: Maybe; + displayName: Scalars['String']['output']; + doid?: Maybe; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; myDiseaseInfo?: Maybe; - name: Scalars['String']; + name: Scalars['String']['output']; }; export type DiseasePopover = { __typename: 'DiseasePopover'; - assertionCount: Scalars['Int']; - deprecated: Scalars['Boolean']; - diseaseAliases: Array; - diseaseUrl?: Maybe; - displayName: Scalars['String']; - doid?: Maybe; - evidenceItemCount: Scalars['Int']; - id: Scalars['Int']; - link: Scalars['String']; - molecularProfileCount: Scalars['Int']; + assertionCount: Scalars['Int']['output']; + deprecated: Scalars['Boolean']['output']; + diseaseAliases: Array; + diseaseUrl?: Maybe; + displayName: Scalars['String']['output']; + doid?: Maybe; + evidenceItemCount: Scalars['Int']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + molecularProfileCount: Scalars['Int']['output']; myDiseaseInfo?: Maybe; - name: Scalars['String']; + name: Scalars['String']['output']; }; export type DiseasesSort = { @@ -1768,8 +1770,8 @@ export enum DiseasesSortColumns { export type DownloadableFile = { __typename: 'DownloadableFile'; - filename: Scalars['String']; - path: Scalars['String']; + filename: Scalars['String']['output']; + path: Scalars['String']['output']; }; /** Autogenerated input type of EditUser */ @@ -1783,11 +1785,11 @@ export type EditUserInput = { */ bio: NullableStringInput; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The internal CIViC ID of the country the user resides or studies in. */ countryId: NullableIntInput; /** The user's email address */ - email: Scalars['String']; + email: Scalars['String']['input']; /** The user's Facebook profile handle */ facebookProfile: NullableStringInput; /** The user's LinkedIn username */ @@ -1801,22 +1803,22 @@ export type EditUserInput = { /** The user's personal website URL, omitting the https:// protocol part */ url: NullableStringInput; /** The user's desired username */ - username: Scalars['String']; + username: Scalars['String']['input']; }; /** Autogenerated return type of EditUser. */ export type EditUserPayload = { __typename: 'EditUserPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; user: User; }; export type Event = { __typename: 'Event'; action: EventAction; - createdAt: Scalars['ISO8601DateTime']; - id: Scalars['Int']; + createdAt: Scalars['ISO8601DateTime']['output']; + id: Scalars['Int']['output']; organization?: Maybe; originatingObject?: Maybe; originatingUser: User; @@ -1862,19 +1864,19 @@ export type EventConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** List of all organizations who are involved in this event stream. */ participatingOrganizations: Array; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; /** * When filtered on a subject, user, or organization, the total number of events * for that subject/user/organization, irregardless of other filters. Returns * null when there is no subject, user, or organization. */ - unfilteredCount: Scalars['Int']; + unfilteredCount: Scalars['Int']['output']; /** List of all users that have generated an event on the subject entity. */ uniqueParticipants: Array; }; @@ -1883,7 +1885,7 @@ export type EventConnection = { export type EventEdge = { __typename: 'EventEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -1906,37 +1908,37 @@ export enum EventFeedMode { * while the originating object will be the Revision itself. */ export type EventOriginObject = { - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; /** The subject of an event log event. */ export type EventSubject = { /** List and filter events for an object */ events: EventConnection; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; /** The subject of an event log event. */ export type EventSubjectEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** An event subject paired with a count of how many times that subject has appeared */ export type EventSubjectWithCount = { __typename: 'EventSubjectWithCount'; - occuranceCount: Scalars['Int']; + occuranceCount: Scalars['Int']['output']; subject?: Maybe; }; @@ -1952,25 +1954,25 @@ export type EvidenceItem = Commentable & EventOriginObject & EventSubject & Flag assertions: Array; /** List and filter comments. */ comments: CommentConnection; - description: Scalars['String']; + description: Scalars['String']['output']; disease?: Maybe; /** List and filter events for an object */ events: EventConnection; evidenceDirection: EvidenceDirection; evidenceLevel: EvidenceLevel; - evidenceRating?: Maybe; + evidenceRating?: Maybe; evidenceType: EvidenceType; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; molecularProfile: MolecularProfile; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; phenotypes: Array; rejectionEvent?: Maybe; /** List and filter revisions. */ @@ -1982,56 +1984,56 @@ export type EvidenceItem = Commentable & EventOriginObject & EventSubject & Flag submissionEvent: Event; therapies: Array; therapyInteractionType?: Maybe; - variantHgvs: Scalars['String']; + variantHgvs: Scalars['String']['output']; variantOrigin: VariantOrigin; }; export type EvidenceItemCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type EvidenceItemEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type EvidenceItemFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type EvidenceItemRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -2044,18 +2046,18 @@ export type EvidenceItemConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type EvidenceItemEdge = { __typename: 'EvidenceItemEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -2073,17 +2075,17 @@ export type EvidenceItemFields = { /** The Type of the EvidenceItem */ evidenceType: EvidenceType; /** The ID of the Molecular Profile to which this EvidenceItem belongs */ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; /** List of IDs of CIViC Phenotype entries for this EvidenceItem. An empty list indicates none. */ - phenotypeIds: Array; + phenotypeIds: Array; /** The rating for this EvidenceItem */ - rating: Scalars['Int']; + rating: Scalars['Int']['input']; /** The Clinical Significance of the EvidenceItem */ significance: EvidenceSignificance; /** The ID of the Source from which this EvidenceItem was curated. */ - sourceId: Scalars['Int']; + sourceId: Scalars['Int']['input']; /** List of IDs of CIViC Therapy entries for this EvidenceItem. An empty list indicates none. */ - therapyIds: Array; + therapyIds: Array; /** Therapy interaction type for cases where more than one Therapy ID is provided. */ therapyInteractionType: NullableTherapyInteractionTypeInput; /** The Variant Origin for this EvidenceItem. */ @@ -2092,21 +2094,21 @@ export type EvidenceItemFields = { export type EvidenceItemsByStatus = { __typename: 'EvidenceItemsByStatus'; - acceptedCount: Scalars['Int']; - molecularProfileId: Scalars['Int']; - rejectedCount: Scalars['Int']; - submittedCount: Scalars['Int']; + acceptedCount: Scalars['Int']['output']; + molecularProfileId: Scalars['Int']['output']; + rejectedCount: Scalars['Int']['output']; + submittedCount: Scalars['Int']['output']; }; export type EvidenceItemsByType = { __typename: 'EvidenceItemsByType'; - diagnosticCount: Scalars['Int']; - functionalCount: Scalars['Int']; - molecularProfileId: Scalars['Int']; - oncogenicCount: Scalars['Int']; - predictiveCount: Scalars['Int']; - predisposingCount: Scalars['Int']; - prognosticCount: Scalars['Int']; + diagnosticCount: Scalars['Int']['output']; + functionalCount: Scalars['Int']['output']; + molecularProfileId: Scalars['Int']['output']; + oncogenicCount: Scalars['Int']['output']; + predictiveCount: Scalars['Int']['output']; + predisposingCount: Scalars['Int']['output']; + prognosticCount: Scalars['Int']['output']; }; export enum EvidenceLevel { @@ -2186,37 +2188,55 @@ export enum EvidenceType { Prognostic = 'PROGNOSTIC' } -export type ExonCoordinate = EventSubject & { +export type ExonCoordinate = EventSubject & WithRevisions & { __typename: 'ExonCoordinate'; - chromosome?: Maybe; + chromosome?: Maybe; coordinateType: ExonCoordinateType; - ensemblId?: Maybe; - ensemblVersion?: Maybe; + ensemblId?: Maybe; + ensemblVersion?: Maybe; /** List and filter events for an object */ events: EventConnection; - exon?: Maybe; - exonOffset?: Maybe; + exon?: Maybe; + exonOffset?: Maybe; exonOffsetDirection?: Maybe; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + lastAcceptedRevisionEvent?: Maybe; + lastSubmittedRevisionEvent?: Maybe; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; referenceBuild?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - stop?: Maybe; + representativeTranscript?: Maybe; + /** List and filter revisions. */ + revisions: RevisionConnection; + start?: Maybe; + stop?: Maybe; strand?: Maybe; }; export type ExonCoordinateEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + + +export type ExonCoordinateRevisionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; + status?: InputMaybe; }; export enum ExonCoordinateType { @@ -2232,28 +2252,28 @@ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; - description?: Maybe; + description?: Maybe; /** List and filter events for an object */ events: EventConnection; - featureAliases: Array; + featureAliases: Array; featureInstance: FeatureInstance; featureType: FeatureInstanceTypes; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - fullName?: Maybe; - id: Scalars['Int']; + fullName?: Maybe; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; ncitDetails?: Maybe; - ncitId?: Maybe; - openRevisionCount: Scalars['Int']; + ncitId?: Maybe; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2264,39 +2284,39 @@ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable /** The Feature that a Variant can belong to */ export type FactorCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type FactorEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type FactorFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; @@ -2304,13 +2324,13 @@ export type FactorFlagsArgs = { /** The Feature that a Variant can belong to */ export type FactorRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -2318,19 +2338,19 @@ export type FactorRevisionsArgs = { /** The Feature that a Variant can belong to */ export type FactorVariantsArgs = { - after?: InputMaybe; - alleleRegistryId?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; category?: InputMaybe; - factorId?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - hasNoVariantType?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + factorId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; - variantTypeIds?: InputMaybe>; + variantTypeIds?: InputMaybe>; }; /** The connection type for Factor. */ @@ -2341,18 +2361,18 @@ export type FactorConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type FactorEdge = { __typename: 'FactorEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -2360,17 +2380,17 @@ export type FactorEdge = { /** Fields on a Factor that curators may propose revisions to. */ export type FactorFields = { /** List of aliases or alternate names for the Factor. */ - aliases: Array; + aliases: Array; /** The Factor's description/summary text. */ description: NullableStringInput; /** The Factor's full name if applicable. */ fullName: NullableStringInput; /** The Factor's display name. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** NCI Thesaurus concept ID for this Factor */ ncitId: NullableStringInput; /** Source IDs cited by the Factor's summary. */ - sourceIds: Array; + sourceIds: Array; }; export type FactorVariant = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions & { @@ -2378,87 +2398,87 @@ export type FactorVariant = Commentable & EventOriginObject & EventSubject & Fla /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; /** List and filter events for an object */ events: EventConnection; feature: Feature; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; molecularProfiles: MolecularProfileConnection; - name: Scalars['String']; + name: Scalars['String']['output']; ncitDetails?: Maybe; - ncitId?: Maybe; - openRevisionCount: Scalars['Int']; + ncitId?: Maybe; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; - singleVariantMolecularProfileId: Scalars['Int']; - variantAliases: Array; + singleVariantMolecularProfileId: Scalars['Int']['output']; + variantAliases: Array; variantTypes: Array; }; export type FactorVariantCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type FactorVariantEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type FactorVariantFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type FactorVariantMolecularProfilesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type FactorVariantRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -2471,18 +2491,18 @@ export type FactorVariantConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type FactorVariantEdge = { __typename: 'FactorVariantEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -2490,21 +2510,21 @@ export type FactorVariantEdge = { /** Fields on a FactorVariant that curators may propose revisions to. */ export type FactorVariantFields = { /** List of aliases or alternate names for the Variant. */ - aliases: Array; + aliases: Array; /** The ID of the Feature this Variant corresponds to. */ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; /** The Variant's name. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** NCI Thesaurus concept ID for this Factor */ ncitId: NullableStringInput; /** List of IDs for the variant types for this Variant */ - variantTypeIds: Array; + variantTypeIds: Array; }; export type FdaCode = { __typename: 'FdaCode'; - code: Scalars['String']; - description: Scalars['String']; + code: Scalars['String']['output']; + description: Scalars['String']['output']; }; /** The Feature that a Variant can belong to */ @@ -2513,26 +2533,26 @@ export type Feature = Commentable & EventOriginObject & EventSubject & Flaggable /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; - description?: Maybe; + description?: Maybe; /** List and filter events for an object */ events: EventConnection; - featureAliases: Array; + featureAliases: Array; featureInstance: FeatureInstance; featureType: FeatureInstanceTypes; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - fullName?: Maybe; - id: Scalars['Int']; + fullName?: Maybe; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2543,39 +2563,39 @@ export type Feature = Commentable & EventOriginObject & EventSubject & Flaggable /** The Feature that a Variant can belong to */ export type FeatureCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type FeatureEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type FeatureFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; @@ -2583,13 +2603,13 @@ export type FeatureFlagsArgs = { /** The Feature that a Variant can belong to */ export type FeatureRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -2597,19 +2617,19 @@ export type FeatureRevisionsArgs = { /** The Feature that a Variant can belong to */ export type FeatureVariantsArgs = { - after?: InputMaybe; - alleleRegistryId?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; category?: InputMaybe; - factorId?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - hasNoVariantType?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + factorId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; - variantTypeIds?: InputMaybe>; + variantTypeIds?: InputMaybe>; }; export enum FeatureDeprecationReason { @@ -2649,30 +2669,30 @@ export enum FeaturesSortColumns { export type FieldName = { __typename: 'FieldName'; /** The user facing representation of the field name. */ - displayName: Scalars['String']; + displayName: Scalars['String']['output']; /** The internal server representation of the field name. */ - name: Scalars['String']; + name: Scalars['String']['output']; }; export type FieldValidationError = { __typename: 'FieldValidationError'; - error: Scalars['String']; - fieldName: Scalars['String']; + error: Scalars['String']['output']; + fieldName: Scalars['String']['output']; }; export type Flag = Commentable & EventOriginObject & EventSubject & { __typename: 'Flag'; /** List and filter comments. */ comments: CommentConnection; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; /** List and filter events for an object */ events: EventConnection; flaggable: Flaggable; flaggingUser: User; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastCommentEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; openActivity: FlagEntityActivity; resolutionActivity?: Maybe; resolvingUser?: Maybe; @@ -2681,26 +2701,26 @@ export type Flag = Commentable & EventOriginObject & EventSubject & { export type FlagCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type FlagEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; @@ -2712,16 +2732,16 @@ export type FlagConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; /** * When filtered on a subject, the total number of flags for that subject, * irregardless of other filters. Returns null when there is no subject. */ - unfilteredCountForSubject?: Maybe; + unfilteredCountForSubject?: Maybe; /** List of all users that have flagged this entity. */ uniqueFlaggingUsers: Array; /** List of all users that have resolved a flag on this entity. */ @@ -2732,38 +2752,38 @@ export type FlagConnection = { export type FlagEdge = { __typename: 'FlagEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type FlagEntityActivity = ActivityInterface & { __typename: 'FlagEntityActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; flag: Flag; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of FlagEntity */ export type FlagEntityInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the problem you observed with this entity. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** The entity to flag, specified by its ID and type. */ subject: FlaggableInput; }; @@ -2772,7 +2792,7 @@ export type FlagEntityInput = { export type FlagEntityPayload = { __typename: 'FlagEntityPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created Flag. */ flag?: Maybe; }; @@ -2784,23 +2804,23 @@ export enum FlagState { /** A CIViC entity that can be flagged for editor attention. */ export type Flaggable = { - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; /** A CIViC entity that can be flagged for editor attention. */ export type FlaggableFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; @@ -2820,7 +2840,7 @@ export type FlaggableInput = { /** The type of the entity to flag. */ entityType: FlaggableEntities; /** The ID of the entity. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; }; /** The Feature that a Variant can belong to */ @@ -2829,28 +2849,28 @@ export type Fusion = Commentable & EventOriginObject & EventSubject & Flaggable /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; - description?: Maybe; + description?: Maybe; /** List and filter events for an object */ events: EventConnection; - featureAliases: Array; + featureAliases: Array; featureInstance: FeatureInstance; featureType: FeatureInstanceTypes; fivePrimeGene?: Maybe; fivePrimePartnerStatus: FusionPartnerStatus; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - fullName?: Maybe; - id: Scalars['Int']; + fullName?: Maybe; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2863,39 +2883,39 @@ export type Fusion = Commentable & EventOriginObject & EventSubject & Flaggable /** The Feature that a Variant can belong to */ export type FusionCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type FusionEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type FusionFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; @@ -2903,13 +2923,13 @@ export type FusionFlagsArgs = { /** The Feature that a Variant can belong to */ export type FusionRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -2917,19 +2937,19 @@ export type FusionRevisionsArgs = { /** The Feature that a Variant can belong to */ export type FusionVariantsArgs = { - after?: InputMaybe; - alleleRegistryId?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; category?: InputMaybe; - factorId?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - hasNoVariantType?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + factorId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; - variantTypeIds?: InputMaybe>; + variantTypeIds?: InputMaybe>; }; /** The connection type for Fusion. */ @@ -2940,18 +2960,18 @@ export type FusionConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type FusionEdge = { __typename: 'FusionEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -2959,17 +2979,17 @@ export type FusionEdge = { /** Fields on a Fusion that curators may propose revisions to. */ export type FusionFields = { /** List of aliases or alternate names for the Fusion. */ - aliases: Array; + aliases: Array; /** The Fusion's description/summary text. */ description: NullableStringInput; /** Source IDs cited by the Fusion's summary. */ - sourceIds: Array; + sourceIds: Array; }; /** The fusion partner's status and gene ID (if applicable) */ export type FusionPartnerInput = { /** The CIViC gene ID of the partner, if known */ - geneId?: InputMaybe; + geneId?: InputMaybe; /** The status of the fusion partner */ partnerStatus: FusionPartnerStatus; }; @@ -2985,7 +3005,7 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; /** List and filter events for an object */ @@ -2994,84 +3014,84 @@ export type FusionVariant = Commentable & EventOriginObject & EventSubject & Fla fivePrimeCoordinates?: Maybe; fivePrimeEndExonCoordinates?: Maybe; fivePrimeStartExonCoordinates?: Maybe; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; fusion: Fusion; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; molecularProfiles: MolecularProfileConnection; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; - singleVariantMolecularProfileId: Scalars['Int']; + singleVariantMolecularProfileId: Scalars['Int']['output']; threePrimeCoordinates?: Maybe; threePrimeEndExonCoordinates?: Maybe; threePrimeStartExonCoordinates?: Maybe; - variantAliases: Array; + variantAliases: Array; variantTypes: Array; - viccCompliantName: Scalars['String']; + viccCompliantName: Scalars['String']['output']; }; export type FusionVariantCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type FusionVariantEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type FusionVariantFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type FusionVariantMolecularProfilesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type FusionVariantRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -3079,26 +3099,26 @@ export type FusionVariantRevisionsArgs = { /** Fields on a FusionVariant that curators may propose revisions to. */ export type FusionVariantFields = { /** List of aliases or alternate names for the Variant. */ - aliases: Array; + aliases: Array; /** The exon coordinates for this Variant. */ coordinates: FusionVariantInput; /** List of IDs for the variant types for this Variant */ - variantTypeIds: Array; + variantTypeIds: Array; }; /** The fields required to create a fusion variant */ export type FusionVariantInput = { - ensemblVersion: Scalars['Int']; - fivePrimeExonEnd?: InputMaybe; - fivePrimeOffset?: InputMaybe; + ensemblVersion: Scalars['Int']['input']; + fivePrimeExonEnd?: InputMaybe; + fivePrimeOffset?: InputMaybe; fivePrimeOffsetDirection?: InputMaybe; - fivePrimeTranscript?: InputMaybe; + fivePrimeTranscript?: InputMaybe; /** The reference build for the genomic coordinates of this Variant. */ referenceBuild?: InputMaybe; - threePrimeExonStart?: InputMaybe; - threePrimeOffset?: InputMaybe; + threePrimeExonStart?: InputMaybe; + threePrimeOffset?: InputMaybe; threePrimeOffsetDirection?: InputMaybe; - threePrimeTranscript?: InputMaybe; + threePrimeTranscript?: InputMaybe; }; /** The Feature that a Variant can belong to */ @@ -3107,28 +3127,28 @@ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; - description?: Maybe; - entrezId: Scalars['Int']; + description?: Maybe; + entrezId: Scalars['Int']['output']; /** List and filter events for an object */ events: EventConnection; - featureAliases: Array; + featureAliases: Array; featureInstance: FeatureInstance; featureType: FeatureInstanceTypes; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - fullName?: Maybe; - id: Scalars['Int']; + fullName?: Maybe; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; - myGeneInfoDetails?: Maybe; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + link: Scalars['String']['output']; + myGeneInfoDetails?: Maybe; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -3139,39 +3159,39 @@ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & /** The Feature that a Variant can belong to */ export type GeneCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type GeneEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** The Feature that a Variant can belong to */ export type GeneFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; @@ -3179,13 +3199,13 @@ export type GeneFlagsArgs = { /** The Feature that a Variant can belong to */ export type GeneRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -3193,19 +3213,19 @@ export type GeneRevisionsArgs = { /** The Feature that a Variant can belong to */ export type GeneVariantsArgs = { - after?: InputMaybe; - alleleRegistryId?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; category?: InputMaybe; - factorId?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - hasNoVariantType?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + factorId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; - variantTypeIds?: InputMaybe>; + variantTypeIds?: InputMaybe>; }; /** The connection type for Gene. */ @@ -3216,18 +3236,18 @@ export type GeneConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type GeneEdge = { __typename: 'GeneEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -3237,7 +3257,7 @@ export type GeneFields = { /** The Gene's description/summary text. */ description: NullableStringInput; /** Source IDs cited by the Gene's summary. */ - sourceIds: Array; + sourceIds: Array; }; export type GeneSearchFilter = { @@ -3254,97 +3274,97 @@ export type GeneSearchFilter = { export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions & { __typename: 'GeneVariant'; - alleleRegistryId?: Maybe; - clinvarIds: Array; + alleleRegistryId?: Maybe; + clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; coordinates?: Maybe; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; /** List and filter events for an object */ events: EventConnection; feature: Feature; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - hgvsDescriptions: Array; - id: Scalars['Int']; + hgvsDescriptions: Array; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; - maneSelectTranscript?: Maybe; + link: Scalars['String']['output']; + maneSelectTranscript?: Maybe; molecularProfiles: MolecularProfileConnection; myVariantInfo?: Maybe; - name: Scalars['String']; - openCravatUrl?: Maybe; - openRevisionCount: Scalars['Int']; + name: Scalars['String']['output']; + openCravatUrl?: Maybe; + openRevisionCount: Scalars['Int']['output']; /** @deprecated The new Fusion variant type means Gene variants no longer have primary and secondary coordinates. Use 'coordinates' instead. */ primaryCoordinates?: Maybe; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; - singleVariantMolecularProfileId: Scalars['Int']; - variantAliases: Array; + singleVariantMolecularProfileId: Scalars['Int']['output']; + variantAliases: Array; variantTypes: Array; }; export type GeneVariantCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type GeneVariantEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type GeneVariantFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type GeneVariantMolecularProfilesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type GeneVariantRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -3357,24 +3377,24 @@ export type GeneVariantConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type GeneVariantCoordinateInput = { - chromosome?: InputMaybe; + chromosome?: InputMaybe; /** The Ensembl database version. */ - ensemblVersion?: InputMaybe; + ensemblVersion?: InputMaybe; /** Reference bases for this variant */ referenceBases: NullableStringInput; /** The reference build for the genomic coordinates of this Variant. */ referenceBuild?: InputMaybe; - representativeTranscript?: InputMaybe; - start?: InputMaybe; - stop?: InputMaybe; + representativeTranscript?: InputMaybe; + start?: InputMaybe; + stop?: InputMaybe; /** Variant bases for this variant */ variantBases: NullableStringInput; }; @@ -3383,7 +3403,7 @@ export type GeneVariantCoordinateInput = { export type GeneVariantEdge = { __typename: 'GeneVariantEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -3391,24 +3411,24 @@ export type GeneVariantEdge = { /** Fields on a GeneVariant that curators may propose revisions to. */ export type GeneVariantFields = { /** List of aliases or alternate names for the Variant. */ - aliases: Array; + aliases: Array; /** List of ClinVar IDs for the Variant. */ clinvarIds: ClinvarInput; /** The genomic coordinates for this Variant. */ coordinates: GeneVariantCoordinateInput; /** The ID of the Feature this Variant corresponds to. */ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; /** List of HGVS descriptions for the Variant. */ - hgvsDescriptions: Array; + hgvsDescriptions: Array; /** The Variant's name. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** List of IDs for the variant types for this Variant */ - variantTypeIds: Array; + variantTypeIds: Array; }; export type IntSearchInput = { comparisonOperator: IntSearchOperator; - value: Scalars['Int']; + value: Scalars['Int']['input']; }; export enum IntSearchOperator { @@ -3423,43 +3443,43 @@ export enum IntSearchOperator { export type LeaderboardOrganization = { __typename: 'LeaderboardOrganization'; - actionCount: Scalars['Int']; - description: Scalars['String']; - eventCount: Scalars['Int']; + actionCount: Scalars['Int']['output']; + description: Scalars['String']['output']; + eventCount: Scalars['Int']['output']; events: EventConnection; - id: Scalars['Int']; - memberCount: Scalars['Int']; + id: Scalars['Int']['output']; + memberCount: Scalars['Int']['output']; members: UserConnection; - mostRecentActivityTimestamp?: Maybe; - name: Scalars['String']; + mostRecentActivityTimestamp?: Maybe; + name: Scalars['String']['output']; orgAndSuborgsStatsHash: Stats; orgStatsHash: Stats; - profileImagePath?: Maybe; - rank: Scalars['Int']; + profileImagePath?: Maybe; + rank: Scalars['Int']['output']; ranks: Ranks; subGroups: Array; - url: Scalars['String']; + url: Scalars['String']['output']; }; export type LeaderboardOrganizationEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type LeaderboardOrganizationMembersArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type LeaderboardOrganizationProfileImagePathArgs = { - size?: InputMaybe; + size?: InputMaybe; }; /** The connection type for LeaderboardOrganization. */ @@ -3470,82 +3490,82 @@ export type LeaderboardOrganizationConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type LeaderboardOrganizationEdge = { __typename: 'LeaderboardOrganizationEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type LeaderboardRank = { __typename: 'LeaderboardRank'; - actionCount: Scalars['Int']; - rank: Scalars['Int']; + actionCount: Scalars['Int']['output']; + rank: Scalars['Int']['output']; }; export type LeaderboardUser = { __typename: 'LeaderboardUser'; - actionCount: Scalars['Int']; + actionCount: Scalars['Int']['output']; areaOfExpertise?: Maybe; - bio?: Maybe; + bio?: Maybe; country?: Maybe; - displayName: Scalars['String']; - email?: Maybe; + displayName: Scalars['String']['output']; + email?: Maybe; events: EventConnection; - facebookProfile?: Maybe; - id: Scalars['Int']; - linkedinProfile?: Maybe; - mostRecentActivityTimestamp?: Maybe; + facebookProfile?: Maybe; + id: Scalars['Int']['output']; + linkedinProfile?: Maybe; + mostRecentActivityTimestamp?: Maybe; mostRecentConflictOfInterestStatement?: Maybe; mostRecentEvent?: Maybe; - mostRecentOrganizationId?: Maybe; - name?: Maybe; + mostRecentOrganizationId?: Maybe; + name?: Maybe; /** Filterable list of notifications for the logged in user. */ notifications?: Maybe; - orcid?: Maybe; + orcid?: Maybe; organizations: Array; - profileImagePath?: Maybe; - rank: Scalars['Int']; + profileImagePath?: Maybe; + rank: Scalars['Int']['output']; ranks: Ranks; role: UserRole; statsHash: Stats; - twitterHandle?: Maybe; - url?: Maybe; - username: Scalars['String']; + twitterHandle?: Maybe; + url?: Maybe; + username: Scalars['String']['output']; }; export type LeaderboardUserEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type LeaderboardUserNotificationsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - includeSeen?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + includeSeen?: InputMaybe; + last?: InputMaybe; notificationType?: InputMaybe; - subscriptionId?: InputMaybe; + subscriptionId?: InputMaybe; }; export type LeaderboardUserProfileImagePathArgs = { - size?: InputMaybe; + size?: InputMaybe; }; /** The connection type for LeaderboardUser. */ @@ -3556,92 +3576,92 @@ export type LeaderboardUserConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type LeaderboardUserEdge = { __typename: 'LeaderboardUserEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; export type LinkableDisease = { __typename: 'LinkableDisease'; - deprecated: Scalars['Boolean']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + deprecated: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type LinkableFeature = { __typename: 'LinkableFeature'; - deprecated: Scalars['Boolean']; - flagged: Scalars['Boolean']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + deprecated: Scalars['Boolean']['output']; + flagged: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type LinkableTherapy = { __typename: 'LinkableTherapy'; - deprecated: Scalars['Boolean']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + deprecated: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type LinkableVariant = { __typename: 'LinkableVariant'; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; feature?: Maybe; - flagged: Scalars['Boolean']; - id: Scalars['Int']; - link: Scalars['String']; - matchText?: Maybe; - name: Scalars['String']; + flagged: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + matchText?: Maybe; + name: Scalars['String']['output']; }; export type LinkableVariantType = { __typename: 'LinkableVariantType'; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type LinkoutData = { __typename: 'LinkoutData'; currentValue: ModeratedField; diffValue: ModeratedFieldDiff; - name: Scalars['String']; + name: Scalars['String']['output']; suggestedValue: ModeratedField; }; export type ModerateAssertionActivity = ActivityInterface & { __typename: 'ModerateAssertionActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of ModerateAssertion */ export type ModerateAssertionInput = { /** ID of the Assertion to moderate */ - assertionId: Scalars['Int']; + assertionId: Scalars['Int']['input']; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The desired status of the Assertion */ newStatus: EvidenceStatus; /** @@ -3650,7 +3670,7 @@ export type ModerateAssertionInput = { * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of ModerateAssertion. */ @@ -3659,28 +3679,28 @@ export type ModerateAssertionPayload = { /** The moderated Assertion */ assertion: Assertion; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; }; export type ModerateEvidenceItemActivity = ActivityInterface & { __typename: 'ModerateEvidenceItemActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of ModerateEvidenceItem */ export type ModerateEvidenceItemInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** ID of the Evidence Item to moderate */ - evidenceItemId: Scalars['Int']; + evidenceItemId: Scalars['Int']['input']; /** The desired status of the Evidence Item */ newStatus: EvidenceStatus; /** @@ -3689,14 +3709,14 @@ export type ModerateEvidenceItemInput = { * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of ModerateEvidenceItem. */ export type ModerateEvidenceItemPayload = { __typename: 'ModerateEvidenceItemPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The moderated Evidence Item */ evidenceItem: EvidenceItem; }; @@ -3724,20 +3744,20 @@ export type ModeratedInput = { /** Type of moderated entity. */ entityType: ModeratedEntities; /** ID of moderated entity. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type ModeratedObjectField = { __typename: 'ModeratedObjectField'; - deleted: Scalars['Boolean']; - deprecated?: Maybe; - displayName?: Maybe; - displayType?: Maybe; - entityType: Scalars['String']; + deleted: Scalars['Boolean']['output']; + deprecated?: Maybe; + displayName?: Maybe; + displayType?: Maybe; + entityType: Scalars['String']['output']; feature?: Maybe; - flagged?: Maybe; - id: Scalars['Int']; - link?: Maybe; + flagged?: Maybe; + id: Scalars['Int']['output']; + link?: Maybe; }; export type MolecularProfile = Commentable & EventOriginObject & EventSubject & Flaggable & WithRevisions & { @@ -3748,35 +3768,35 @@ export type MolecularProfile = Commentable & EventOriginObject & EventSubject & comments: CommentConnection; complexMolecularProfileCreationActivity?: Maybe; complexMolecularProfileDeprecationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecatedVariants: Array; deprecationReason?: Maybe; - description?: Maybe; + description?: Maybe; /** List and filter events for an object */ events: EventConnection; evidenceCountsByStatus: EvidenceItemsByStatus; evidenceCountsByType: EvidenceItemsByType; /** The collection of evidence items associated with this molecular profile. */ evidenceItems: EvidenceItemConnection; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; - isComplex: Scalars['Boolean']; - isMultiVariant: Scalars['Boolean']; + id: Scalars['Int']['output']; + isComplex: Scalars['Boolean']['output']; + isMultiVariant: Scalars['Boolean']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; - molecularProfileAliases: Array; - molecularProfileScore: Scalars['Float']; + link: Scalars['String']['output']; + molecularProfileAliases: Array; + molecularProfileScore: Scalars['Float']['output']; /** The human readable name of this profile, including gene and variant names. */ - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** The profile name with its constituent parts as objects, suitable for building tags. */ parsedName: Array; /** The profile name as stored, with ids rather than names. */ - rawName: Scalars['String']; + rawName: Scalars['String']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -3788,82 +3808,82 @@ export type MolecularProfile = Commentable & EventOriginObject & EventSubject & export type MolecularProfileAssertionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - includeRejected?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + includeRejected?: InputMaybe; + last?: InputMaybe; }; export type MolecularProfileCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type MolecularProfileEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type MolecularProfileEvidenceItemsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - includeRejected?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + includeRejected?: InputMaybe; + last?: InputMaybe; }; export type MolecularProfileFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type MolecularProfileRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; export type MolecularProfileAlias = { __typename: 'MolecularProfileAlias'; - name: Scalars['String']; + name: Scalars['String']['output']; }; /** A taggable/linkable component of a molecular profile */ export type MolecularProfileComponent = { - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type MolecularProfileComponentInput = { @@ -3883,11 +3903,11 @@ export type MolecularProfileConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export enum MolecularProfileDeprecationReason { @@ -3918,7 +3938,7 @@ export enum MolecularProfileDisplayFilter { export type MolecularProfileEdge = { __typename: 'MolecularProfileEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -3926,11 +3946,11 @@ export type MolecularProfileEdge = { /** Fields on a MolecularProfile that curators may propose revisions to. */ export type MolecularProfileFields = { /** List of aliases or alternate names for the MolecularProfile. */ - aliases: Array; + aliases: Array; /** The MolecularProfile's description/summary text. */ description: NullableStringInput; /** Source IDs cited by the MolecularProfile's summary. */ - sourceIds: Array; + sourceIds: Array; }; export type MolecularProfileNamePreview = { @@ -3949,7 +3969,7 @@ export type MolecularProfileSegment = Feature | MolecularProfileTextSegment | Va export type MolecularProfileTextSegment = { __typename: 'MolecularProfileTextSegment'; - text: Scalars['String']; + text: Scalars['String']['output']; }; export type MolecularProfilesSort = { @@ -4268,112 +4288,112 @@ export type MutationUpdateSourceSuggestionStatusArgs = { export type MyChemInfo = { __typename: 'MyChemInfo'; - chebiDefinition?: Maybe; - chebiId?: Maybe; - chemblId?: Maybe; - chemblMoleculeType?: Maybe; - drugbankId?: Maybe; + chebiDefinition?: Maybe; + chebiId?: Maybe; + chemblId?: Maybe; + chemblMoleculeType?: Maybe; + drugbankId?: Maybe; fdaEpcCodes: Array; fdaMoaCodes: Array; - firstApproval?: Maybe; - inchikey?: Maybe; - indications: Array; - pharmgkbId?: Maybe; - pubchemCid?: Maybe; - rxnorm?: Maybe; + firstApproval?: Maybe; + inchikey?: Maybe; + indications: Array; + pharmgkbId?: Maybe; + pubchemCid?: Maybe; + rxnorm?: Maybe; }; export type MyDiseaseInfo = { __typename: 'MyDiseaseInfo'; - diseaseOntologyExactSynonyms: Array; - diseaseOntologyRelatedSynonyms: Array; - doDef?: Maybe; - doDefCitations: Array; - icd10?: Maybe; - icdo?: Maybe; - mesh?: Maybe; - mondoDef?: Maybe; - mondoId?: Maybe; - ncit: Array; - omim?: Maybe; + diseaseOntologyExactSynonyms: Array; + diseaseOntologyRelatedSynonyms: Array; + doDef?: Maybe; + doDefCitations: Array; + icd10?: Maybe; + icdo?: Maybe; + mesh?: Maybe; + mondoDef?: Maybe; + mondoId?: Maybe; + ncit: Array; + omim?: Maybe; }; export type MyVariantInfo = { __typename: 'MyVariantInfo'; - caddConsequence: Array; - caddDetail: Array; - caddPhred?: Maybe; - caddScore?: Maybe; - clinvarClinicalSignificance: Array; - clinvarHgvsCoding: Array; - clinvarHgvsGenomic: Array; - clinvarHgvsNonCoding: Array; - clinvarHgvsProtein: Array; - clinvarId?: Maybe; - clinvarOmim?: Maybe; - cosmicId?: Maybe; - dbnsfpInterproDomain: Array; - dbsnpRsid?: Maybe; - eglClass?: Maybe; - eglHgvs: Array; - eglProtein?: Maybe; - eglTranscript?: Maybe; - exacAlleleCount?: Maybe; - exacAlleleFrequency?: Maybe; - exacAlleleNumber?: Maybe; - fathmmMklPrediction?: Maybe; - fathmmMklScore?: Maybe; - fathmmPrediction: Array; - fathmmScore: Array; - fitconsScore?: Maybe; - gerp?: Maybe; - gnomadExomeAlleleCount?: Maybe; - gnomadExomeAlleleFrequency?: Maybe; - gnomadExomeAlleleNumber?: Maybe; - gnomadExomeFilter?: Maybe; - gnomadGenomeAlleleCount?: Maybe; - gnomadGenomeAlleleFrequency?: Maybe; - gnomadGenomeAlleleNumber?: Maybe; - gnomadGenomeFilter?: Maybe; - lrtPrediction?: Maybe; - lrtScore?: Maybe; - metalrPrediction?: Maybe; - metalrScore?: Maybe; - metasvmPrediction?: Maybe; - metasvmScore?: Maybe; - mutationassessorPrediction: Array; - mutationassessorScore: Array; - mutationtasterPrediction: Array; - mutationtasterScore: Array; - myVariantInfoId: Scalars['String']; - phastcons30way?: Maybe; - phastcons100way?: Maybe; - phyloP30way?: Maybe; - phyloP100way?: Maybe; - polyphen2HdivPrediction: Array; - polyphen2HdivScore: Array; - polyphen2HvarPrediction: Array; - polyphen2HvarScore: Array; - proveanPrediction: Array; - proveanScore: Array; - revelScore?: Maybe>; - siftPrediction: Array; - siftScore: Array; - siphy?: Maybe; - snpeffSnpEffect: Array; - snpeffSnpImpact: Array; + caddConsequence: Array; + caddDetail: Array; + caddPhred?: Maybe; + caddScore?: Maybe; + clinvarClinicalSignificance: Array; + clinvarHgvsCoding: Array; + clinvarHgvsGenomic: Array; + clinvarHgvsNonCoding: Array; + clinvarHgvsProtein: Array; + clinvarId?: Maybe; + clinvarOmim?: Maybe; + cosmicId?: Maybe; + dbnsfpInterproDomain: Array; + dbsnpRsid?: Maybe; + eglClass?: Maybe; + eglHgvs: Array; + eglProtein?: Maybe; + eglTranscript?: Maybe; + exacAlleleCount?: Maybe; + exacAlleleFrequency?: Maybe; + exacAlleleNumber?: Maybe; + fathmmMklPrediction?: Maybe; + fathmmMklScore?: Maybe; + fathmmPrediction: Array; + fathmmScore: Array; + fitconsScore?: Maybe; + gerp?: Maybe; + gnomadExomeAlleleCount?: Maybe; + gnomadExomeAlleleFrequency?: Maybe; + gnomadExomeAlleleNumber?: Maybe; + gnomadExomeFilter?: Maybe; + gnomadGenomeAlleleCount?: Maybe; + gnomadGenomeAlleleFrequency?: Maybe; + gnomadGenomeAlleleNumber?: Maybe; + gnomadGenomeFilter?: Maybe; + lrtPrediction?: Maybe; + lrtScore?: Maybe; + metalrPrediction?: Maybe; + metalrScore?: Maybe; + metasvmPrediction?: Maybe; + metasvmScore?: Maybe; + mutationassessorPrediction: Array; + mutationassessorScore: Array; + mutationtasterPrediction: Array; + mutationtasterScore: Array; + myVariantInfoId: Scalars['String']['output']; + phastcons30way?: Maybe; + phastcons100way?: Maybe; + phyloP30way?: Maybe; + phyloP100way?: Maybe; + polyphen2HdivPrediction: Array; + polyphen2HdivScore: Array; + polyphen2HvarPrediction: Array; + polyphen2HvarScore: Array; + proveanPrediction: Array; + proveanScore: Array; + revelScore?: Maybe>; + siftPrediction: Array; + siftScore: Array; + siphy?: Maybe; + snpeffSnpEffect: Array; + snpeffSnpImpact: Array; }; export type NccnGuideline = { __typename: 'NccnGuideline'; - id: Scalars['Int']; - name: Scalars['String']; + id: Scalars['Int']['output']; + name: Scalars['String']['output']; }; export type NcitDefinition = { __typename: 'NcitDefinition'; - definition: Scalars['String']; - source: Scalars['String']; + definition: Scalars['String']['output']; + source: Scalars['String']['output']; }; export type NcitDetails = { @@ -4384,21 +4404,21 @@ export type NcitDetails = { export type NcitSynonym = { __typename: 'NcitSynonym'; - name: Scalars['String']; - source: Scalars['String']; + name: Scalars['String']['output']; + source: Scalars['String']['output']; }; export type Notification = { __typename: 'Notification'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; event: Event; - id: Scalars['Int']; + id: Scalars['Int']['output']; notifiedUser: User; originatingUser: User; - seen: Scalars['Boolean']; + seen: Scalars['Boolean']['output']; subscription?: Maybe; type: NotificationReason; - updatedAt: Scalars['ISO8601DateTime']; + updatedAt: Scalars['ISO8601DateTime']['output']; }; /** The connection type for Notification. */ @@ -4419,20 +4439,20 @@ export type NotificationConnection = { /** Users who have performed an action (other than a mention) that created a notification. */ originatingUsers: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; /** Count of unread notifications */ - unreadCount: Scalars['Int']; + unreadCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type NotificationEdge = { __typename: 'NotificationEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -4450,7 +4470,7 @@ export enum NotificationReason { */ export type NullableAmpLevelTypeInput = { /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; + unset?: InputMaybe; /** The desired value for the field. Mutually exclusive with unset. */ value?: InputMaybe; }; @@ -4463,7 +4483,7 @@ export type NullableAmpLevelTypeInput = { */ export type NullableAreaOfExpertiseTypeInput = { /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; + unset?: InputMaybe; /** The desired value for the field. Mutually exclusive with unset. */ value?: InputMaybe; }; @@ -4476,9 +4496,9 @@ export type NullableAreaOfExpertiseTypeInput = { */ export type NullableBooleanInput = { /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; + unset?: InputMaybe; /** The desired value for the field. Mutually exclusive with unset. */ - value?: InputMaybe; + value?: InputMaybe; }; /** @@ -4489,9 +4509,9 @@ export type NullableBooleanInput = { */ export type NullableIdInput = { /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; + unset?: InputMaybe; /** The desired value for the field. Mutually exclusive with unset. */ - value?: InputMaybe; + value?: InputMaybe; }; /** @@ -4502,9 +4522,9 @@ export type NullableIdInput = { */ export type NullableIntInput = { /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; + unset?: InputMaybe; /** The desired value for the field. Mutually exclusive with unset. */ - value?: InputMaybe; + value?: InputMaybe; }; /** @@ -4515,9 +4535,9 @@ export type NullableIntInput = { */ export type NullableStringInput = { /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; + unset?: InputMaybe; /** The desired value for the field. Mutually exclusive with unset. */ - value?: InputMaybe; + value?: InputMaybe; }; /** @@ -4528,7 +4548,7 @@ export type NullableStringInput = { */ export type NullableTherapyInteractionTypeInput = { /** Set to true if you wish to set the field's value to null. */ - unset?: InputMaybe; + unset?: InputMaybe; /** The desired value for the field. Mutually exclusive with unset. */ value?: InputMaybe; }; @@ -4549,51 +4569,51 @@ export type ObjectFieldDiff = { export type Organization = { __typename: 'Organization'; - description: Scalars['String']; - eventCount: Scalars['Int']; + description: Scalars['String']['output']; + eventCount: Scalars['Int']['output']; events: EventConnection; - id: Scalars['Int']; - memberCount: Scalars['Int']; + id: Scalars['Int']['output']; + memberCount: Scalars['Int']['output']; members: UserConnection; - mostRecentActivityTimestamp?: Maybe; - name: Scalars['String']; + mostRecentActivityTimestamp?: Maybe; + name: Scalars['String']['output']; orgAndSuborgsStatsHash: Stats; orgStatsHash: Stats; - profileImagePath?: Maybe; + profileImagePath?: Maybe; ranks: Ranks; subGroups: Array; - url: Scalars['String']; + url: Scalars['String']['output']; }; export type OrganizationEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type OrganizationMembersArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type OrganizationProfileImagePathArgs = { - size?: InputMaybe; + size?: InputMaybe; }; /** Filter on organization id and whether or not to include the organization's subgroups */ export type OrganizationFilter = { /** The organization ID. */ - id?: InputMaybe; + id?: InputMaybe; /** Whether or not to include the organization's subgroup. */ - includeSubgroups?: InputMaybe; + includeSubgroups?: InputMaybe; /** The organization name. */ - name?: InputMaybe; + name?: InputMaybe; }; export type OrganizationLeaderboards = { @@ -4606,41 +4626,41 @@ export type OrganizationLeaderboards = { export type OrganizationLeaderboardsCommentsLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; window?: InputMaybe; }; export type OrganizationLeaderboardsModerationLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; window?: InputMaybe; }; export type OrganizationLeaderboardsRevisionsLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; window?: InputMaybe; }; export type OrganizationLeaderboardsSubmissionsLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; window?: InputMaybe; }; @@ -4663,36 +4683,36 @@ export enum OrganizationSortColumns { export type PageInfo = { __typename: 'PageInfo'; /** When paginating forwards, the cursor to continue. */ - endCursor?: Maybe; + endCursor?: Maybe; /** When paginating forwards, are there more items? */ - hasNextPage: Scalars['Boolean']; + hasNextPage: Scalars['Boolean']['output']; /** When paginating backwards, are there more items? */ - hasPreviousPage: Scalars['Boolean']; + hasPreviousPage: Scalars['Boolean']['output']; /** When paginating backwards, the cursor to continue. */ - startCursor?: Maybe; + startCursor?: Maybe; }; export type Phenotype = { __typename: 'Phenotype'; - description?: Maybe; - hpoId: Scalars['String']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - url: Scalars['String']; + description?: Maybe; + hpoId: Scalars['String']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + url: Scalars['String']['output']; }; export type PhenotypePopover = { __typename: 'PhenotypePopover'; - assertionCount: Scalars['Int']; - description?: Maybe; - evidenceItemCount: Scalars['Int']; - hpoId: Scalars['String']; - id: Scalars['Int']; - link: Scalars['String']; - molecularProfileCount: Scalars['Int']; - name: Scalars['String']; - url: Scalars['String']; + assertionCount: Scalars['Int']['output']; + description?: Maybe; + evidenceItemCount: Scalars['Int']['output']; + hpoId: Scalars['String']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + molecularProfileCount: Scalars['Int']['output']; + name: Scalars['String']['output']; + url: Scalars['String']['output']; }; export type PhenotypeSort = { @@ -4801,7 +4821,7 @@ export type Query = { previewCommentText: Array; previewMolecularProfileName: MolecularProfileNamePreview; /** Check to see if a citation ID for a source not already in CIViC exists in an external database. */ - remoteCitation?: Maybe; + remoteCitation?: Maybe; /** Find a revision by CIViC ID */ revision?: Maybe; /** List and filter revisions. */ @@ -4858,206 +4878,206 @@ export type Query = { export type QueryAcmgCodeArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryAcmgCodesTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryActivitiesArgs = { activityType?: InputMaybe>; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - includeAutomatedEvents?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + includeAutomatedEvents?: InputMaybe; + last?: InputMaybe; mode?: InputMaybe; - occuredAfter?: InputMaybe; - occuredBefore?: InputMaybe; - organizationId?: InputMaybe>; + occuredAfter?: InputMaybe; + occuredBefore?: InputMaybe; + organizationId?: InputMaybe>; sortBy?: InputMaybe; subject?: InputMaybe>; subjectType?: InputMaybe>; - userId?: InputMaybe>; + userId?: InputMaybe>; }; export type QueryActivityArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryAssertionArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryAssertionsArgs = { - after?: InputMaybe; + after?: InputMaybe; ampLevel?: InputMaybe; assertionDirection?: InputMaybe; assertionType?: InputMaybe; - before?: InputMaybe; - diseaseId?: InputMaybe; - diseaseName?: InputMaybe; - evidenceId?: InputMaybe; - first?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - molecularProfileId?: InputMaybe; - molecularProfileName?: InputMaybe; - organizationId?: InputMaybe; - phenotypeId?: InputMaybe; + before?: InputMaybe; + diseaseId?: InputMaybe; + diseaseName?: InputMaybe; + evidenceId?: InputMaybe; + first?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + molecularProfileId?: InputMaybe; + molecularProfileName?: InputMaybe; + organizationId?: InputMaybe; + phenotypeId?: InputMaybe; significance?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; - summary?: InputMaybe; - therapyId?: InputMaybe; - therapyName?: InputMaybe; - userId?: InputMaybe; - variantId?: InputMaybe; - variantName?: InputMaybe; + summary?: InputMaybe; + therapyId?: InputMaybe; + therapyName?: InputMaybe; + userId?: InputMaybe; + variantId?: InputMaybe; + variantName?: InputMaybe; }; export type QueryBrowseDiseasesArgs = { - after?: InputMaybe; - before?: InputMaybe; - diseaseAlias?: InputMaybe; - doid?: InputMaybe; - featureName?: InputMaybe; - first?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + diseaseAlias?: InputMaybe; + doid?: InputMaybe; + featureName?: InputMaybe; + first?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; }; export type QueryBrowseFeaturesArgs = { - after?: InputMaybe; - before?: InputMaybe; - diseaseName?: InputMaybe; - featureAlias?: InputMaybe; - featureFullName?: InputMaybe; - featureName?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + diseaseName?: InputMaybe; + featureAlias?: InputMaybe; + featureFullName?: InputMaybe; + featureName?: InputMaybe; featureType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; - therapyName?: InputMaybe; + therapyName?: InputMaybe; }; export type QueryBrowseMolecularProfilesArgs = { - after?: InputMaybe; - before?: InputMaybe; - diseaseName?: InputMaybe; - featureName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - molecularProfileAlias?: InputMaybe; - molecularProfileName?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + diseaseName?: InputMaybe; + featureName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + molecularProfileAlias?: InputMaybe; + molecularProfileName?: InputMaybe; sortBy?: InputMaybe; - therapyName?: InputMaybe; - variantId?: InputMaybe; - variantName?: InputMaybe; + therapyName?: InputMaybe; + variantId?: InputMaybe; + variantName?: InputMaybe; }; export type QueryBrowseSourcesArgs = { - after?: InputMaybe; - author?: InputMaybe; - before?: InputMaybe; - citationId?: InputMaybe; - clinicalTrialId?: InputMaybe; - first?: InputMaybe; - id?: InputMaybe; - journal?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; - openAccess?: InputMaybe; + after?: InputMaybe; + author?: InputMaybe; + before?: InputMaybe; + citationId?: InputMaybe; + clinicalTrialId?: InputMaybe; + first?: InputMaybe; + id?: InputMaybe; + journal?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; + openAccess?: InputMaybe; sortBy?: InputMaybe; sourceType?: InputMaybe; - year?: InputMaybe; + year?: InputMaybe; }; export type QueryBrowseVariantGroupsArgs = { - after?: InputMaybe; - before?: InputMaybe; - featureNames?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + featureNames?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; - variantNames?: InputMaybe; + variantNames?: InputMaybe; }; export type QueryBrowseVariantsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; category?: InputMaybe; - diseaseName?: InputMaybe; - featureName?: InputMaybe; - first?: InputMaybe; - hasNoVariantType?: InputMaybe; - last?: InputMaybe; + diseaseName?: InputMaybe; + featureName?: InputMaybe; + first?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; sortBy?: InputMaybe; - therapyName?: InputMaybe; - variantAlias?: InputMaybe; - variantGroupId?: InputMaybe; - variantName?: InputMaybe; - variantTypeId?: InputMaybe; - variantTypeName?: InputMaybe; + therapyName?: InputMaybe; + variantAlias?: InputMaybe; + variantGroupId?: InputMaybe; + variantName?: InputMaybe; + variantTypeId?: InputMaybe; + variantTypeName?: InputMaybe; }; export type QueryClingenCodeArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryClingenCodesTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryClinicalTrialArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryClinicalTrialsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; - nctId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; + nctId?: InputMaybe; sortBy?: InputMaybe; }; export type QueryCommentArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; subject?: InputMaybe; }; @@ -5069,231 +5089,231 @@ export type QueryContributorsArgs = { export type QueryDiseaseArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryDiseasePopoverArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryDiseaseTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryEntityTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - includeAutomatedEvents?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + includeAutomatedEvents?: InputMaybe; + last?: InputMaybe; mode?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; subject?: InputMaybe; }; export type QueryEvidenceItemArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryEvidenceItemsArgs = { - after?: InputMaybe; - assertionId?: InputMaybe; - before?: InputMaybe; - clinicalTrialId?: InputMaybe; - description?: InputMaybe; - diseaseId?: InputMaybe; - diseaseName?: InputMaybe; + after?: InputMaybe; + assertionId?: InputMaybe; + before?: InputMaybe; + clinicalTrialId?: InputMaybe; + description?: InputMaybe; + diseaseId?: InputMaybe; + diseaseName?: InputMaybe; evidenceDirection?: InputMaybe; evidenceLevel?: InputMaybe; - evidenceRating?: InputMaybe; + evidenceRating?: InputMaybe; evidenceType?: InputMaybe; - first?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - molecularProfileId?: InputMaybe; - molecularProfileName?: InputMaybe; - organizationId?: InputMaybe; - phenotypeId?: InputMaybe; + first?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + molecularProfileId?: InputMaybe; + molecularProfileName?: InputMaybe; + organizationId?: InputMaybe; + phenotypeId?: InputMaybe; significance?: InputMaybe; sortBy?: InputMaybe; - sourceId?: InputMaybe; + sourceId?: InputMaybe; status?: InputMaybe; - therapyId?: InputMaybe; - therapyName?: InputMaybe; - userId?: InputMaybe; - variantId?: InputMaybe; + therapyId?: InputMaybe; + therapyName?: InputMaybe; + userId?: InputMaybe; + variantId?: InputMaybe; variantOrigin?: InputMaybe; }; export type QueryFactorsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe>; - ncitIt?: InputMaybe>; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe>; + ncitIt?: InputMaybe>; }; export type QueryFeatureArgs = { - id?: InputMaybe; + id?: InputMaybe; }; export type QueryFeatureTypeaheadArgs = { featureType?: InputMaybe; - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryFlagArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; flaggable?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type QueryFusionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - entrezIds?: InputMaybe>; - entrezSymbols?: InputMaybe>; - first?: InputMaybe; - genePartnerId?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + entrezIds?: InputMaybe>; + entrezSymbols?: InputMaybe>; + first?: InputMaybe; + genePartnerId?: InputMaybe; + last?: InputMaybe; }; export type QueryGeneArgs = { - entrezSymbol?: InputMaybe; - id?: InputMaybe; + entrezSymbol?: InputMaybe; + id?: InputMaybe; }; export type QueryGenesArgs = { - after?: InputMaybe; - before?: InputMaybe; - entrezIds?: InputMaybe>; - entrezSymbols?: InputMaybe>; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + entrezIds?: InputMaybe>; + entrezSymbols?: InputMaybe>; + first?: InputMaybe; + last?: InputMaybe; }; export type QueryMolecularProfileArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryMolecularProfilesArgs = { - after?: InputMaybe; - alleleRegistryId?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; evidenceStatusFilter?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; - variantId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; + variantId?: InputMaybe; }; export type QueryNccnGuidelineArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryNccnGuidelinesTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryNotificationsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - includeRead?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + includeRead?: InputMaybe; + last?: InputMaybe; notificationReason?: InputMaybe; - organizationId?: InputMaybe; + organizationId?: InputMaybe; originatingObject?: InputMaybe; - originatingUserId?: InputMaybe; - subscriptionId?: InputMaybe; + originatingUserId?: InputMaybe; + subscriptionId?: InputMaybe; }; export type QueryOrganizationArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryOrganizationsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; }; export type QueryPhenotypeArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryPhenotypePopoverArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryPhenotypeTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryPhenotypesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - hpoId?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + hpoId?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; }; export type QueryPreviewCommentTextArgs = { - commentText: Scalars['String']; + commentText: Scalars['String']['input']; }; @@ -5303,25 +5323,25 @@ export type QueryPreviewMolecularProfileNameArgs = { export type QueryRemoteCitationArgs = { - citationId: Scalars['String']; + citationId: Scalars['String']['input']; sourceType: SourceSource; }; export type QueryRevisionArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - resolvingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + resolvingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; subject?: InputMaybe; @@ -5329,61 +5349,61 @@ export type QueryRevisionsArgs = { export type QuerySearchArgs = { - highlightMatches?: InputMaybe; - query: Scalars['String']; + highlightMatches?: InputMaybe; + query: Scalars['String']['input']; types?: InputMaybe>; }; export type QuerySearchByPermalinkArgs = { - permalinkId: Scalars['String']; + permalinkId: Scalars['String']['input']; }; export type QuerySearchGenesArgs = { - createPermalink?: InputMaybe; + createPermalink?: InputMaybe; query: GeneSearchFilter; }; export type QuerySourceArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QuerySourcePopoverArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QuerySourceSuggestionValuesArgs = { - diseaseId?: InputMaybe; - molecularProfileId?: InputMaybe; - sourceId?: InputMaybe; + diseaseId?: InputMaybe; + molecularProfileId?: InputMaybe; + sourceId?: InputMaybe; }; export type QuerySourceSuggestionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - citation?: InputMaybe; - citationId?: InputMaybe; - comment?: InputMaybe; - diseaseName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - molecularProfileName?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + citation?: InputMaybe; + citationId?: InputMaybe; + comment?: InputMaybe; + diseaseName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + molecularProfileName?: InputMaybe; sortBy?: InputMaybe; - sourceId?: InputMaybe; + sourceId?: InputMaybe; sourceType?: InputMaybe; status?: InputMaybe; - submitter?: InputMaybe; - submitterId?: InputMaybe; + submitter?: InputMaybe; + submitterId?: InputMaybe; }; export type QuerySourceTypeaheadArgs = { - citationId: Scalars['String']; + citationId: Scalars['String']['input']; sourceType: SourceSource; }; @@ -5394,128 +5414,128 @@ export type QuerySubscriptionForEntityArgs = { export type QueryTherapiesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; - ncitId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; + ncitId?: InputMaybe; sortBy?: InputMaybe; - therapyAlias?: InputMaybe; + therapyAlias?: InputMaybe; }; export type QueryTherapyArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryTherapyPopoverArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryTherapyTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryUserArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryUserTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryUsersArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; organization?: InputMaybe; role?: InputMaybe; sortBy?: InputMaybe; - username?: InputMaybe; + username?: InputMaybe; }; export type QueryValidateRevisionsForAcceptanceArgs = { - revisionIds: Array; + revisionIds: Array; }; export type QueryVariantArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryVariantGroupArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryVariantGroupsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type QueryVariantTypeArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryVariantTypePopoverArgs = { - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type QueryVariantTypeTypeaheadArgs = { - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }; export type QueryVariantTypesArgs = { - after?: InputMaybe; - before?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - id?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; - soid?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + id?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; + soid?: InputMaybe; sortBy?: InputMaybe; }; export type QueryVariantsArgs = { - after?: InputMaybe; - alleleRegistryId?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; category?: InputMaybe; - factorId?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - hasNoVariantType?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + factorId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; - variantTypeIds?: InputMaybe>; + variantTypeIds?: InputMaybe>; }; export type QueryVariantsTypeaheadArgs = { - featureId?: InputMaybe; - queryTerm: Scalars['String']; + featureId?: InputMaybe; + queryTerm: Scalars['String']['input']; }; export type Ranks = { @@ -5539,82 +5559,82 @@ export enum ReferenceBuild { export type RejectRevisionsActivity = ActivityInterface & { __typename: 'RejectRevisionsActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; revisions: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of RejectRevisions */ export type RejectRevisionsInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text explaining the reasoning for rejecting this Revision. Will be attached as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** A list of IDs of the Revisions to reject. */ - ids?: InputMaybe>; + ids?: InputMaybe>; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** The ID of a revision set. */ - revisionSetId?: InputMaybe; + revisionSetId?: InputMaybe; }; /** Autogenerated return type of RejectRevisions. */ export type RejectRevisionsPayload = { __typename: 'RejectRevisionsPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The rejected Revisions. */ revisions: Array; }; export type ResolveFlagActivity = ActivityInterface & { __typename: 'ResolveFlagActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; flag: Flag; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of ResolveFlag */ export type ResolveFlagInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for resolving the flag. Will be attached as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** The ID of the flag to resolve. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of ResolveFlag. */ export type ResolveFlagPayload = { __typename: 'ResolveFlagPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; flag?: Maybe; }; @@ -5623,49 +5643,49 @@ export type Revision = Commentable & EventOriginObject & EventSubject & { acceptanceActivity?: Maybe; /** List and filter comments. */ comments: CommentConnection; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; creationActivity?: Maybe; - currentValue?: Maybe; + currentValue?: Maybe; /** List and filter events for an object */ events: EventConnection; - fieldName: Scalars['String']; - id: Scalars['Int']; + fieldName: Scalars['String']['output']; + id: Scalars['Int']['output']; lastCommentEvent?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; linkoutData: LinkoutData; - name: Scalars['String']; + name: Scalars['String']['output']; rejectionActivity?: Maybe; resolutionActivity?: Maybe; - revisionSetId: Scalars['Int']; + revisionSetId: Scalars['Int']['output']; status: RevisionStatus; subject: EventSubject; - suggestedValue?: Maybe; + suggestedValue?: Maybe; supersedingActivity?: Maybe; - updatedAt: Scalars['ISO8601DateTime']; + updatedAt: Scalars['ISO8601DateTime']['output']; }; export type RevisionCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type RevisionEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; @@ -5677,18 +5697,18 @@ export type RevisionConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** List of all fields that have at least one revision. */ revisedFieldNames: Array; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; /** * When filtered on a subject, the total number of revisions for that subject, * irregardless of other filters. Null when no subject provided. */ - unfilteredCountForSubject?: Maybe; + unfilteredCountForSubject?: Maybe; /** List of all users that have accepted/rejected/superseded a revision to this entity. */ uniqueResolvers: Array; /** List of all users that have submitted a revision to this entity. */ @@ -5699,7 +5719,7 @@ export type RevisionConnection = { export type RevisionEdge = { __typename: 'RevisionEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -5707,37 +5727,37 @@ export type RevisionEdge = { export type RevisionResult = { __typename: 'RevisionResult'; /** Name of the field on the moderated entity that the Revision pertains to. */ - fieldName: Scalars['String']; + fieldName: Scalars['String']['output']; /** ID of the Revision. */ - id: Scalars['Int']; + id: Scalars['Int']['output']; /** Was this Revision newly created as a result of this request? */ - newlyCreated: Scalars['Boolean']; + newlyCreated: Scalars['Boolean']['output']; /** An identifier that can be used to group Revisions proposed at the same time. */ - revisionSetId: Scalars['Int']; + revisionSetId: Scalars['Int']['output']; }; export type RevisionSet = EventSubject & { __typename: 'RevisionSet'; - createdAt: Scalars['ISO8601DateTime']; - displayName: Scalars['String']; + createdAt: Scalars['ISO8601DateTime']['output']; + displayName: Scalars['String']['output']; /** List and filter events for an object */ events: EventConnection; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; revisions: Array; - updatedAt: Scalars['ISO8601DateTime']; + updatedAt: Scalars['ISO8601DateTime']['output']; }; export type RevisionSetEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; @@ -5750,20 +5770,20 @@ export enum RevisionStatus { export type ScalarField = { __typename: 'ScalarField'; - value?: Maybe; + value?: Maybe; }; export type ScalarFieldDiff = { __typename: 'ScalarFieldDiff'; - left: Scalars['String']; - right: Scalars['String']; + left: Scalars['String']['output']; + right: Scalars['String']['output']; }; export type SearchResult = { __typename: 'SearchResult'; - id: Scalars['Int']; - matchingText: Scalars['String']; - name: Scalars['String']; + id: Scalars['Int']['output']; + matchingText: Scalars['String']['output']; + name: Scalars['String']['output']; resultType: SearchableEntities; }; @@ -5786,124 +5806,124 @@ export enum SortDirection { export type Source = Commentable & EventSubject & { __typename: 'Source'; - abstract?: Maybe; - ascoAbstractId?: Maybe; - authorString?: Maybe; - citation?: Maybe; - citationId: Scalars['String']; + abstract?: Maybe; + ascoAbstractId?: Maybe; + authorString?: Maybe; + citation?: Maybe; + citationId: Scalars['String']['output']; clinicalTrials?: Maybe>; /** List and filter comments. */ comments: CommentConnection; - deprecated: Scalars['Boolean']; - displayType: Scalars['String']; + deprecated: Scalars['Boolean']['output']; + displayType: Scalars['String']['output']; /** List and filter events for an object */ events: EventConnection; - fullJournalTitle?: Maybe; - fullyCurated: Scalars['Boolean']; - id: Scalars['Int']; - journal?: Maybe; + fullJournalTitle?: Maybe; + fullyCurated: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + journal?: Maybe; lastCommentEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; - openAccess: Scalars['Boolean']; - pmcId?: Maybe; - publicationDate?: Maybe; - publicationDay?: Maybe; - publicationMonth?: Maybe; - publicationYear?: Maybe; - retracted: Scalars['Boolean']; - retractionDate?: Maybe; - retractionNature?: Maybe; - retractionReasons?: Maybe; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openAccess: Scalars['Boolean']['output']; + pmcId?: Maybe; + publicationDate?: Maybe; + publicationDay?: Maybe; + publicationMonth?: Maybe; + publicationYear?: Maybe; + retracted: Scalars['Boolean']['output']; + retractionDate?: Maybe; + retractionNature?: Maybe; + retractionReasons?: Maybe; sourceType: SourceSource; - sourceUrl?: Maybe; - title?: Maybe; + sourceUrl?: Maybe; + title?: Maybe; }; export type SourceCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type SourceEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type SourcePopover = Commentable & EventSubject & { __typename: 'SourcePopover'; - abstract?: Maybe; - ascoAbstractId?: Maybe; - authorString?: Maybe; - citation?: Maybe; - citationId: Scalars['String']; + abstract?: Maybe; + ascoAbstractId?: Maybe; + authorString?: Maybe; + citation?: Maybe; + citationId: Scalars['String']['output']; clinicalTrials?: Maybe>; /** List and filter comments. */ comments: CommentConnection; - deprecated: Scalars['Boolean']; - displayType: Scalars['String']; + deprecated: Scalars['Boolean']['output']; + displayType: Scalars['String']['output']; /** List and filter events for an object */ events: EventConnection; - evidenceItemCount: Scalars['Int']; - fullJournalTitle?: Maybe; - fullyCurated: Scalars['Boolean']; - id: Scalars['Int']; - journal?: Maybe; + evidenceItemCount: Scalars['Int']['output']; + fullJournalTitle?: Maybe; + fullyCurated: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + journal?: Maybe; lastCommentEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; - openAccess: Scalars['Boolean']; - pmcId?: Maybe; - publicationDate?: Maybe; - publicationDay?: Maybe; - publicationMonth?: Maybe; - publicationYear?: Maybe; - retracted: Scalars['Boolean']; - retractionDate?: Maybe; - retractionNature?: Maybe; - retractionReasons?: Maybe; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openAccess: Scalars['Boolean']['output']; + pmcId?: Maybe; + publicationDate?: Maybe; + publicationDay?: Maybe; + publicationMonth?: Maybe; + publicationYear?: Maybe; + retracted: Scalars['Boolean']['output']; + retractionDate?: Maybe; + retractionNature?: Maybe; + retractionReasons?: Maybe; sourceType: SourceSource; - sourceUrl?: Maybe; - title?: Maybe; + sourceUrl?: Maybe; + title?: Maybe; }; export type SourcePopoverCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type SourcePopoverEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; @@ -5915,25 +5935,25 @@ export enum SourceSource { export type SourceStub = { __typename: 'SourceStub'; - citationId: Scalars['Int']; - id: Scalars['Int']; + citationId: Scalars['Int']['output']; + id: Scalars['Int']['output']; sourceType: SourceSource; }; export type SourceSuggestion = EventOriginObject & EventSubject & { __typename: 'SourceSuggestion'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; creationActivity: SuggestSourceActivity; disease?: Maybe; /** List and filter events for an object */ events: EventConnection; - id: Scalars['Int']; - initialComment: Scalars['String']; + id: Scalars['Int']['output']; + initialComment: Scalars['String']['output']; lastStatusUpdateActivity?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; molecularProfile?: Maybe; - name: Scalars['String']; - reason?: Maybe; + name: Scalars['String']['output']; + reason?: Maybe; source?: Maybe; status: SourceSuggestionStatus; user?: Maybe; @@ -5941,13 +5961,13 @@ export type SourceSuggestion = EventOriginObject & EventSubject & { export type SourceSuggestionEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; @@ -5957,24 +5977,24 @@ export type SourceSuggestionConnection = { /** A list of edges. */ edges: Array; /** The total number of records in this set. */ - filteredCount: Scalars['Int']; + filteredCount: Scalars['Int']['output']; /** The last time the data in this browse table was refreshed */ - lastUpdated: Scalars['ISO8601DateTime']; + lastUpdated: Scalars['ISO8601DateTime']['output']; /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records of this type, regardless of any filtering. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type SourceSuggestionEdge = { __typename: 'SourceSuggestionEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -6028,19 +6048,19 @@ export enum SourcesSortColumns { export type Stats = { __typename: 'Stats'; - acceptedAssertions: Scalars['Int']; - acceptedEvidenceItems: Scalars['Int']; - appliedRevisions: Scalars['Int']; - comments: Scalars['Int']; - revisions: Scalars['Int']; - submittedAssertions: Scalars['Int']; - submittedEvidenceItems: Scalars['Int']; - suggestedSources: Scalars['Int']; + acceptedAssertions: Scalars['Int']['output']; + acceptedEvidenceItems: Scalars['Int']['output']; + appliedRevisions: Scalars['Int']['output']; + comments: Scalars['Int']['output']; + revisions: Scalars['Int']['output']; + submittedAssertions: Scalars['Int']['output']; + submittedEvidenceItems: Scalars['Int']['output']; + suggestedSources: Scalars['Int']['output']; }; export type StringSearchInput = { comparisonOperator: StringSearchOperator; - value: Scalars['String']; + value: Scalars['String']['input']; }; export enum StringSearchOperator { @@ -6053,23 +6073,23 @@ export enum StringSearchOperator { export type SubmitAssertionActivity = ActivityInterface & { __typename: 'SubmitAssertionActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of SubmitAssertion */ export type SubmitAssertionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing any further context or details about your proposed Assertion. Will be attached as a comment. */ - comment?: InputMaybe; + comment?: InputMaybe; /** The desired state of the Assertion's editable fields. */ fields: AssertionFields; /** @@ -6078,7 +6098,7 @@ export type SubmitAssertionInput = { * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SubmitAssertion. */ @@ -6087,28 +6107,28 @@ export type SubmitAssertionPayload = { /** The newly created Assertion */ assertion: Assertion; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; }; export type SubmitEvidenceItemActivity = ActivityInterface & { __typename: 'SubmitEvidenceItemActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of SubmitEvidenceItem */ export type SubmitEvidenceItemInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing any further context or details about your proposed EvidenceItem. Will be attached as a comment. */ - comment?: InputMaybe; + comment?: InputMaybe; /** The desired state of the EvidenceItems's editable fields. */ fields: EvidenceItemFields; /** @@ -6117,14 +6137,14 @@ export type SubmitEvidenceItemInput = { * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SubmitEvidenceItem. */ export type SubmitEvidenceItemPayload = { __typename: 'SubmitEvidenceItemPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created EvidenceItem */ evidenceItem: EvidenceItem; }; @@ -6132,29 +6152,29 @@ export type SubmitEvidenceItemPayload = { /** Autogenerated input type of SubmitVariantGroup */ export type SubmitVariantGroupInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** A description of the variant group. */ - description?: InputMaybe; + description?: InputMaybe; /** The name of the disease. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** A list of CIViC source IDs to associate with the variant group. */ - sourceIds: Array; + sourceIds: Array; /** A list of CIViC variant IDs to add to the variant group. */ - variantIds: Array; + variantIds: Array; }; /** Autogenerated return type of SubmitVariantGroup. */ export type SubmitVariantGroupPayload = { __typename: 'SubmitVariantGroupPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created Variant Group */ variantGroup: VariantGroup; }; @@ -6162,7 +6182,7 @@ export type SubmitVariantGroupPayload = { export type Subscribable = { __typename: 'Subscribable'; entityType: SubscribableEntities; - id: Scalars['Int']; + id: Scalars['Int']['output']; }; /** Enumeration of all subscribable CIViC entities. */ @@ -6182,7 +6202,7 @@ export type SubscribableInput = { /** Type of subscribable entity. */ entityType: SubscribableEntities; /** ID of subscribable entity. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; }; /** Entity to subscribe to. */ @@ -6190,59 +6210,59 @@ export type SubscribableQueryInput = { /** Type of subscribable entity. */ entityType: SubscribableEntities; /** ID of subscribable entity. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** Include child entities of the requested subscribable */ - includeChildren?: InputMaybe; + includeChildren?: InputMaybe; }; /** Autogenerated input type of Subscribe */ export type SubscribeInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** A list of one or more entities to subscribe to, each identified by its ID and type. */ subscribables: Array; /** * Do you want to subscribe to related child entities of the subscribed entities? * IE: If you subscribe to a Gene, do you want to receive notifications for its Variants as well? */ - subscribeToChildren?: InputMaybe; + subscribeToChildren?: InputMaybe; }; /** Autogenerated return type of Subscribe. */ export type SubscribePayload = { __typename: 'SubscribePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created subscription objects. */ subscriptions: Array; }; export type Subscription = { __typename: 'Subscription'; - id: Scalars['Int']; + id: Scalars['Int']['output']; subscribable: EventSubject; }; /** Autogenerated input type of SuggestAssertionRevision */ export type SuggestAssertionRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The desired state of the Assertion's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: AssertionFields; /** The ID of the Assertion to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestAssertionRevision. */ @@ -6251,7 +6271,7 @@ export type SuggestAssertionRevisionPayload = { /** The Assertion the user has proposed a Revision to. */ assertion: Assertion; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** * A list of Revisions generated as a result of this suggestion. * If an existing Revision exactly matches the proposed one, it will be returned instead. @@ -6265,30 +6285,30 @@ export type SuggestAssertionRevisionPayload = { /** Autogenerated input type of SuggestEvidenceItemRevision */ export type SuggestEvidenceItemRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The desired state of the EvidenceItems's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: EvidenceItemFields; /** The ID of the EvidenceItem to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestEvidenceItemRevision. */ export type SuggestEvidenceItemRevisionPayload = { __typename: 'SuggestEvidenceItemRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The EvidenceItem the user has proposed a Revision to. */ evidenceItem: EvidenceItem; /** @@ -6304,30 +6324,30 @@ export type SuggestEvidenceItemRevisionPayload = { /** Autogenerated input type of SuggestFactorRevision */ export type SuggestFactorRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The desired state of the Factors's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: FactorFields; /** The ID of the Feature of instance type "Factor" to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestFactorRevision. */ export type SuggestFactorRevisionPayload = { __typename: 'SuggestFactorRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The Factor the user has proposed a Revision to. */ factor: Factor; /** @@ -6343,30 +6363,30 @@ export type SuggestFactorRevisionPayload = { /** Autogenerated input type of SuggestFactorVariantRevision */ export type SuggestFactorVariantRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment?: InputMaybe; + comment?: InputMaybe; /** * The desired state of the Variant's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: FactorVariantFields; /** The ID of the Variant to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestFactorVariantRevision. */ export type SuggestFactorVariantRevisionPayload = { __typename: 'SuggestFactorVariantRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** * A list of Revisions generated as a result of this suggestion. * If an existing Revision exactly matches the proposed one, it will be returned instead. @@ -6382,30 +6402,30 @@ export type SuggestFactorVariantRevisionPayload = { /** Autogenerated input type of SuggestFusionRevision */ export type SuggestFusionRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The desired state of the Fusion's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: FusionFields; /** The ID of the Feature of instance type "Fusion" to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestFusionRevision. */ export type SuggestFusionRevisionPayload = { __typename: 'SuggestFusionRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The Fusion the user has proposed a Revision to. */ fusion: Fusion; /** @@ -6421,30 +6441,30 @@ export type SuggestFusionRevisionPayload = { /** Autogenerated input type of SuggestFusionVariantRevision */ export type SuggestFusionVariantRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment?: InputMaybe; + comment?: InputMaybe; /** * The desired state of the Variant's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: FusionVariantFields; /** The ID of the Variant to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestFusionVariantRevision. */ export type SuggestFusionVariantRevisionPayload = { __typename: 'SuggestFusionVariantRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** * A list of Revisions generated as a result of this suggestion. * If an existing Revision exactly matches the proposed one, it will be returned instead. @@ -6460,30 +6480,30 @@ export type SuggestFusionVariantRevisionPayload = { /** Autogenerated input type of SuggestGeneRevision */ export type SuggestGeneRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The desired state of the Gene's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: GeneFields; /** The ID of the Feature of instance type "Gene" to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestGeneRevision. */ export type SuggestGeneRevisionPayload = { __typename: 'SuggestGeneRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The Gene the user has proposed a Revision to. */ gene: Gene; /** @@ -6499,30 +6519,30 @@ export type SuggestGeneRevisionPayload = { /** Autogenerated input type of SuggestGeneVariantRevision */ export type SuggestGeneVariantRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment?: InputMaybe; + comment?: InputMaybe; /** * The desired state of the Variant's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: GeneVariantFields; /** The ID of the Variant to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestGeneVariantRevision. */ export type SuggestGeneVariantRevisionPayload = { __typename: 'SuggestGeneVariantRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** * A list of Revisions generated as a result of this suggestion. * If an existing Revision exactly matches the proposed one, it will be returned instead. @@ -6538,30 +6558,30 @@ export type SuggestGeneVariantRevisionPayload = { /** Autogenerated input type of SuggestMolecularProfileRevision */ export type SuggestMolecularProfileRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The desired state of the Molecular Profile's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: MolecularProfileFields; /** The ID of the MolecularProfile to suggest a Revision to. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestMolecularProfileRevision. */ export type SuggestMolecularProfileRevisionPayload = { __typename: 'SuggestMolecularProfileRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The MolecularProfile the user has proposed a Revision to. */ molecularProfile: MolecularProfile; /** @@ -6576,59 +6596,59 @@ export type SuggestMolecularProfileRevisionPayload = { export type SuggestRevisionSetActivity = ActivityInterface & { __typename: 'SuggestRevisionSetActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; revisionSet: RevisionSet; revisions: Array; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; export type SuggestSourceActivity = ActivityInterface & { __typename: 'SuggestSourceActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; sourceSuggestion: SourceSuggestion; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of SuggestSource */ export type SuggestSourceInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text explaining why this source should be curated for CIViC evidence. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** Internal CIViC ID for the applicable disease, if any. */ - diseaseId?: InputMaybe; + diseaseId?: InputMaybe; /** Internal CIViC ID for the applicable molecular profile, if any. */ - molecularProfileId?: InputMaybe; + molecularProfileId?: InputMaybe; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** Internal CIViC ID for the source to suggest. Use the AddRemoteCitation mutation to populate this if needed. */ - sourceId: Scalars['Int']; + sourceId: Scalars['Int']['input']; }; /** Autogenerated return type of SuggestSource. */ export type SuggestSourcePayload = { __typename: 'SuggestSourcePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The newly created Source Suggestion */ sourceSuggestion: SourceSuggestion; }; @@ -6636,30 +6656,30 @@ export type SuggestSourcePayload = { /** Autogenerated input type of SuggestVariantGroupRevision */ export type SuggestVariantGroupRevisionInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Text describing the reason for the change. Will be attached to the Revision as a comment. */ - comment: Scalars['String']; + comment: Scalars['String']['input']; /** * The desired state of the VariantGroup's editable fields if the change were applied. * If no change is desired for a particular field, pass in the current value of that field. */ fields: VariantGroupFields; /** The ID of the VariantGroup you are suggesting a Revision to */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** * The ID of the organization to credit the user's contributions to. * If the user belongs to a single organization or no organizations, this field is not required. * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; }; /** Autogenerated return type of SuggestVariantGroupRevision. */ export type SuggestVariantGroupRevisionPayload = { __typename: 'SuggestVariantGroupRevisionPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** * A list of Revisions generated as a result of this suggestion. * If an existing Revision exactly matches the proposed one, it will be returned instead. @@ -6688,19 +6708,19 @@ export type TaggableEntityInput = { /** The type of the entity */ entityType: TaggableEntity; /** ID of the mentioned entity */ - id: Scalars['Int']; + id: Scalars['Int']['input']; }; export type Therapy = { __typename: 'Therapy'; - deprecated: Scalars['Boolean']; - id: Scalars['Int']; - link: Scalars['String']; + deprecated: Scalars['Boolean']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; myChemInfo?: Maybe; - name: Scalars['String']; - ncitId?: Maybe; - therapyAliases: Array; - therapyUrl?: Maybe; + name: Scalars['String']['output']; + ncitId?: Maybe; + therapyAliases: Array; + therapyUrl?: Maybe; }; export enum TherapyInteraction { @@ -6711,17 +6731,17 @@ export enum TherapyInteraction { export type TherapyPopover = { __typename: 'TherapyPopover'; - assertionCount: Scalars['Int']; - deprecated: Scalars['Boolean']; - evidenceItemCount: Scalars['Int']; - id: Scalars['Int']; - link: Scalars['String']; - molecularProfileCount: Scalars['Int']; + assertionCount: Scalars['Int']['output']; + deprecated: Scalars['Boolean']['output']; + evidenceItemCount: Scalars['Int']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + molecularProfileCount: Scalars['Int']['output']; myChemInfo?: Maybe; - name: Scalars['String']; - ncitId?: Maybe; - therapyAliases: Array; - therapyUrl?: Maybe; + name: Scalars['String']['output']; + ncitId?: Maybe; + therapyAliases: Array; + therapyUrl?: Maybe; }; export type TherapySort = { @@ -6740,10 +6760,10 @@ export enum TherapySortColumns { export type TimePointCounts = { __typename: 'TimePointCounts'; - allTime: Scalars['Int']; - newThisMonth: Scalars['Int']; - newThisWeek: Scalars['Int']; - newThisYear: Scalars['Int']; + allTime: Scalars['Int']['output']; + newThisMonth: Scalars['Int']['output']; + newThisWeek: Scalars['Int']['output']; + newThisYear: Scalars['Int']['output']; }; export enum TimeWindow { @@ -6756,21 +6776,21 @@ export enum TimeWindow { /** Autogenerated input type of Unsubscribe */ export type UnsubscribeInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** A list of one or more entities to unsubscribe from, each identified by its ID and type. */ subscribables: Array; /** * Do you also wish to stop receiving notifications from child entities? * IE: If you unsubscribe from a Gene do you want to stop receiving notifications for its Variants as well? */ - unsubscribeFromChildren?: InputMaybe; + unsubscribeFromChildren?: InputMaybe; }; /** Autogenerated return type of Unsubscribe. */ export type UnsubscribePayload = { __typename: 'UnsubscribePayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The entities that were unsubscribed from. */ unsubscribedEntities: Array; }; @@ -6778,27 +6798,27 @@ export type UnsubscribePayload = { /** Autogenerated input type of UpdateCoi */ export type UpdateCoiInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** Does the user report having a conflict of interest? Mark true if so. */ - coiPresent: Scalars['Boolean']; + coiPresent: Scalars['Boolean']['input']; /** If the user reports a potential conflict of interest please provide a brief summary of it. */ - statement?: InputMaybe; + statement?: InputMaybe; }; /** Autogenerated return type of UpdateCoi. */ export type UpdateCoiPayload = { __typename: 'UpdateCoiPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; coiStatement: Coi; }; /** Autogenerated input type of UpdateNotificationStatus */ export type UpdateNotificationStatusInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** A list of one or more Notification IDs. */ - ids: Array; + ids: Array; /** The new status of the selected notifications. */ newStatus: ReadStatus; }; @@ -6807,31 +6827,31 @@ export type UpdateNotificationStatusInput = { export type UpdateNotificationStatusPayload = { __typename: 'UpdateNotificationStatusPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** A list of the notifications in their new state. */ notifications: Array; }; export type UpdateSourceSuggestionStatusActivity = ActivityInterface & { __typename: 'UpdateSourceSuggestionStatusActivity'; - createdAt: Scalars['ISO8601DateTime']; + createdAt: Scalars['ISO8601DateTime']['output']; events: Array; - id: Scalars['Int']; - note?: Maybe; + id: Scalars['Int']['output']; + note?: Maybe; organization?: Maybe; parsedNote: Array; sourceSuggestion: SourceSuggestion; subject: EventSubject; user: User; - verbiage: Scalars['String']; + verbiage: Scalars['String']['output']; }; /** Autogenerated input type of UpdateSourceSuggestionStatus */ export type UpdateSourceSuggestionStatusInput = { /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; + clientMutationId?: InputMaybe; /** The ID of the SourceSuggestion to update. */ - id: Scalars['Int']; + id: Scalars['Int']['input']; /** The desired status of the SourceSuggestion. */ newStatus: SourceSuggestionStatus; /** @@ -6840,16 +6860,16 @@ export type UpdateSourceSuggestionStatusInput = { * This field is required if the user belongs to more than one organization. * The user must belong to the organization provided. */ - organizationId?: InputMaybe; + organizationId?: InputMaybe; /** The justification for marking a source as curated/rejected */ - reason?: InputMaybe; + reason?: InputMaybe; }; /** Autogenerated return type of UpdateSourceSuggestionStatus. */ export type UpdateSourceSuggestionStatusPayload = { __typename: 'UpdateSourceSuggestionStatusPayload'; /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; + clientMutationId?: Maybe; /** The updated SourceSuggestion. */ sourceSuggestion: SourceSuggestion; }; @@ -6857,56 +6877,56 @@ export type UpdateSourceSuggestionStatusPayload = { export type User = { __typename: 'User'; areaOfExpertise?: Maybe; - bio?: Maybe; + bio?: Maybe; country?: Maybe; - displayName: Scalars['String']; - email?: Maybe; + displayName: Scalars['String']['output']; + email?: Maybe; events: EventConnection; - facebookProfile?: Maybe; - id: Scalars['Int']; - linkedinProfile?: Maybe; - mostRecentActivityTimestamp?: Maybe; + facebookProfile?: Maybe; + id: Scalars['Int']['output']; + linkedinProfile?: Maybe; + mostRecentActivityTimestamp?: Maybe; mostRecentConflictOfInterestStatement?: Maybe; mostRecentEvent?: Maybe; mostRecentOrg?: Maybe; - mostRecentOrganizationId?: Maybe; - name?: Maybe; + mostRecentOrganizationId?: Maybe; + name?: Maybe; /** Filterable list of notifications for the logged in user. */ notifications?: Maybe; - orcid?: Maybe; + orcid?: Maybe; organizations: Array; - profileImagePath?: Maybe; + profileImagePath?: Maybe; ranks: Ranks; role: UserRole; statsHash: Stats; - twitterHandle?: Maybe; - url?: Maybe; - username: Scalars['String']; + twitterHandle?: Maybe; + url?: Maybe; + username: Scalars['String']['output']; }; export type UserEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type UserNotificationsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - includeSeen?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + includeSeen?: InputMaybe; + last?: InputMaybe; notificationType?: InputMaybe; - subscriptionId?: InputMaybe; + subscriptionId?: InputMaybe; }; export type UserProfileImagePathArgs = { - size?: InputMaybe; + size?: InputMaybe; }; /** The connection type for User. */ @@ -6917,18 +6937,18 @@ export type UserConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type UserEdge = { __typename: 'UserEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -6943,44 +6963,44 @@ export type UserLeaderboards = { export type UserLeaderboardsCommentsLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; role?: InputMaybe; window?: InputMaybe; }; export type UserLeaderboardsModerationLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; role?: InputMaybe; window?: InputMaybe; }; export type UserLeaderboardsRevisionsLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; role?: InputMaybe; window?: InputMaybe; }; export type UserLeaderboardsSubmissionsLeaderboardArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; direction?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; role?: InputMaybe; window?: InputMaybe; }; @@ -7009,7 +7029,7 @@ export enum UsersSortColumns { export type ValidationErrors = { __typename: 'ValidationErrors'; - genericErrors: Array; + genericErrors: Array; validationErrors: Array; }; @@ -7018,92 +7038,92 @@ export type Variant = Commentable & EventOriginObject & EventSubject & Flaggable /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; /** List and filter events for an object */ events: EventConnection; feature: Feature; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; molecularProfiles: MolecularProfileConnection; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; - singleVariantMolecularProfileId: Scalars['Int']; - variantAliases: Array; + singleVariantMolecularProfileId: Scalars['Int']['output']; + variantAliases: Array; variantTypes: Array; }; export type VariantCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type VariantEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type VariantFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type VariantMolecularProfilesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type VariantRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; export type VariantAlias = { __typename: 'VariantAlias'; - name: Scalars['String']; + name: Scalars['String']['output']; }; export enum VariantCategories { @@ -7115,39 +7135,57 @@ export enum VariantCategories { /** Representation of a Variant's membership in a Molecular Profile. */ export type VariantComponent = { /** When set to true, this means the NOT operator will be applied to the Variant in the Molecluar Profile. */ - not?: Scalars['Boolean']; + not?: Scalars['Boolean']['input']; /** The ID of the Variant involved in the Molecular Profile. */ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }; -export type VariantCoordinate = EventSubject & { +export type VariantCoordinate = EventSubject & WithRevisions & { __typename: 'VariantCoordinate'; - chromosome?: Maybe; + chromosome?: Maybe; coordinateType: VariantCoordinateType; - ensemblVersion?: Maybe; + ensemblVersion?: Maybe; /** List and filter events for an object */ events: EventConnection; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - referenceBases?: Maybe; + id: Scalars['Int']['output']; + lastAcceptedRevisionEvent?: Maybe; + lastSubmittedRevisionEvent?: Maybe; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; + referenceBases?: Maybe; referenceBuild?: Maybe; - representativeTranscript?: Maybe; - start?: Maybe; - stop?: Maybe; - variantBases?: Maybe; + representativeTranscript?: Maybe; + /** List and filter revisions. */ + revisions: RevisionConnection; + start?: Maybe; + stop?: Maybe; + variantBases?: Maybe; }; export type VariantCoordinateEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; + sortBy?: InputMaybe; +}; + + +export type VariantCoordinateRevisionsArgs = { + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; + status?: InputMaybe; }; export enum VariantCoordinateType { @@ -7167,19 +7205,19 @@ export type VariantGroup = Commentable & EventSubject & Flaggable & WithRevision __typename: 'VariantGroup'; /** List and filter comments. */ comments: CommentConnection; - description: Scalars['String']; + description: Scalars['String']['output']; /** List and filter events for an object */ events: EventConnection; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -7189,69 +7227,69 @@ export type VariantGroup = Commentable & EventSubject & Flaggable & WithRevision export type VariantGroupCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type VariantGroupEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; export type VariantGroupFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; export type VariantGroupRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; export type VariantGroupVariantsArgs = { - after?: InputMaybe; - alleleRegistryId?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; category?: InputMaybe; - factorId?: InputMaybe; - featureId?: InputMaybe; - first?: InputMaybe; - geneId?: InputMaybe; - hasNoVariantType?: InputMaybe; - last?: InputMaybe; - name?: InputMaybe; + factorId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; sortBy?: InputMaybe; - variantTypeIds?: InputMaybe>; + variantTypeIds?: InputMaybe>; }; /** The connection type for VariantGroup. */ @@ -7262,18 +7300,18 @@ export type VariantGroupConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type VariantGroupEdge = { __typename: 'VariantGroupEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -7283,11 +7321,11 @@ export type VariantGroupFields = { /** The VariantGroups's description/summary text. */ description: NullableStringInput; /** The VariantGroups's name. */ - name: Scalars['String']; + name: Scalars['String']['input']; /** Source IDs cited by the VariantGroup's summary. */ - sourceIds: Array; + sourceIds: Array; /** Variants in this VariantGroup. */ - variantIds: Array; + variantIds: Array; }; export type VariantGroupsSort = { @@ -7310,67 +7348,67 @@ export type VariantInterface = { /** List and filter comments. */ comments: CommentConnection; creationActivity?: Maybe; - deprecated: Scalars['Boolean']; + deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; /** List and filter events for an object */ events: EventConnection; feature: Feature; - flagged: Scalars['Boolean']; + flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; - id: Scalars['Int']; + id: Scalars['Int']['output']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - link: Scalars['String']; + link: Scalars['String']['output']; molecularProfiles: MolecularProfileConnection; - name: Scalars['String']; - openRevisionCount: Scalars['Int']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; - singleVariantMolecularProfileId: Scalars['Int']; - variantAliases: Array; + singleVariantMolecularProfileId: Scalars['Int']['output']; + variantAliases: Array; variantTypes: Array; }; /** A taggable/linkable component of a molecular profile */ export type VariantInterfaceCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; mentionedEntity?: InputMaybe; mentionedRole?: InputMaybe; - mentionedUserId?: InputMaybe; - originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** A taggable/linkable component of a molecular profile */ export type VariantInterfaceEventsArgs = { - after?: InputMaybe; - before?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; eventType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - organizationId?: InputMaybe; - originatingUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + organizationId?: InputMaybe; + originatingUserId?: InputMaybe; sortBy?: InputMaybe; }; /** A taggable/linkable component of a molecular profile */ export type VariantInterfaceFlagsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - flaggingUserId?: InputMaybe; - last?: InputMaybe; - resolvingUserId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + flaggingUserId?: InputMaybe; + last?: InputMaybe; + resolvingUserId?: InputMaybe; sortBy?: InputMaybe; state?: InputMaybe; }; @@ -7378,22 +7416,22 @@ export type VariantInterfaceFlagsArgs = { /** A taggable/linkable component of a molecular profile */ export type VariantInterfaceMolecularProfilesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A taggable/linkable component of a molecular profile */ export type VariantInterfaceRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -7406,18 +7444,18 @@ export type VariantInterfaceConnection = { /** A list of nodes. */ nodes: Array; /** Total number of pages, based on filtered count and pagesize. */ - pageCount: Scalars['Int']; + pageCount: Scalars['Int']['output']; /** Information to aid in pagination. */ pageInfo: PageInfo; /** The total number of records in this filtered collection. */ - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** An edge in a connection. */ export type VariantInterfaceEdge = { __typename: 'VariantInterfaceEdge'; /** A cursor for use in pagination. */ - cursor: Scalars['String']; + cursor: Scalars['String']['output']; /** The item at the end of the edge. */ node?: Maybe; }; @@ -7446,23 +7484,23 @@ export enum VariantOrigin { export type VariantType = { __typename: 'VariantType'; - description: Scalars['String']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - soid: Scalars['String']; - url?: Maybe; + description: Scalars['String']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + soid: Scalars['String']['output']; + url?: Maybe; }; export type VariantTypePopover = { __typename: 'VariantTypePopover'; - description: Scalars['String']; - id: Scalars['Int']; - link: Scalars['String']; - name: Scalars['String']; - soid: Scalars['String']; - url?: Maybe; - variantCount: Scalars['Int']; + description: Scalars['String']['output']; + id: Scalars['Int']['output']; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + soid: Scalars['String']['output']; + url?: Maybe; + variantCount: Scalars['Int']['output']; }; export type VariantTypeSort = { @@ -7496,7 +7534,7 @@ export enum VariantsSortColumns { export type WithRevisions = { lastAcceptedRevisionEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; - openRevisionCount: Scalars['Int']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; }; @@ -7504,19 +7542,19 @@ export type WithRevisions = { /** A CIViC entity that can have revisions proposed to it. */ export type WithRevisionsRevisionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - fieldName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - originatingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + fieldName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + originatingUserId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; export type ActivityCardQueryVariables = Exact<{ - activityId: Scalars['Int']; + activityId: Scalars['Int']['input']; }>; @@ -7563,11 +7601,11 @@ type ActivityCard_UpdateSourceSuggestionStatusActivity_Fragment = { __typename: export type ActivityCardFragment = ActivityCard_AcceptRevisionsActivity_Fragment | ActivityCard_CommentActivity_Fragment | ActivityCard_CreateComplexMolecularProfileActivity_Fragment | ActivityCard_CreateFeatureActivity_Fragment | ActivityCard_CreateVariantActivity_Fragment | ActivityCard_DeleteCommentActivity_Fragment | ActivityCard_DeprecateComplexMolecularProfileActivity_Fragment | ActivityCard_DeprecateFeatureActivity_Fragment | ActivityCard_DeprecateVariantActivity_Fragment | ActivityCard_FlagEntityActivity_Fragment | ActivityCard_ModerateAssertionActivity_Fragment | ActivityCard_ModerateEvidenceItemActivity_Fragment | ActivityCard_RejectRevisionsActivity_Fragment | ActivityCard_ResolveFlagActivity_Fragment | ActivityCard_SubmitAssertionActivity_Fragment | ActivityCard_SubmitEvidenceItemActivity_Fragment | ActivityCard_SuggestRevisionSetActivity_Fragment | ActivityCard_SuggestSourceActivity_Fragment | ActivityCard_UpdateSourceSuggestionStatusActivity_Fragment; export type ActivityFeedQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - userId?: InputMaybe | Scalars['Int']>; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + userId?: InputMaybe | Scalars['Int']['input']>; }>; @@ -7616,7 +7654,7 @@ type ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment = { __typena export type ActivityFeedNodeFragment = ActivityFeedNode_AcceptRevisionsActivity_Fragment | ActivityFeedNode_CommentActivity_Fragment | ActivityFeedNode_CreateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_CreateFeatureActivity_Fragment | ActivityFeedNode_CreateVariantActivity_Fragment | ActivityFeedNode_DeleteCommentActivity_Fragment | ActivityFeedNode_DeprecateComplexMolecularProfileActivity_Fragment | ActivityFeedNode_DeprecateFeatureActivity_Fragment | ActivityFeedNode_DeprecateVariantActivity_Fragment | ActivityFeedNode_FlagEntityActivity_Fragment | ActivityFeedNode_ModerateAssertionActivity_Fragment | ActivityFeedNode_ModerateEvidenceItemActivity_Fragment | ActivityFeedNode_RejectRevisionsActivity_Fragment | ActivityFeedNode_ResolveFlagActivity_Fragment | ActivityFeedNode_SubmitAssertionActivity_Fragment | ActivityFeedNode_SubmitEvidenceItemActivity_Fragment | ActivityFeedNode_SuggestRevisionSetActivity_Fragment | ActivityFeedNode_SuggestSourceActivity_Fragment | ActivityFeedNode_UpdateSourceSuggestionStatusActivity_Fragment; export type AssertionPopoverQueryVariables = Exact<{ - assertionId: Scalars['Int']; + assertionId: Scalars['Int']['input']; }>; @@ -7625,28 +7663,28 @@ export type AssertionPopoverQuery = { __typename: 'Query', assertion?: { __typen export type AssertionPopoverFragment = { __typename: 'Assertion', id: number, name: string, status: EvidenceStatus, summary: string, assertionType: AssertionType, assertionDirection: AssertionDirection, significance: AssertionSignificance, variantOrigin: VariantOrigin, ampLevel?: AmpLevel | undefined, regulatoryApproval?: boolean | undefined, regulatoryApprovalLastUpdated?: any | undefined, fdaCompanionTest?: boolean | undefined, fdaCompanionTestLastUpdated?: any | undefined, therapyInteractionType?: TherapyInteraction | undefined, acmgCodes: Array<{ __typename: 'AcmgCode', code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, deprecated: boolean }>, disease?: { __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean } | undefined, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type AssertionsBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - diseaseName?: InputMaybe; - therapyName?: InputMaybe; - id?: InputMaybe; - summary?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + id?: InputMaybe; + summary?: InputMaybe; assertionDirection?: InputMaybe; significance?: InputMaybe; assertionType?: InputMaybe; - variantId?: InputMaybe; - molecularProfileId?: InputMaybe; - evidenceId?: InputMaybe; - molecularProfileName?: InputMaybe; + variantId?: InputMaybe; + molecularProfileId?: InputMaybe; + evidenceId?: InputMaybe; + molecularProfileName?: InputMaybe; sortBy?: InputMaybe; ampLevel?: InputMaybe; - organizationId?: InputMaybe; - userId?: InputMaybe; - phenotypeId?: InputMaybe; - diseaseId?: InputMaybe; - therapyId?: InputMaybe; + organizationId?: InputMaybe; + userId?: InputMaybe; + phenotypeId?: InputMaybe; + diseaseId?: InputMaybe; + therapyId?: InputMaybe; status?: InputMaybe; }>; @@ -7656,7 +7694,7 @@ export type AssertionsBrowseQuery = { __typename: 'Query', assertions: { __typen export type AssertionBrowseFieldsFragment = { __typename: 'Assertion', id: number, name: string, link: string, therapyInteractionType?: TherapyInteraction | undefined, summary: string, assertionType: AssertionType, assertionDirection: AssertionDirection, significance: AssertionSignificance, ampLevel?: AmpLevel | undefined, evidenceItemsCount: number, status: EvidenceStatus, flagged: boolean, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> }, disease?: { __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, deprecated: boolean }> }; export type ClinicalTrialPopoverQueryVariables = Exact<{ - clinicalTrialId: Scalars['Int']; + clinicalTrialId: Scalars['Int']['input']; }>; @@ -7665,12 +7703,12 @@ export type ClinicalTrialPopoverQuery = { __typename: 'Query', clinicalTrials: { export type ClinicalTrialPopoverFragment = { __typename: 'BrowseClinicalTrial', id: number, name: string, nctId?: string | undefined, url?: string | undefined, sourceCount: number, evidenceCount: number }; export type ClinicalTrialsBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - name?: InputMaybe; - nctId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + name?: InputMaybe; + nctId?: InputMaybe; sortBy?: InputMaybe; }>; @@ -7687,12 +7725,12 @@ export type DeleteCommentMutationVariables = Exact<{ export type DeleteCommentMutation = { __typename: 'Mutation', deleteComment?: { __typename: 'DeleteCommentPayload', comment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, deleted: boolean, deletedAt?: any | undefined, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined } | undefined }; export type CommentListQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - originatingUserId?: InputMaybe; - mentionedUserId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + originatingUserId?: InputMaybe; + mentionedUserId?: InputMaybe; mentionedRole?: InputMaybe; mentionedEntity?: InputMaybe; subject?: InputMaybe; @@ -7719,7 +7757,7 @@ type ParsedCommentFragment_User_Fragment = { __typename: 'User', id: number, dis export type ParsedCommentFragmentFragment = ParsedCommentFragment_CommentTagSegment_Fragment | ParsedCommentFragment_CommentTagSegmentFlagged_Fragment | ParsedCommentFragment_CommentTagSegmentFlaggedAndDeprecated_Fragment | ParsedCommentFragment_CommentTagSegmentFlaggedAndWithStatus_Fragment | ParsedCommentFragment_CommentTextSegment_Fragment | ParsedCommentFragment_User_Fragment; export type CommentPopoverQueryVariables = Exact<{ - commentId: Scalars['Int']; + commentId: Scalars['Int']['input']; }>; @@ -7728,22 +7766,22 @@ export type CommentPopoverQuery = { __typename: 'Query', comment?: { __typename: export type CommentPopoverFragment = { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', flagged: boolean, status: EvidenceStatus, id: number, name: string, link: string } | { __typename: 'EvidenceItem', flagged: boolean, status: EvidenceStatus, id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', deprecated: boolean, sourceType: SourceSource, id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, flagged: boolean, id: number, name: string, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', id: number, name: string, link: string } }; export type DiseasePopoverQueryVariables = Exact<{ - diseaseId: Scalars['Int']; + diseaseId: Scalars['Int']['input']; }>; export type DiseasePopoverQuery = { __typename: 'Query', diseasePopover?: { __typename: 'DiseasePopover', id: number, name: string, displayName: string, doid?: string | undefined, diseaseUrl?: string | undefined, diseaseAliases: Array, assertionCount: number, evidenceItemCount: number, molecularProfileCount: number, link: string, deprecated: boolean } | undefined }; export type BrowseDiseasesQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; sortBy?: InputMaybe; - name?: InputMaybe; - doid?: InputMaybe; - diseaseAlias?: InputMaybe; - featureName?: InputMaybe; + name?: InputMaybe; + doid?: InputMaybe; + diseaseAlias?: InputMaybe; + featureName?: InputMaybe; }>; @@ -7753,14 +7791,14 @@ export type BrowseDiseaseRowFieldsFragment = { __typename: 'BrowseDisease', id: export type EventFeedCountQueryVariables = Exact<{ subject?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - originatingUserId?: InputMaybe; - organizationId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + originatingUserId?: InputMaybe; + organizationId?: InputMaybe; eventType?: InputMaybe; - includeAutomatedEvents?: InputMaybe; + includeAutomatedEvents?: InputMaybe; mode?: InputMaybe; }>; @@ -7769,16 +7807,16 @@ export type EventFeedCountQuery = { __typename: 'Query', events: { __typename: ' export type EventFeedQueryVariables = Exact<{ subject?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - originatingUserId?: InputMaybe; - organizationId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + originatingUserId?: InputMaybe; + organizationId?: InputMaybe; eventType?: InputMaybe; mode?: InputMaybe; - includeAutomatedEvents?: InputMaybe; - showFilters: Scalars['Boolean']; + includeAutomatedEvents?: InputMaybe; + showFilters: Scalars['Boolean']['input']; }>; @@ -7789,7 +7827,7 @@ export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Ar export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, name: string, id: number, link: string } | { __typename: 'ExonCoordinate', name: string, id: number, link: string } | { __typename: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, id: number, link: string, name: string } | { __typename: 'Flag', name: string, id: number, link: string } | { __typename: 'Fusion', name: string, id: number, link: string } | { __typename: 'FusionVariant', deprecated: boolean, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'GeneVariant', deprecated: boolean, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string, deprecated: boolean, flagged: boolean } } | { __typename: 'MolecularProfile', deprecated: boolean, flagged: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'RevisionSet', name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, deprecated: boolean, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, link: string, name: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; export type EvidencePopoverQueryVariables = Exact<{ - evidenceId: Scalars['Int']; + evidenceId: Scalars['Int']['input']; }>; @@ -7798,32 +7836,32 @@ export type EvidencePopoverQuery = { __typename: 'Query', evidenceItem?: { __typ export type EvidencePopoverFragment = { __typename: 'EvidenceItem', id: number, name: string, status: EvidenceStatus, description: string, evidenceLevel: EvidenceLevel, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, significance: EvidenceSignificance, variantOrigin: VariantOrigin, therapyInteractionType?: TherapyInteraction | undefined, evidenceRating?: number | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, deprecated: boolean }>, disease?: { __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean } | undefined, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> }, source: { __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, displayType: string, link: string, deprecated: boolean }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type EvidenceBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - diseaseName?: InputMaybe; - therapyName?: InputMaybe; - id?: InputMaybe; - description?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + id?: InputMaybe; + description?: InputMaybe; evidenceLevel?: InputMaybe; evidenceDirection?: InputMaybe; significance?: InputMaybe; evidenceType?: InputMaybe; - rating?: InputMaybe; + rating?: InputMaybe; variantOrigin?: InputMaybe; - variantId?: InputMaybe; - molecularProfileId?: InputMaybe; - assertionId?: InputMaybe; - organizationId?: InputMaybe; - userId?: InputMaybe; + variantId?: InputMaybe; + molecularProfileId?: InputMaybe; + assertionId?: InputMaybe; + organizationId?: InputMaybe; + userId?: InputMaybe; sortBy?: InputMaybe; - phenotypeId?: InputMaybe; - diseaseId?: InputMaybe; - therapyId?: InputMaybe; - sourceId?: InputMaybe; - clinicalTrialId?: InputMaybe; - molecularProfileName?: InputMaybe; + phenotypeId?: InputMaybe; + diseaseId?: InputMaybe; + therapyId?: InputMaybe; + sourceId?: InputMaybe; + clinicalTrialId?: InputMaybe; + molecularProfileName?: InputMaybe; status?: InputMaybe; }>; @@ -7833,7 +7871,7 @@ export type EvidenceBrowseQuery = { __typename: 'Query', evidenceItems: { __type export type EvidenceGridFieldsFragment = { __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus, flagged: boolean, therapyInteractionType?: TherapyInteraction | undefined, description: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, disease?: { __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, deprecated: boolean }>, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> } }; export type FeaturePopoverQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; @@ -7842,17 +7880,17 @@ export type FeaturePopoverQuery = { __typename: 'Query', feature?: { __typename: export type FeaturePopoverFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, featureAliases: Array, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, variants: { __typename: 'VariantInterfaceConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; export type BrowseFeaturesQueryVariables = Exact<{ - featureName?: InputMaybe; - featureFullName?: InputMaybe; - therapyName?: InputMaybe; - featureAlias?: InputMaybe; - diseaseName?: InputMaybe; + featureName?: InputMaybe; + featureFullName?: InputMaybe; + therapyName?: InputMaybe; + featureAlias?: InputMaybe; + diseaseName?: InputMaybe; featureType?: InputMaybe; sortBy?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -7862,14 +7900,14 @@ export type BrowseFeaturesFieldsFragment = { __typename: 'BrowseFeature', id: nu export type FlagListQueryVariables = Exact<{ flaggable?: InputMaybe; - flaggingUserId?: InputMaybe; - resolvingUserId?: InputMaybe; + flaggingUserId?: InputMaybe; + resolvingUserId?: InputMaybe; state?: InputMaybe; sortBy?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -7880,7 +7918,7 @@ export type FlagListFragment = { __typename: 'FlagConnection', totalCount: numbe export type FlagFragment = { __typename: 'Flag', id: number, state: FlagState, flaggable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'BrowseFeature', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Factor', id: number, name: string, link: string } | { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'Feature', deprecated: boolean, id: number, name: string, link: string } | { __typename: 'Fusion', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, id: number, name: string, link: string } | { __typename: 'Variant', deprecated: boolean, id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string }, openActivity: { __typename: 'FlagEntityActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, resolutionActivity?: { __typename: 'ResolveFlagActivity', id: number, createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; export type FlagPopoverQueryVariables = Exact<{ - flagId: Scalars['Int']; + flagId: Scalars['Int']['input']; }>; @@ -7889,11 +7927,11 @@ export type FlagPopoverQuery = { __typename: 'Query', flag?: { __typename: 'Flag export type FlagPopoverFragment = { __typename: 'Flag', id: number, name: string, state: FlagState, createdAt: any, flaggingUser: { __typename: 'User', id: number, displayName: string, role: UserRole }, flaggable: { __typename: 'Assertion', status: EvidenceStatus, id: number, link: string, name: string, flagged: boolean } | { __typename: 'BrowseFeature', id: number, link: string, name: string, flagged: boolean } | { __typename: 'EvidenceItem', status: EvidenceStatus, id: number, link: string, name: string, flagged: boolean } | { __typename: 'Factor', id: number, link: string, name: string, flagged: boolean } | { __typename: 'FactorVariant', deprecated: boolean, id: number, link: string, name: string, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, id: number, link: string, name: string, flagged: boolean } | { __typename: 'Fusion', id: number, link: string, name: string, flagged: boolean } | { __typename: 'FusionVariant', deprecated: boolean, id: number, link: string, name: string, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Gene', id: number, link: string, name: string, flagged: boolean } | { __typename: 'GeneVariant', deprecated: boolean, id: number, link: string, name: string, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'MolecularProfile', id: number, link: string, name: string, flagged: boolean } | { __typename: 'Variant', deprecated: boolean, id: number, link: string, name: string, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', id: number, link: string, name: string, flagged: boolean }, openActivity: { __typename: 'FlagEntityActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } }; export type FusionMenuQueryVariables = Exact<{ - genePartnerId?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + genePartnerId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -7902,9 +7940,9 @@ export type FusionMenuQuery = { __typename: 'Query', fusions: { __typename: 'Fus export type MenuFusionFragment = { __typename: 'Fusion', id: number, name: string, link: string, flagged: boolean, deprecated: boolean }; export type QuicksearchQueryVariables = Exact<{ - query: Scalars['String']; + query: Scalars['String']['input']; types?: InputMaybe | SearchableEntities>; - highlightMatches?: InputMaybe; + highlightMatches?: InputMaybe; }>; @@ -7913,7 +7951,7 @@ export type QuicksearchQuery = { __typename: 'Query', search: Array<{ __typename export type QuicksearchResultFragment = { __typename: 'SearchResult', id: number, resultType: SearchableEntities, name: string, matchingText: string }; export type MolecularProfilePopoverQueryVariables = Exact<{ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; }>; @@ -7922,18 +7960,18 @@ export type MolecularProfilePopoverQuery = { __typename: 'Query', molecularProfi export type MolecularProfilePopoverFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, molecularProfileAliases: Array, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }>, evidenceItems: { __typename: 'EvidenceItemConnection', totalCount: number }, assertions: { __typename: 'AssertionConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number } }; export type BrowseMolecularProfilesQueryVariables = Exact<{ - molecularProfileName?: InputMaybe; - variantName?: InputMaybe; - variantId?: InputMaybe; - featureName?: InputMaybe; - diseaseName?: InputMaybe; - therapyName?: InputMaybe; - molecularProfileAlias?: InputMaybe; + molecularProfileName?: InputMaybe; + variantName?: InputMaybe; + variantId?: InputMaybe; + featureName?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + molecularProfileAlias?: InputMaybe; sortBy?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -7942,13 +7980,13 @@ export type BrowseMolecularProfilesQuery = { __typename: 'Query', browseMolecula export type BrowseMolecularProfilesFieldsFragment = { __typename: 'BrowseMolecularProfile', id: number, name: string, evidenceItemCount: number, molecularProfileScore: number, assertionCount: number, variantCount: number, link: string, deprecated: boolean, aliases: Array<{ __typename: 'MolecularProfileAlias', name: string }>, variants: Array<{ __typename: 'LinkableVariant', id: number, name: string, link: string, matchText?: string | undefined, feature?: { __typename: 'LinkableFeature', id: number, link: string, name: string } | undefined }>, therapies: Array<{ __typename: 'LinkableTherapy', id: number, name: string, link: string, deprecated: boolean }>, diseases: Array<{ __typename: 'LinkableDisease', id: number, name: string, link: string, deprecated: boolean }> }; export type MolecularProfileMenuQueryVariables = Exact<{ - geneId?: InputMaybe; - featureId?: InputMaybe; - mpName?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + geneId?: InputMaybe; + featureId?: InputMaybe; + mpName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; evidenceStatusFilter?: InputMaybe; }>; @@ -7961,10 +7999,10 @@ export type LeaderboardOrganizationFieldsFragment = { __typename: 'LeaderboardOr export type OrganizationCommentsLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -7972,10 +8010,10 @@ export type OrganizationCommentsLeaderboardQuery = { __typename: 'Query', organi export type OrganizationRevisionsLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -7983,10 +8021,10 @@ export type OrganizationRevisionsLeaderboardQuery = { __typename: 'Query', organ export type OrganizationModerationLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -7994,17 +8032,17 @@ export type OrganizationModerationLeaderboardQuery = { __typename: 'Query', orga export type OrganizationSubmissionsLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; export type OrganizationSubmissionsLeaderboardQuery = { __typename: 'Query', organizationLeaderboards: { __typename: 'OrganizationLeaderboards', submissionsLeaderboard: { __typename: 'LeaderboardOrganizationConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardOrganizationEdge', cursor: string, node?: { __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined }> } } }; export type OrgPopoverQueryVariables = Exact<{ - orgId: Scalars['Int']; + orgId: Scalars['Int']['input']; }>; @@ -8013,12 +8051,12 @@ export type OrgPopoverQuery = { __typename: 'Query', organization?: { __typename export type OrgPopoverFragment = { __typename: 'Organization', id: number, profileImagePath?: string | undefined, name: string, description: string, url: string }; export type OrganizationsBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - id?: InputMaybe; - orgName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + id?: InputMaybe; + orgName?: InputMaybe; sortBy?: InputMaybe; }>; @@ -8028,19 +8066,19 @@ export type OrganizationsBrowseQuery = { __typename: 'Query', organizations: { _ export type OrganizationBrowseTableRowFieldsFragment = { __typename: 'BrowseOrganization', id: number, name: string, description: string, url: string, memberCount: number, activityCount: number, mostRecentActivityTimestamp?: any | undefined, childOrganizations: Array<{ __typename: 'Organization', id: number, name: string }> }; export type PhenotypePopoverQueryVariables = Exact<{ - phenotypeId: Scalars['Int']; + phenotypeId: Scalars['Int']['input']; }>; export type PhenotypePopoverQuery = { __typename: 'Query', phenotypePopover?: { __typename: 'PhenotypePopover', id: number, name: string, url: string, hpoId: string, assertionCount: number, evidenceItemCount: number, molecularProfileCount: number, link: string } | undefined }; export type PhenotypesBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - name?: InputMaybe; - hpoId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + name?: InputMaybe; + hpoId?: InputMaybe; sortBy?: InputMaybe; }>; @@ -8064,7 +8102,7 @@ export type RejectRevisionMutationVariables = Exact<{ export type RejectRevisionMutation = { __typename: 'Mutation', rejectRevisions?: { __typename: 'RejectRevisionsPayload', revisions: Array<{ __typename: 'Revision', id: number }> } | undefined }; export type ValidateRevisionsForAcceptanceQueryVariables = Exact<{ - ids: Array | Scalars['Int']; + ids: Array | Scalars['Int']['input']; }>; @@ -8073,7 +8111,7 @@ export type ValidateRevisionsForAcceptanceQuery = { __typename: 'Query', validat export type ValidationErrorFragment = { __typename: 'FieldValidationError', fieldName: string, error: string }; export type RevisionPopoverQueryVariables = Exact<{ - revisionId: Scalars['Int']; + revisionId: Scalars['Int']['input']; }>; @@ -8083,14 +8121,14 @@ export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name export type RevisionsQueryVariables = Exact<{ subject?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - fieldName?: InputMaybe; - originatingUserId?: InputMaybe; - resolvingUserId?: InputMaybe; - revisionSetId?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + fieldName?: InputMaybe; + originatingUserId?: InputMaybe; + resolvingUserId?: InputMaybe; + revisionSetId?: InputMaybe; status?: InputMaybe; }>; @@ -8139,20 +8177,20 @@ export type CivicStatsQuery = { __typename: 'Query', timepointStats: { __typenam export type TimepointCountFragment = { __typename: 'TimePointCounts', allTime: number, newThisMonth: number, newThisWeek: number, newThisYear: number }; export type BrowseSourceSuggestionsQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; sortBy?: InputMaybe; sourceType?: InputMaybe; - citationId?: InputMaybe; - sourceId?: InputMaybe; - molecularProfileName?: InputMaybe; - diseaseName?: InputMaybe; - comment?: InputMaybe; - submitter?: InputMaybe; - citation?: InputMaybe; - submitterId?: InputMaybe; + citationId?: InputMaybe; + sourceId?: InputMaybe; + molecularProfileName?: InputMaybe; + diseaseName?: InputMaybe; + comment?: InputMaybe; + submitter?: InputMaybe; + citation?: InputMaybe; + submitterId?: InputMaybe; status?: InputMaybe; }>; @@ -8169,7 +8207,7 @@ export type UpdateSourceSuggestionStatusMutationVariables = Exact<{ export type UpdateSourceSuggestionStatusMutation = { __typename: 'Mutation', updateSourceSuggestionStatus?: { __typename: 'UpdateSourceSuggestionStatusPayload', sourceSuggestion: { __typename: 'SourceSuggestion', id: number, status: SourceSuggestionStatus } } | undefined }; export type SourcePopoverQueryVariables = Exact<{ - sourceId: Scalars['Int']; + sourceId: Scalars['Int']['input']; }>; @@ -8178,19 +8216,19 @@ export type SourcePopoverQuery = { __typename: 'Query', sourcePopover?: { __type export type SourcePopoverFragment = { __typename: 'SourcePopover', id: number, title?: string | undefined, fullJournalTitle?: string | undefined, evidenceItemCount: number, citation?: string | undefined, citationId: string, displayType: string, sourceUrl?: string | undefined, retractionDate?: any | undefined, retractionReasons?: string | undefined, retractionNature?: string | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', id: number, nctId: string, link: string }> | undefined }; export type BrowseSourcesQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; sortBy?: InputMaybe; - name?: InputMaybe; - year?: InputMaybe; + name?: InputMaybe; + year?: InputMaybe; sourceType?: InputMaybe; - citationId?: InputMaybe; - author?: InputMaybe; - journal?: InputMaybe; - clinicalTrialId?: InputMaybe; - openAccess?: InputMaybe; + citationId?: InputMaybe; + author?: InputMaybe; + journal?: InputMaybe; + clinicalTrialId?: InputMaybe; + openAccess?: InputMaybe; }>; @@ -8199,20 +8237,20 @@ export type BrowseSourcesQuery = { __typename: 'Query', browseSources: { __typen export type BrowseSourceRowFieldsFragment = { __typename: 'BrowseSource', id: number, authors: Array, citationId: number, evidenceItemCount: number, sourceSuggestionCount: number, journal?: string | undefined, name?: string | undefined, publicationYear?: number | undefined, sourceType: SourceSource, citation: string, displayType: string, link: string, openAccess: boolean, deprecated: boolean }; export type TherapyPopoverQueryVariables = Exact<{ - therapyId: Scalars['Int']; + therapyId: Scalars['Int']['input']; }>; export type TherapyPopoverQuery = { __typename: 'Query', therapyPopover?: { __typename: 'TherapyPopover', id: number, name: string, therapyUrl?: string | undefined, ncitId?: string | undefined, therapyAliases: Array, assertionCount: number, evidenceItemCount: number, molecularProfileCount: number, link: string, deprecated: boolean } | undefined }; export type TherapiesBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - name?: InputMaybe; - ncitId?: InputMaybe; - therapyAlias?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + name?: InputMaybe; + ncitId?: InputMaybe; + therapyAlias?: InputMaybe; sortBy?: InputMaybe; }>; @@ -8225,10 +8263,10 @@ export type LeaderboardUserFieldsFragment = { __typename: 'LeaderboardUser', id: export type UserCommentsLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -8236,10 +8274,10 @@ export type UserCommentsLeaderboardQuery = { __typename: 'Query', userLeaderboar export type UserRevisionsLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -8247,10 +8285,10 @@ export type UserRevisionsLeaderboardQuery = { __typename: 'Query', userLeaderboa export type UserModerationLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -8258,17 +8296,17 @@ export type UserModerationLeaderboardQuery = { __typename: 'Query', userLeaderbo export type UserSubmissionsLeaderboardQueryVariables = Exact<{ window?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; export type UserSubmissionsLeaderboardQuery = { __typename: 'Query', userLeaderboards: { __typename: 'UserLeaderboards', submissionsLeaderboard: { __typename: 'LeaderboardUserConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardUserEdge', cursor: string, node?: { __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined }> } } }; export type UserPopoverQueryVariables = Exact<{ - userId: Scalars['Int']; + userId: Scalars['Int']['input']; }>; @@ -8277,11 +8315,11 @@ export type UserPopoverQuery = { __typename: 'Query', user?: { __typename: 'User export type PopoverUserFragment = { __typename: 'User', id: number, profileImagePath?: string | undefined, displayName: string, bio?: string | undefined, role: UserRole, organizations: Array<{ __typename: 'Organization', id: number, name: string }> }; export type UsersBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - userName?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + userName?: InputMaybe; orgName?: InputMaybe; userRole?: InputMaybe; sortBy?: InputMaybe; @@ -8293,7 +8331,7 @@ export type UsersBrowseQuery = { __typename: 'Query', users: { __typename: 'Brow export type UserBrowseTableRowFieldsFragment = { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username: string, role: UserRole, evidenceCount: number, revisionCount: number, profileImagePath?: string | undefined, mostRecentActivityTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }> }; export type VariantGroupPopoverQueryVariables = Exact<{ - variantGroupId: Scalars['Int']; + variantGroupId: Scalars['Int']['input']; }>; @@ -8302,14 +8340,14 @@ export type VariantGroupPopoverQuery = { __typename: 'Query', variantGroup?: { _ export type VariantGroupPopoverFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantInterfaceConnection', edges: Array<{ __typename: 'VariantInterfaceEdge', node?: { __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'FusionVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | undefined }> }, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string, deprecated: boolean }> }; export type BrowseVariantGroupsQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; sortBy?: InputMaybe; - name?: InputMaybe; - featureNames?: InputMaybe; - variantNames?: InputMaybe; + name?: InputMaybe; + featureNames?: InputMaybe; + variantNames?: InputMaybe; }>; @@ -8318,7 +8356,7 @@ export type BrowseVariantGroupsQuery = { __typename: 'Query', browseVariantGroup export type BrowseVariantGroupRowFieldsFragment = { __typename: 'BrowseVariantGroup', id: number, name: string, link: string, featureNames: Array, variantNames: Array, variantCount: number, evidenceItemCount: number }; export type VariantTypePopoverQueryVariables = Exact<{ - variantTypeId: Scalars['Int']; + variantTypeId: Scalars['Int']['input']; }>; @@ -8327,12 +8365,12 @@ export type VariantTypePopoverQuery = { __typename: 'Query', variantTypePopover? export type VariantTypePopoverFragment = { __typename: 'VariantTypePopover', id: number, name: string, url?: string | undefined, soid: string, variantCount: number }; export type VariantTypesBrowseQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - name?: InputMaybe; - soid?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + name?: InputMaybe; + soid?: InputMaybe; sortBy?: InputMaybe; }>; @@ -8342,7 +8380,7 @@ export type VariantTypesBrowseQuery = { __typename: 'Query', variantTypes: { __t export type VariantTypeBrowseTableRowFieldsFragment = { __typename: 'BrowseVariantType', id: number, name: string, soid: string, url?: string | undefined, variantCount: number, link: string }; export type CoordinatesCardQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -8361,7 +8399,7 @@ export type CoordinatesCardFieldsFragment = CoordinatesCardFields_FactorVariant_ export type ExonCoordinateFieldsFragment = { __typename: 'ExonCoordinate', referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined, exon?: number | undefined, exonOffset?: number | undefined, exonOffsetDirection?: Direction | undefined, ensemblId?: string | undefined, strand?: Direction | undefined, coordinateType: ExonCoordinateType }; export type VariantPopoverQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -8378,14 +8416,14 @@ type VariantPopoverFields_Variant_Fragment = { __typename: 'Variant', id: number export type VariantPopoverFieldsFragment = VariantPopoverFields_FactorVariant_Fragment | VariantPopoverFields_FusionVariant_Fragment | VariantPopoverFields_GeneVariant_Fragment | VariantPopoverFields_Variant_Fragment; export type VariantsMenuQueryVariables = Exact<{ - featureId?: InputMaybe; - variantName?: InputMaybe; - variantTypeIds?: InputMaybe | Scalars['Int']>; - hasNoVariantType?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + featureId?: InputMaybe; + variantName?: InputMaybe; + variantTypeIds?: InputMaybe | Scalars['Int']['input']>; + hasNoVariantType?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; sortBy?: InputMaybe; }>; @@ -8393,7 +8431,7 @@ export type VariantsMenuQueryVariables = Exact<{ export type VariantsMenuQuery = { __typename: 'Query', variants: { __typename: 'VariantInterfaceConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean }, edges: Array<{ __typename: 'VariantInterfaceEdge', cursor: string, node?: { __typename: 'FactorVariant', id: number, name: string, link: string, flagged: boolean, deprecated: boolean } | { __typename: 'FusionVariant', id: number, name: string, link: string, flagged: boolean, deprecated: boolean } | { __typename: 'GeneVariant', id: number, name: string, link: string, flagged: boolean, deprecated: boolean } | { __typename: 'Variant', id: number, name: string, link: string, flagged: boolean, deprecated: boolean } | undefined }> } }; export type VariantTypesForFeatureQueryVariables = Exact<{ - featureId?: InputMaybe; + featureId?: InputMaybe; }>; @@ -8412,21 +8450,21 @@ type MenuVariant_Variant_Fragment = { __typename: 'Variant', id: number, name: s export type MenuVariantFragment = MenuVariant_FactorVariant_Fragment | MenuVariant_FusionVariant_Fragment | MenuVariant_GeneVariant_Fragment | MenuVariant_Variant_Fragment; export type BrowseVariantsQueryVariables = Exact<{ - variantName?: InputMaybe; - featureName?: InputMaybe; - diseaseName?: InputMaybe; - therapyName?: InputMaybe; - variantAlias?: InputMaybe; - variantTypeId?: InputMaybe; - variantGroupId?: InputMaybe; - variantTypeName?: InputMaybe; - hasNoVariantType?: InputMaybe; + variantName?: InputMaybe; + featureName?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + variantAlias?: InputMaybe; + variantTypeId?: InputMaybe; + variantGroupId?: InputMaybe; + variantTypeName?: InputMaybe; + hasNoVariantType?: InputMaybe; variantCategory?: InputMaybe; sortBy?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -8452,83 +8490,83 @@ export type AddCommentMutationVariables = Exact<{ export type AddCommentMutation = { __typename: 'Mutation', addComment?: { __typename: 'AddCommentPayload', clientMutationId?: string | undefined, comment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, deleted: boolean, deletedAt?: any | undefined, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined } | undefined }; export type PreviewCommentQueryVariables = Exact<{ - commentText: Scalars['String']; + commentText: Scalars['String']['input']; }>; export type PreviewCommentQuery = { __typename: 'Query', previewCommentText: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> }; export type UserTypeaheadQueryVariables = Exact<{ - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }>; export type UserTypeaheadQuery = { __typename: 'Query', userTypeahead: Array<{ __typename: 'User', username: string }> }; export type EntityTypeaheadQueryVariables = Exact<{ - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; }>; export type EntityTypeaheadQuery = { __typename: 'Query', entityTypeahead: Array<{ __typename: 'CommentTagSegment', entityId: number, tagType: TaggableEntity, displayName: string }> }; export type DeprecateComplexMolecularProfileMutationVariables = Exact<{ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; deprecationReason: MolecularProfileDeprecationReasonMutationInput; - comment: Scalars['String']; - organizationId?: InputMaybe; + comment: Scalars['String']['input']; + organizationId?: InputMaybe; }>; export type DeprecateComplexMolecularProfileMutation = { __typename: 'Mutation', deprecateComplexMolecularProfile?: { __typename: 'DeprecateComplexMolecularProfilePayload', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string } | undefined } | undefined }; export type EvidenceCountsForMolecularProfileQueryVariables = Exact<{ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; }>; export type EvidenceCountsForMolecularProfileQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string, evidenceCountsByStatus: { __typename: 'EvidenceItemsByStatus', submittedCount: number, acceptedCount: number } } | undefined }; export type LinkableGeneQueryVariables = Exact<{ - geneId: Scalars['Int']; + geneId: Scalars['Int']['input']; }>; export type LinkableGeneQuery = { __typename: 'Query', gene?: { __typename: 'Gene', id: number, name: string, link: string } | undefined }; export type LinkableVariantQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; export type LinkableVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; export type LinkableTherapyQueryVariables = Exact<{ - therapyId: Scalars['Int']; + therapyId: Scalars['Int']['input']; }>; export type LinkableTherapyQuery = { __typename: 'Query', therapy?: { __typename: 'Therapy', id: number, name: string, link: string } | undefined }; export type LinkableFeatureQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; export type LinkableFeatureQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, link: string, featureType: FeatureInstanceTypes } | undefined }; export type DeprecateFeatureMutationVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; deprecationReason: FeatureDeprecationReason; - comment: Scalars['String']; - organizationId?: InputMaybe; + comment: Scalars['String']['input']; + organizationId?: InputMaybe; }>; export type DeprecateFeatureMutation = { __typename: 'Mutation', deprecateFeature?: { __typename: 'DeprecateFeaturePayload', feature?: { __typename: 'Feature', id: number, name: string } | undefined } | undefined }; export type VariantsForFeatureQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; @@ -8575,24 +8613,24 @@ export type CountriesQueryVariables = Exact<{ [key: string]: never; }>; export type CountriesQuery = { __typename: 'Query', countries: Array<{ __typename: 'Country', id: number, name: string }> }; export type DeprecateVariantMutationVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; deprecationReason: VariantDeprecationReason; - comment: Scalars['String']; - organizationId?: InputMaybe; + comment: Scalars['String']['input']; + organizationId?: InputMaybe; }>; export type DeprecateVariantMutation = { __typename: 'Mutation', deprecateVariant?: { __typename: 'DeprecateVariantPayload', newlyDeprecatedMolecularProfiles?: Array<{ __typename: 'MolecularProfile', id: number }> | undefined, variant?: { __typename: 'FactorVariant', id: number, name: string } | { __typename: 'FusionVariant', id: number, name: string } | { __typename: 'GeneVariant', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | undefined } | undefined }; export type MolecularProfilesForVariantQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; export type MolecularProfilesForVariantQuery = { __typename: 'Query', molecularProfiles: { __typename: 'MolecularProfileConnection', nodes: Array<{ __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, evidenceCountsByStatus: { __typename: 'EvidenceItemsByStatus', submittedCount: number, acceptedCount: number } }> } }; export type AssertionRevisableFieldsQueryVariables = Exact<{ - assertionId: Scalars['Int']; + assertionId: Scalars['Int']['input']; }>; @@ -8615,7 +8653,7 @@ export type SubmitAssertionMutationVariables = Exact<{ export type SubmitAssertionMutation = { __typename: 'Mutation', submitAssertion?: { __typename: 'SubmitAssertionPayload', clientMutationId?: string | undefined, assertion: { __typename: 'Assertion', id: number } } | undefined }; export type EvidenceItemRevisableFieldsQueryVariables = Exact<{ - evidenceId: Scalars['Int']; + evidenceId: Scalars['Int']['input']; }>; @@ -8631,16 +8669,16 @@ export type SuggestEvidenceItemRevisionMutationVariables = Exact<{ export type SuggestEvidenceItemRevisionMutation = { __typename: 'Mutation', suggestEvidenceItemRevision?: { __typename: 'SuggestEvidenceItemRevisionPayload', clientMutationId?: string | undefined, evidenceItem: { __typename: 'EvidenceItem', id: number }, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean }> } | undefined }; export type EvidenceFieldsFromSourceSuggestionQueryVariables = Exact<{ - sourceId?: InputMaybe; - molecularProfileId?: InputMaybe; - diseaseId?: InputMaybe; + sourceId?: InputMaybe; + molecularProfileId?: InputMaybe; + diseaseId?: InputMaybe; }>; export type EvidenceFieldsFromSourceSuggestionQuery = { __typename: 'Query', sourceSuggestionValues: { __typename: 'SourceSuggestionValues', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, source?: { __typename: 'Source', id: number, sourceType: SourceSource, citationId: string, citation?: string | undefined, link: string, deprecated: boolean } | undefined } }; export type EvidenceSubmittableFieldsQueryVariables = Exact<{ - evidenceId: Scalars['Int']; + evidenceId: Scalars['Int']['input']; }>; @@ -8656,22 +8694,22 @@ export type SubmitEvidenceItemMutationVariables = Exact<{ export type SubmitEvidenceItemMutation = { __typename: 'Mutation', submitEvidence?: { __typename: 'SubmitEvidenceItemPayload', clientMutationId?: string | undefined, evidenceItem: { __typename: 'EvidenceItem', id: number } } | undefined }; export type ExistingEvidenceCountQueryVariables = Exact<{ - molecularProfileId: Scalars['Int']; - sourceId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; + sourceId: Scalars['Int']['input']; }>; export type ExistingEvidenceCountQuery = { __typename: 'Query', evidenceItems: { __typename: 'EvidenceItemConnection', totalCount: number } }; export type FullyCuratedSourceQueryVariables = Exact<{ - sourceId: Scalars['Int']; + sourceId: Scalars['Int']['input']; }>; export type FullyCuratedSourceQuery = { __typename: 'Query', source?: { __typename: 'Source', fullyCurated: boolean } | undefined }; export type FactorRevisableFieldsQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; @@ -8687,7 +8725,7 @@ export type SuggestFactorRevisionMutationVariables = Exact<{ export type SuggestFactorRevisionMutation = { __typename: 'Mutation', suggestFactorRevision?: { __typename: 'SuggestFactorRevisionPayload', clientMutationId?: string | undefined, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean, id: number, fieldName: string }> } | undefined }; export type FactorVariantRevisableFieldsQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -8703,7 +8741,7 @@ export type SuggestFactorVariantRevisionMutationVariables = Exact<{ export type SuggestFactorVariantRevisionMutation = { __typename: 'Mutation', suggestFactorVariantRevision?: { __typename: 'SuggestFactorVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'FactorVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; export type FusionRevisableFieldsQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; @@ -8719,7 +8757,7 @@ export type SuggestFusionRevisionMutationVariables = Exact<{ export type SuggestFusionRevisionMutation = { __typename: 'Mutation', suggestFusionRevision?: { __typename: 'SuggestFusionRevisionPayload', clientMutationId?: string | undefined, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean, id: number, fieldName: string }> } | undefined }; export type FusionVariantRevisableFieldsQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -8735,7 +8773,7 @@ export type SuggestFusionVariantRevisionMutationVariables = Exact<{ export type SuggestFusionVariantRevisionMutation = { __typename: 'Mutation', suggestFusionVariantRevision?: { __typename: 'SuggestFusionVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'FusionVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; export type GeneRevisableFieldsQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; @@ -8751,7 +8789,7 @@ export type SuggestGeneRevisionMutationVariables = Exact<{ export type SuggestGeneRevisionMutation = { __typename: 'Mutation', suggestGeneRevision?: { __typename: 'SuggestGeneRevisionPayload', clientMutationId?: string | undefined, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean, id: number, fieldName: string }> } | undefined }; export type GeneVariantRevisableFieldsQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -8769,7 +8807,7 @@ export type SuggestGeneVariantRevisionMutationVariables = Exact<{ export type SuggestGeneVariantRevisionMutation = { __typename: 'Mutation', suggestGeneVariantRevision?: { __typename: 'SuggestGeneVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'GeneVariant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; export type MolecularProfileRevisableFieldsQueryVariables = Exact<{ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; }>; @@ -8792,14 +8830,14 @@ export type SubmitSourceMutationVariables = Exact<{ export type SubmitSourceMutation = { __typename: 'Mutation', suggestSource?: { __typename: 'SuggestSourcePayload', clientMutationId?: string | undefined, sourceSuggestion: { __typename: 'SourceSuggestion', id: number } } | undefined }; export type SourceSuggestionChecksQueryVariables = Exact<{ - sourceId: Scalars['Int']; + sourceId: Scalars['Int']['input']; }>; export type SourceSuggestionChecksQuery = { __typename: 'Query', source?: { __typename: 'Source', fullyCurated: boolean } | undefined, sourceSuggestions: { __typename: 'SourceSuggestionConnection', filteredCount: number } }; export type VariantGroupRevisableFieldsQueryVariables = Exact<{ - variantGroupId: Scalars['Int']; + variantGroupId: Scalars['Int']['input']; }>; @@ -8815,7 +8853,7 @@ export type SuggestVariantGroupRevisionMutationVariables = Exact<{ export type SuggestVariantGroupRevisionMutation = { __typename: 'Mutation', suggestVariantGroupRevision?: { __typename: 'SuggestVariantGroupRevisionPayload', clientMutationId?: string | undefined, variantGroup: { __typename: 'VariantGroup', id: number }, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean, id: number, fieldName: string }> } | undefined }; export type VariantGroupSubmittableFieldsQueryVariables = Exact<{ - variantGroupId: Scalars['Int']; + variantGroupId: Scalars['Int']['input']; }>; @@ -8831,26 +8869,26 @@ export type SubmitVariantGroupMutationVariables = Exact<{ export type SubmitVariantGroupMutation = { __typename: 'Mutation', submitVariantGroup?: { __typename: 'SubmitVariantGroupPayload', clientMutationId?: string | undefined, variantGroup: { __typename: 'VariantGroup', id: number } } | undefined }; export type EntityTagsTestQueryVariables = Exact<{ - molecularProfileId: Scalars['Int']; - geneId: Scalars['Int']; - variantId: Scalars['Int']; - therapyId: Scalars['Int']; - diseaseId: Scalars['Int']; - eid: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; + geneId: Scalars['Int']['input']; + variantId: Scalars['Int']['input']; + therapyId: Scalars['Int']['input']; + diseaseId: Scalars['Int']['input']; + eid: Scalars['Int']['input']; }>; export type EntityTagsTestQuery = { __typename: 'Query', evidenceItem?: { __typename: 'EvidenceItem', id: number, name: string, link: string } | undefined, molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, gene?: { __typename: 'Gene', id: number, name: string, link: string } | undefined, variant?: { __typename: 'FactorVariant', id: number, name: string, link: string } | { __typename: 'FusionVariant', id: number, name: string, link: string } | { __typename: 'GeneVariant', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined, therapy?: { __typename: 'Therapy', id: number, name: string, link: string } | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined }; export type AcmgCodeSelectTypeaheadQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']['input']; }>; export type AcmgCodeSelectTypeaheadQuery = { __typename: 'Query', acmgCodesTypeahead: Array<{ __typename: 'AcmgCode', id: number, code: string, name: string, description: string, tooltip: string }> }; export type AcmgCodeSelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -8859,14 +8897,14 @@ export type AcmgCodeSelectTagQuery = { __typename: 'Query', acmgCode?: { __typen export type AcmgCodeSelectTypeaheadFieldsFragment = { __typename: 'AcmgCode', id: number, code: string, name: string, description: string, tooltip: string }; export type ClingenCodeSelectTypeaheadQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']['input']; }>; export type ClingenCodeSelectTypeaheadQuery = { __typename: 'Query', clingenCodesTypeahead: Array<{ __typename: 'ClingenCode', id: number, code: string, name: string, description: string, tooltip: string, exclusive: boolean }> }; export type ClingenCodeSelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -8875,8 +8913,8 @@ export type ClingenCodeSelectTagQuery = { __typename: 'Query', clingenCode?: { _ export type ClingenCodeSelectTypeaheadFieldsFragment = { __typename: 'ClingenCode', id: number, code: string, name: string, description: string, tooltip: string, exclusive: boolean }; export type QuickAddDiseaseMutationVariables = Exact<{ - name: Scalars['String']; - doid?: InputMaybe; + name: Scalars['String']['input']; + doid?: InputMaybe; }>; @@ -8885,14 +8923,14 @@ export type QuickAddDiseaseMutation = { __typename: 'Mutation', addDisease?: { _ export type QuickAddDiseaseFieldsFragment = { __typename: 'AddDiseasePayload', new: boolean, disease: { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array } }; export type DiseaseSelectTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; + name: Scalars['String']['input']; }>; export type DiseaseSelectTypeaheadQuery = { __typename: 'Query', diseaseTypeahead: Array<{ __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array }> }; export type DiseaseSelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -8901,32 +8939,32 @@ export type DiseaseSelectTagQuery = { __typename: 'Query', disease?: { __typenam export type DiseaseSelectTypeaheadFieldsFragment = { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array }; export type EvidenceManagerQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; - diseaseName?: InputMaybe; - therapyName?: InputMaybe; - id?: InputMaybe; - description?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + id?: InputMaybe; + description?: InputMaybe; evidenceLevel?: InputMaybe; evidenceDirection?: InputMaybe; significance?: InputMaybe; evidenceType?: InputMaybe; - rating?: InputMaybe; + rating?: InputMaybe; variantOrigin?: InputMaybe; - variantId?: InputMaybe; - molecularProfileId?: InputMaybe; - assertionId?: InputMaybe; - organizationId?: InputMaybe; - userId?: InputMaybe; + variantId?: InputMaybe; + molecularProfileId?: InputMaybe; + assertionId?: InputMaybe; + organizationId?: InputMaybe; + userId?: InputMaybe; sortBy?: InputMaybe; - phenotypeId?: InputMaybe; - diseaseId?: InputMaybe; - therapyId?: InputMaybe; - sourceId?: InputMaybe; - clinicalTrialId?: InputMaybe; - molecularProfileName?: InputMaybe; + phenotypeId?: InputMaybe; + diseaseId?: InputMaybe; + therapyId?: InputMaybe; + sourceId?: InputMaybe; + clinicalTrialId?: InputMaybe; + molecularProfileName?: InputMaybe; status?: InputMaybe; }>; @@ -8936,14 +8974,14 @@ export type EvidenceManagerQuery = { __typename: 'Query', evidenceItems: { __typ export type EvidenceManagerFieldsFragment = { __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus, flagged: boolean, therapyInteractionType?: TherapyInteraction | undefined, description: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, disease?: { __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, deprecated: boolean }>, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> } }; export type EvidenceSelectTypeaheadQueryVariables = Exact<{ - eid: Scalars['Int']; + eid: Scalars['Int']['input']; }>; export type EvidenceSelectTypeaheadQuery = { __typename: 'Query', evidenceItems: { __typename: 'EvidenceItemConnection', nodes: Array<{ __typename: 'EvidenceItem', id: number, name: string, link: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, status: EvidenceStatus }> } }; export type EvidenceSelectTagQueryVariables = Exact<{ - eid: Scalars['Int']; + eid: Scalars['Int']['input']; }>; @@ -8952,18 +8990,18 @@ export type EvidenceSelectTagQuery = { __typename: 'Query', evidenceItem?: { __t export type EvidenceSelectTypeaheadFieldsFragment = { __typename: 'EvidenceItem', id: number, name: string, link: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, status: EvidenceStatus }; export type QuickAddFeatureMutationVariables = Exact<{ - name: Scalars['String']; - organizationId?: InputMaybe; + name: Scalars['String']['input']; + organizationId?: InputMaybe; featureType: CreateableFeatureTypes; }>; -export type QuickAddFeatureMutation = { __typename: 'Mutation', createFeature?: { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } } | undefined }; +export type QuickAddFeatureMutation = { __typename: 'Mutation', createFeature?: { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } } } | undefined }; -export type QuickAddFeatureFieldsFragment = { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } }; +export type QuickAddFeatureFieldsFragment = { __typename: 'CreateFeaturePayload', clientMutationId?: string | undefined, new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } } }; export type FeatureSelectTypeaheadQueryVariables = Exact<{ - queryTerm: Scalars['String']; + queryTerm: Scalars['String']['input']; featureType?: InputMaybe; }>; @@ -8971,7 +9009,7 @@ export type FeatureSelectTypeaheadQueryVariables = Exact<{ export type FeatureSelectTypeaheadQuery = { __typename: 'Query', featureTypeahead: Array<{ __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureType: FeatureInstanceTypes, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene', entrezId: number } }> }; export type FeatureSelectTagQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; @@ -8980,26 +9018,26 @@ export type FeatureSelectTagQuery = { __typename: 'Query', feature?: { __typenam export type FeatureSelectTypeaheadFieldsFragment = { __typename: 'Feature', id: number, name: string, featureAliases: Array, link: string, featureType: FeatureInstanceTypes, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene', entrezId: number } }; export type SelectOrCreateFusionMutationVariables = Exact<{ - organizationId?: InputMaybe; - fivePrimeGeneId?: InputMaybe; + organizationId?: InputMaybe; + fivePrimeGeneId?: InputMaybe; fivePrimePartnerStatus: FusionPartnerStatus; - threePrimeGeneId?: InputMaybe; + threePrimeGeneId?: InputMaybe; threePrimePartnerStatus: FusionPartnerStatus; }>; -export type SelectOrCreateFusionMutation = { __typename: 'Mutation', createFusionFeature?: { __typename: 'CreateFusionFeaturePayload', new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } } | undefined }; +export type SelectOrCreateFusionMutation = { __typename: 'Mutation', createFusionFeature?: { __typename: 'CreateFusionFeaturePayload', new: boolean, feature: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } } } | undefined }; export type MolecularProfileSelectTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; - geneId?: InputMaybe; + name: Scalars['String']['input']; + geneId?: InputMaybe; }>; export type MolecularProfileSelectTypeaheadQuery = { __typename: 'Query', molecularProfiles: { __typename: 'MolecularProfileConnection', nodes: Array<{ __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array, deprecated: boolean, flagged: boolean }> } }; export type MolecularProfileSelectTagQueryVariables = Exact<{ - molecularProfileId: Scalars['Int']; + molecularProfileId: Scalars['Int']['input']; }>; @@ -9015,7 +9053,7 @@ export type PreviewMolecularProfileName2QueryVariables = Exact<{ export type PreviewMolecularProfileName2Query = { __typename: 'Query', previewMolecularProfileName: { __typename: 'MolecularProfileNamePreview', existingMolecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined, segments: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }>, deprecatedVariants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'FusionVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> } }; export type MpExpressionEditorPrepopulateQueryVariables = Exact<{ - mpId: Scalars['Int']; + mpId: Scalars['Int']['input']; }>; @@ -9023,7 +9061,7 @@ export type MpExpressionEditorPrepopulateQuery = { __typename: 'Query', molecula export type CreateMolecularProfile2MutationVariables = Exact<{ mpStructure: MolecularProfileComponentInput; - organizationId?: InputMaybe; + organizationId?: InputMaybe; }>; @@ -9038,14 +9076,14 @@ type PreviewMpName2_Variant_Fragment = { __typename: 'Variant', id: number, name export type PreviewMpName2Fragment = PreviewMpName2_Feature_Fragment | PreviewMpName2_MolecularProfileTextSegment_Fragment | PreviewMpName2_Variant_Fragment; export type NccnGuidelineSelectTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; + name: Scalars['String']['input']; }>; export type NccnGuidelineSelectTypeaheadQuery = { __typename: 'Query', nccnGuidelinesTypeahead: Array<{ __typename: 'NccnGuideline', id: number, name: string }> }; export type NccnGuidelineSelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -9054,14 +9092,14 @@ export type NccnGuidelineSelectTagQuery = { __typename: 'Query', nccnGuideline?: export type NccnGuidelineSelectTypeaheadFieldsFragment = { __typename: 'NccnGuideline', id: number, name: string }; export type PhenotypeSelectTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; + name: Scalars['String']['input']; }>; export type PhenotypeSelectTypeaheadQuery = { __typename: 'Query', phenotypeTypeahead: Array<{ __typename: 'Phenotype', id: number, name: string, link: string, hpoId: string }> }; export type PhenotypeSelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -9071,7 +9109,7 @@ export type PhenotypeSelectTypeaheadFieldsFragment = { __typename: 'Phenotype', export type QuickAddSourceCheckCitationQueryVariables = Exact<{ sourceType: SourceSource; - citationId: Scalars['String']; + citationId: Scalars['String']['input']; }>; @@ -9085,7 +9123,7 @@ export type QuickAddSourceRemoteCitationMutationVariables = Exact<{ export type QuickAddSourceRemoteCitationMutation = { __typename: 'Mutation', addRemoteCitation?: { __typename: 'AddRemoteCitationPayload', newSource: { __typename: 'SourceStub', id: number, citationId: number, sourceType: SourceSource } } | undefined }; export type SourceSelectTypeaheadQueryVariables = Exact<{ - partialCitationId: Scalars['String']; + partialCitationId: Scalars['String']['input']; sourceType: SourceSource; }>; @@ -9093,7 +9131,7 @@ export type SourceSelectTypeaheadQueryVariables = Exact<{ export type SourceSelectTypeaheadQuery = { __typename: 'Query', sourceTypeahead: Array<{ __typename: 'Source', id: number, name: string, link: string, citation?: string | undefined, citationId: string, sourceType: SourceSource, deprecated: boolean }> }; export type SourceSelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -9102,8 +9140,8 @@ export type SourceSelectTagQuery = { __typename: 'Query', source?: { __typename: export type SourceSelectTypeaheadFieldsFragment = { __typename: 'Source', id: number, name: string, link: string, citation?: string | undefined, citationId: string, sourceType: SourceSource, deprecated: boolean }; export type QuickAddTherapyMutationVariables = Exact<{ - name: Scalars['String']; - ncitId?: InputMaybe; + name: Scalars['String']['input']; + ncitId?: InputMaybe; }>; @@ -9112,14 +9150,14 @@ export type QuickAddTherapyMutation = { __typename: 'Mutation', addTherapy?: { _ export type QuickAddTherapyFieldsFragment = { __typename: 'AddTherapyPayload', new: boolean, therapy: { __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array } }; export type TherapySelectTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; + name: Scalars['String']['input']; }>; export type TherapySelectTypeaheadQuery = { __typename: 'Query', therapyTypeahead: Array<{ __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array }> }; export type TherapySelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -9128,8 +9166,8 @@ export type TherapySelectTagQuery = { __typename: 'Query', therapy?: { __typenam export type TherapySelectTypeaheadFieldsFragment = { __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array }; export type SelectOrCreateFusionVariantMutationVariables = Exact<{ - organizationId?: InputMaybe; - featureId: Scalars['Int']; + organizationId?: InputMaybe; + featureId: Scalars['Int']['input']; coordinates: FusionVariantInput; }>; @@ -9139,18 +9177,18 @@ export type SelectOrCreateFusionVariantMutation = { __typename: 'Mutation', crea export type CreateFusionVariantFieldsFragment = { __typename: 'CreateFusionVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'FusionVariant', id: number, name: string, link: string, deprecated: boolean, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'GeneVariant', id: number, name: string, link: string, deprecated: boolean, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } }; export type VariantManagerQueryVariables = Exact<{ - variantName?: InputMaybe; - featureName?: InputMaybe; - diseaseName?: InputMaybe; - therapyName?: InputMaybe; - variantAlias?: InputMaybe; - variantTypeId?: InputMaybe; - variantGroupId?: InputMaybe; + variantName?: InputMaybe; + featureName?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + variantAlias?: InputMaybe; + variantTypeId?: InputMaybe; + variantGroupId?: InputMaybe; sortBy?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -9159,9 +9197,9 @@ export type VariantManagerQuery = { __typename: 'Query', browseVariants: { __typ export type VariantManagerFieldsFragment = { __typename: 'BrowseVariant', id: number, name: string, link: string, featureId: number, featureName: string, featureLink: string, diseases: Array<{ __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean }>, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, deprecated: boolean }>, aliases: Array<{ __typename: 'VariantAlias', name: string }> }; export type QuickAddVariantMutationVariables = Exact<{ - name: Scalars['String']; - featureId: Scalars['Int']; - organizationId?: InputMaybe; + name: Scalars['String']['input']; + featureId: Scalars['Int']['input']; + organizationId?: InputMaybe; }>; @@ -9170,15 +9208,15 @@ export type QuickAddVariantMutation = { __typename: 'Mutation', createVariant?: export type QuickAddVariantFieldsFragment = { __typename: 'CreateVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } }; export type VariantSelectTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; - featureId?: InputMaybe; + name: Scalars['String']['input']; + featureId?: InputMaybe; }>; export type VariantSelectTypeaheadQuery = { __typename: 'Query', variantsTypeahead: Array<{ __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } }> }; export type VariantSelectTagQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -9195,14 +9233,14 @@ type VariantSelectTypeaheadFields_Variant_Fragment = { __typename: 'Variant', id export type VariantSelectTypeaheadFieldsFragment = VariantSelectTypeaheadFields_FactorVariant_Fragment | VariantSelectTypeaheadFields_FusionVariant_Fragment | VariantSelectTypeaheadFields_GeneVariant_Fragment | VariantSelectTypeaheadFields_Variant_Fragment; export type VariantTypeSelectTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; + name: Scalars['String']['input']; }>; export type VariantTypeSelectTypeaheadQuery = { __typename: 'Query', variantTypeTypeahead: Array<{ __typename: 'VariantType', id: number, name: string, link: string, soid: string }> }; export type VariantTypeSelectTagQueryVariables = Exact<{ - id: Scalars['Int']; + id: Scalars['Int']['input']; }>; @@ -9211,7 +9249,7 @@ export type VariantTypeSelectTagQuery = { __typename: 'Query', variantType?: { _ export type VariantTypeSelectTypeaheadFieldsFragment = { __typename: 'VariantType', id: number, name: string, link: string, soid: string }; export type AssertionDetailQueryVariables = Exact<{ - assertionId: Scalars['Int']; + assertionId: Scalars['Int']['input']; }>; @@ -9222,7 +9260,7 @@ export type AssertionDetailFieldsFragment = { __typename: 'Assertion', id: numbe export type AssertionSubmissionActivityFragment = { __typename: 'Assertion', submissionActivity: { __typename: 'SubmitAssertionActivity', createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, profileImagePath?: string | undefined } } }; export type AssertionSummaryQueryVariables = Exact<{ - assertionId: Scalars['Int']; + assertionId: Scalars['Int']['input']; }>; @@ -9231,28 +9269,28 @@ export type AssertionSummaryQuery = { __typename: 'Query', assertion?: { __typen export type AssertionSummaryFieldsFragment = { __typename: 'Assertion', id: number, name: string, summary: string, description: string, status: EvidenceStatus, variantOrigin: VariantOrigin, assertionType: AssertionType, assertionDirection: AssertionDirection, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, regulatoryApprovalLastUpdated?: any | undefined, fdaCompanionTest?: boolean | undefined, fdaCompanionTestLastUpdated?: any | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean } | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> }, therapies: Array<{ __typename: 'Therapy', ncitId?: string | undefined, name: string, link: string, id: number, deprecated: boolean }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, acceptanceEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, submissionEvent: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, rejectionEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, submissionActivity: { __typename: 'SubmitAssertionActivity', createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, profileImagePath?: string | undefined } } }; export type ClinicalTrialDetailQueryVariables = Exact<{ - clinicalTrialId: Scalars['Int']; + clinicalTrialId: Scalars['Int']['input']; }>; export type ClinicalTrialDetailQuery = { __typename: 'Query', clinicalTrial?: { __typename: 'ClinicalTrial', id: number, name: string, nctId: string, description: string, url?: string | undefined, link: string } | undefined }; export type ClinicalTrialSummaryQueryVariables = Exact<{ - clinicalTrialId: Scalars['Int']; + clinicalTrialId: Scalars['Int']['input']; }>; export type ClinicalTrialSummaryQuery = { __typename: 'Query', clinicalTrial?: { __typename: 'ClinicalTrial', id: number, name: string, nctId: string, description: string, url?: string | undefined, link: string } | undefined }; export type DiseaseDetailQueryVariables = Exact<{ - diseaseId: Scalars['Int']; + diseaseId: Scalars['Int']['input']; }>; export type DiseaseDetailQuery = { __typename: 'Query', disease?: { __typename: 'Disease', id: number, name: string, doid?: string | undefined, diseaseUrl?: string | undefined, displayName: string, diseaseAliases: Array, link: string, deprecated: boolean } | undefined }; export type DiseasesSummaryQueryVariables = Exact<{ - diseaseId: Scalars['Int']; + diseaseId: Scalars['Int']['input']; }>; @@ -9263,7 +9301,7 @@ export type MyDiseaseInfoFieldsFragment = { __typename: 'MyDiseaseInfo', disease export type DiseasesSummaryFieldsFragment = { __typename: 'Disease', id: number, name: string, doid?: string | undefined, diseaseUrl?: string | undefined, displayName: string, diseaseAliases: Array, link: string, deprecated: boolean, myDiseaseInfo?: { __typename: 'MyDiseaseInfo', diseaseOntologyExactSynonyms: Array, diseaseOntologyRelatedSynonyms: Array, mesh?: string | undefined, icdo?: string | undefined, icd10?: string | undefined, ncit: Array, omim?: string | undefined, doDef?: string | undefined, doDefCitations: Array, mondoDef?: string | undefined, mondoId?: string | undefined } | undefined }; export type EvidenceDetailQueryVariables = Exact<{ - evidenceId: Scalars['Int']; + evidenceId: Scalars['Int']['input']; }>; @@ -9274,7 +9312,7 @@ export type EvidenceDetailFieldsFragment = { __typename: 'EvidenceItem', id: num export type EvidenceSubmissionActivityFragment = { __typename: 'EvidenceItem', submissionActivity: { __typename: 'SubmitEvidenceItemActivity', createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', id: number, displayName: string, profileImagePath?: string | undefined } } }; export type EvidenceSummaryQueryVariables = Exact<{ - evidenceId: Scalars['Int']; + evidenceId: Scalars['Int']['input']; }>; @@ -9283,7 +9321,7 @@ export type EvidenceSummaryQuery = { __typename: 'Query', evidenceItem?: { __typ export type EvidenceSummaryFieldsFragment = { __typename: 'EvidenceItem', id: number, name: string, description: string, status: EvidenceStatus, evidenceLevel: EvidenceLevel, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, significance: EvidenceSignificance, variantOrigin: VariantOrigin, therapyInteractionType?: TherapyInteraction | undefined, evidenceRating?: number | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, deprecated: boolean }>, disease?: { __typename: 'Disease', id: number, name: string, link: string, deprecated: boolean } | undefined, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, source: { __typename: 'Source', id: number, citation?: string | undefined, citationId: string, sourceType: SourceSource, displayType: string, sourceUrl?: string | undefined, ascoAbstractId?: number | undefined, link: string, retractionNature?: string | undefined, deprecated: boolean, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', nctId: string, id: number, link: string }> | undefined }, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, parsedName: Array<{ __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }> }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, submissionActivity: { __typename: 'SubmitEvidenceItemActivity', createdAt: any, parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }>, user: { __typename: 'User', displayName: string, profileImagePath?: string | undefined, id: number, role: UserRole } }, acceptanceEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, submissionEvent: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, rejectionEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; export type FeatureDetailQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; @@ -9292,26 +9330,26 @@ export type FeatureDetailQuery = { __typename: 'Query', feature?: { __typename: export type FeatureDetailFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, deprecated: boolean, deprecationReason?: FeatureDeprecationReason | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, featureInstance: { __typename: 'Factor' } | { __typename: 'Fusion' } | { __typename: 'Gene' }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type FeaturesSummaryQueryVariables = Exact<{ - featureId: Scalars['Int']; + featureId: Scalars['Int']['input']; }>; -export type FeaturesSummaryQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } } | undefined }; +export type FeaturesSummaryQuery = { __typename: 'Query', feature?: { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } } | undefined }; -export type FeatureSummaryFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } }; +export type FeatureSummaryFieldsFragment = { __typename: 'Feature', id: number, name: string, fullName?: string | undefined, link: string, deprecated: boolean, flagged: boolean, featureInstance: { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } }; -export type FusionSummaryFieldsFragment = { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type FusionSummaryFieldsFragment = { __typename: 'Fusion', id: number, description?: string | undefined, featureAliases: Array, name: string, fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, fivePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, threePrimeGene?: { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; -export type GeneBaseFieldsFragment = { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> }; +export type GeneBaseFieldsFragment = { __typename: 'Gene', id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> }; -export type GeneSummaryFieldsFragment = { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> }; +export type GeneSummaryFieldsFragment = { __typename: 'Gene', myGeneInfoDetails?: any | undefined, id: number, description?: string | undefined, featureAliases: Array, entrezId: number, deprecated: boolean, flagged: boolean, name: string, link: string, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> }; export type FactorSummaryFieldsFragment = { __typename: 'Factor', id: number, name: string, description?: string | undefined, featureAliases: Array, ncitId?: string | undefined, deprecated: boolean, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }>, ncitDetails?: { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> } | undefined, creationActivity?: { __typename: 'CreateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, deprecationActivity?: { __typename: 'DeprecateFeatureActivity', createdAt: any, user: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; export type NcitDetailsFragment = { __typename: 'NcitDetails', synonyms: Array<{ __typename: 'NcitSynonym', name: string, source: string }>, definitions: Array<{ __typename: 'NcitDefinition', definition: string, source: string }> }; export type MolecularProfileDetailQueryVariables = Exact<{ - mpId: Scalars['Int']; + mpId: Scalars['Int']['input']; }>; @@ -9320,7 +9358,7 @@ export type MolecularProfileDetailQuery = { __typename: 'Query', molecularProfil export type MolecularProfileDetailFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, deprecationReason?: MolecularProfileDeprecationReason | undefined, molecularProfileAliases: Array, complexMolecularProfileDeprecationActivity?: { __typename: 'DeprecateComplexMolecularProfileActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, deprecatedVariants: Array<{ __typename: 'FactorVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, flagged: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'FusionVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, flagged: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'GeneVariant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, flagged: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Variant', deprecationReason?: VariantDeprecationReason | undefined, id: number, deprecated: boolean, flagged: boolean, name: string, link: string, deprecationActivity?: { __typename: 'DeprecateVariantActivity', parsedNote: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlagged', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndDeprecated', entityId: number, displayName: string, tagType: TaggableEntity, flagged: boolean, deprecated: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTagSegmentFlaggedAndWithStatus', entityId: number, displayName: string, tagType: TaggableEntity, status: EvidenceStatus, flagged: boolean, link: string, revisionSetId?: number | undefined, feature?: { __typename: 'LinkableFeature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, variants: Array<{ __typename: 'FactorVariant', id: number } | { __typename: 'FusionVariant', id: number } | { __typename: 'GeneVariant', id: number } | { __typename: 'Variant', id: number }> }; export type MolecularProfileSummaryQueryVariables = Exact<{ - mpId: Scalars['Int']; + mpId: Scalars['Int']['input']; }>; @@ -9347,7 +9385,7 @@ type VariantMolecularProfileCardFields_Variant_Fragment = { __typename: 'Variant export type VariantMolecularProfileCardFieldsFragment = VariantMolecularProfileCardFields_FactorVariant_Fragment | VariantMolecularProfileCardFields_FusionVariant_Fragment | VariantMolecularProfileCardFields_GeneVariant_Fragment | VariantMolecularProfileCardFields_Variant_Fragment; export type OrganizationDetailQueryVariables = Exact<{ - organizationId: Scalars['Int']; + organizationId: Scalars['Int']['input']; }>; @@ -9356,7 +9394,7 @@ export type OrganizationDetailQuery = { __typename: 'Query', organization?: { __ export type OrganizationDetailFieldsFragment = { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, orgStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, orgAndSuborgsStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined } }; export type OrganizationGroupsQueryVariables = Exact<{ - organizationId: Scalars['Int']; + organizationId: Scalars['Int']['input']; }>; @@ -9365,11 +9403,11 @@ export type OrganizationGroupsQuery = { __typename: 'Query', organization?: { __ export type OrganizationGroupsFieldsFragment = { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, url: string }>, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined } }; export type OrganizationMembersQueryVariables = Exact<{ - organizationId: Scalars['Int']; - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + organizationId: Scalars['Int']['input']; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; }>; @@ -9378,7 +9416,7 @@ export type OrganizationMembersQuery = { __typename: 'Query', users: { __typenam export type OrganizationMembersFieldsFragment = { __typename: 'BrowseUser', id: number, name?: string | undefined, displayName: string, username: string, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }> }; export type PhenotypeDetailQueryVariables = Exact<{ - phenotypeId: Scalars['Int']; + phenotypeId: Scalars['Int']['input']; }>; @@ -9392,7 +9430,7 @@ export type DataReleasesQuery = { __typename: 'Query', dataReleases: Array<{ __t export type ReleaseFragment = { __typename: 'DataRelease', name: string, geneTsv?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined, variantTsv?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined, variantGroupTsv?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined, evidenceTsv?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined, molecularProfileTsv?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined, assertionTsv?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined, acceptedVariantsVcf?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined, acceptedAndSubmittedVariantsVcf?: { __typename: 'DownloadableFile', filename: string, path: string } | undefined }; export type SourceDetailQueryVariables = Exact<{ - sourceId: Scalars['Int']; + sourceId: Scalars['Int']['input']; }>; @@ -9401,7 +9439,7 @@ export type SourceDetailQuery = { __typename: 'Query', source?: { __typename: 'S export type SourceDetailFieldsFragment = { __typename: 'Source', id: number, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, fullyCurated: boolean, citationId: string, comments: { __typename: 'CommentConnection', totalCount: number } }; export type SourceSummaryQueryVariables = Exact<{ - sourceId: Scalars['Int']; + sourceId: Scalars['Int']['input']; }>; @@ -9410,14 +9448,14 @@ export type SourceSummaryQuery = { __typename: 'Query', source?: { __typename: ' export type SourceSummaryFieldsFragment = { __typename: 'Source', id: number, citation?: string | undefined, displayType: string, sourceUrl?: string | undefined, title?: string | undefined, abstract?: string | undefined, publicationDate?: string | undefined, citationId: string, fullJournalTitle?: string | undefined, pmcId?: string | undefined, authorString?: string | undefined, ascoAbstractId?: number | undefined, retracted: boolean, retractionNature?: string | undefined, retractionDate?: any | undefined, retractionReasons?: string | undefined, deprecated: boolean, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', nctId: string, id: number, link: string }> | undefined }; export type TherapyDetailQueryVariables = Exact<{ - therapyId: Scalars['Int']; + therapyId: Scalars['Int']['input']; }>; export type TherapyDetailQuery = { __typename: 'Query', therapy?: { __typename: 'Therapy', id: number, name: string, ncitId?: string | undefined, therapyUrl?: string | undefined, therapyAliases: Array, link: string, deprecated: boolean } | undefined }; export type TherapiesSummaryQueryVariables = Exact<{ - therapyId: Scalars['Int']; + therapyId: Scalars['Int']['input']; }>; @@ -9428,7 +9466,7 @@ export type TherapiesSummaryFieldsFragment = { __typename: 'Therapy', id: number export type MyChemInfoFieldsFragment = { __typename: 'MyChemInfo', chebiId?: string | undefined, chebiDefinition?: string | undefined, firstApproval?: string | undefined, chemblMoleculeType?: string | undefined, chemblId?: string | undefined, pubchemCid?: string | undefined, pharmgkbId?: string | undefined, rxnorm?: string | undefined, inchikey?: string | undefined, drugbankId?: string | undefined, indications: Array, fdaEpcCodes: Array<{ __typename: 'FdaCode', code: string, description: string }>, fdaMoaCodes: Array<{ __typename: 'FdaCode', code: string, description: string }> }; export type UserDetailQueryVariables = Exact<{ - userId: Scalars['Int']; + userId: Scalars['Int']['input']; }>; @@ -9437,17 +9475,17 @@ export type UserDetailQuery = { __typename: 'Query', user?: { __typename: 'User' export type UserDetailFieldsFragment = { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, email?: string | undefined, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, bio?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }>, country?: { __typename: 'Country', id: number, name: string } | undefined, statsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined }, mostRecentConflictOfInterestStatement?: { __typename: 'Coi', id: number, coiPresent: boolean, coiStatement?: string | undefined, coiStatus: CoiStatus, createdAt?: any | undefined, expiresAt: any } | undefined }; export type UserNotificationsQueryVariables = Exact<{ - first?: InputMaybe; - last?: InputMaybe; - before?: InputMaybe; - after?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; notificationReason?: InputMaybe; - subscriptionId?: InputMaybe; + subscriptionId?: InputMaybe; originatingObject?: InputMaybe; eventType?: InputMaybe; - originatingUserId?: InputMaybe; - organizationId?: InputMaybe; - includeRead?: InputMaybe; + originatingUserId?: InputMaybe; + organizationId?: InputMaybe; + includeRead?: InputMaybe; }>; @@ -9485,7 +9523,7 @@ export type SubscribeMutation = { __typename: 'Mutation', subscribe?: { __typena export type SubscribableFragment = { __typename: 'Subscribable', id: number, entityType: SubscribableEntities }; export type VariantGroupDetailQueryVariables = Exact<{ - variantGroupId: Scalars['Int']; + variantGroupId: Scalars['Int']['input']; }>; @@ -9494,7 +9532,7 @@ export type VariantGroupDetailQuery = { __typename: 'Query', variantGroup?: { __ export type VariantGroupDetailFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, variants: { __typename: 'VariantInterfaceConnection', totalCount: number }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type VariantGroupsSummaryQueryVariables = Exact<{ - variantGroupId: Scalars['Int']; + variantGroupId: Scalars['Int']['input']; }>; @@ -9503,14 +9541,14 @@ export type VariantGroupsSummaryQuery = { __typename: 'Query', variantGroup?: { export type VariantGroupSummaryFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource, deprecated: boolean }> }; export type VariantTypeDetailQueryVariables = Exact<{ - variantTypeId: Scalars['Int']; + variantTypeId: Scalars['Int']['input']; }>; export type VariantTypeDetailQuery = { __typename: 'Query', variantType?: { __typename: 'VariantType', id: number, name: string, soid: string, description: string, url?: string | undefined, link: string } | undefined }; export type VariantDetailQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -9527,24 +9565,24 @@ type VariantDetailFields_Variant_Fragment = { __typename: 'Variant', id: number, export type VariantDetailFieldsFragment = VariantDetailFields_FactorVariant_Fragment | VariantDetailFields_FusionVariant_Fragment | VariantDetailFields_GeneVariant_Fragment | VariantDetailFields_Variant_Fragment; export type CoordinateIdsForVariantQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; -export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant' } | { __typename: 'FusionVariant', fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined } | { __typename: 'GeneVariant', coordinates?: { __typename: 'VariantCoordinate', id: number } | undefined } | { __typename: 'Variant' } | undefined }; +export type CoordinateIdsForVariantQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', openRevisionCount: number } | { __typename: 'FusionVariant', openRevisionCount: number, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', openRevisionCount: number, id: number } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', openRevisionCount: number, id: number } | undefined } | { __typename: 'GeneVariant', openRevisionCount: number, coordinates?: { __typename: 'VariantCoordinate', openRevisionCount: number, id: number } | undefined } | { __typename: 'Variant', openRevisionCount: number } | undefined }; -type VariantCoordinateIds_FactorVariant_Fragment = { __typename: 'FactorVariant' }; +type VariantCoordinateIds_FactorVariant_Fragment = { __typename: 'FactorVariant', openRevisionCount: number }; -type VariantCoordinateIds_FusionVariant_Fragment = { __typename: 'FusionVariant', fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', id: number } | undefined }; +type VariantCoordinateIds_FusionVariant_Fragment = { __typename: 'FusionVariant', openRevisionCount: number, fivePrimeEndExonCoordinates?: { __typename: 'ExonCoordinate', openRevisionCount: number, id: number } | undefined, threePrimeStartExonCoordinates?: { __typename: 'ExonCoordinate', openRevisionCount: number, id: number } | undefined }; -type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', coordinates?: { __typename: 'VariantCoordinate', id: number } | undefined }; +type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', openRevisionCount: number, coordinates?: { __typename: 'VariantCoordinate', openRevisionCount: number, id: number } | undefined }; -type VariantCoordinateIds_Variant_Fragment = { __typename: 'Variant' }; +type VariantCoordinateIds_Variant_Fragment = { __typename: 'Variant', openRevisionCount: number }; export type VariantCoordinateIdsFragment = VariantCoordinateIds_FactorVariant_Fragment | VariantCoordinateIds_FusionVariant_Fragment | VariantCoordinateIds_GeneVariant_Fragment | VariantCoordinateIds_Variant_Fragment; export type VariantSummaryQueryVariables = Exact<{ - variantId: Scalars['Int']; + variantId: Scalars['Int']['input']; }>; @@ -11491,6 +11529,7 @@ export const GeneBaseFieldsFragmentDoc = gql` sourceUrl displayType sourceType + deprecated } } `; @@ -12774,16 +12813,20 @@ export const VariantDetailFieldsFragmentDoc = gql` export const VariantCoordinateIdsFragmentDoc = gql` fragment VariantCoordinateIds on VariantInterface { __typename + openRevisionCount ... on GeneVariant { coordinates { + openRevisionCount id } } ... on FusionVariant { fivePrimeEndExonCoordinates { + openRevisionCount id } threePrimeStartExonCoordinates { + openRevisionCount id } } diff --git a/client/src/app/generated/civic.possible-types.ts b/client/src/app/generated/civic.possible-types.ts index 0ac56ba53..0f930b3a2 100644 --- a/client/src/app/generated/civic.possible-types.ts +++ b/client/src/app/generated/civic.possible-types.ts @@ -144,6 +144,7 @@ "WithRevisions": [ "Assertion", "EvidenceItem", + "ExonCoordinate", "Factor", "FactorVariant", "Feature", @@ -153,6 +154,7 @@ "GeneVariant", "MolecularProfile", "Variant", + "VariantCoordinate", "VariantGroup" ] } diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index 3f70b7089..441e34d0a 100644 --- a/client/src/app/generated/server.model.graphql +++ b/client/src/app/generated/server.model.graphql @@ -3397,7 +3397,7 @@ enum EvidenceType { PROGNOSTIC } -type ExonCoordinate implements EventSubject { +type ExonCoordinate implements EventSubject & WithRevisions { chromosome: String coordinateType: ExonCoordinateType! ensemblId: String @@ -3439,10 +3439,63 @@ type ExonCoordinate implements EventSubject { exonOffset: Int exonOffsetDirection: Direction id: Int! + lastAcceptedRevisionEvent: Event + lastSubmittedRevisionEvent: Event link: String! name: String! + openRevisionCount: Int! referenceBuild: ReferenceBuild representativeTranscript: String + + """ + List and filter revisions. + """ + revisions( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Limit to revisions on a particular field. + """ + fieldName: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to revisions by a certain user + """ + originatingUserId: Int + + """ + Limit to revisions suggested as part of a single Revision Set. + """ + revisionSetId: Int + + """ + Sort order for the comments. Defaults to most recent. + """ + sortBy: DateSort + + """ + Limit to revisions with a certain status + """ + status: RevisionStatus + ): RevisionConnection! start: Int stop: Int strand: Direction @@ -11973,7 +12026,7 @@ input VariantComponent { variantId: Int! } -type VariantCoordinate implements EventSubject { +type VariantCoordinate implements EventSubject & WithRevisions { chromosome: String coordinateType: VariantCoordinateType! ensemblVersion: Int @@ -12011,11 +12064,64 @@ type VariantCoordinate implements EventSubject { sortBy: DateSort ): EventConnection! id: Int! + lastAcceptedRevisionEvent: Event + lastSubmittedRevisionEvent: Event link: String! name: String! + openRevisionCount: Int! referenceBases: String referenceBuild: ReferenceBuild representativeTranscript: String + + """ + List and filter revisions. + """ + revisions( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Limit to revisions on a particular field. + """ + fieldName: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Limit to revisions by a certain user + """ + originatingUserId: Int + + """ + Limit to revisions suggested as part of a single Revision Set. + """ + revisionSetId: Int + + """ + Sort order for the comments. Defaults to most recent. + """ + sortBy: DateSort + + """ + Limit to revisions with a certain status + """ + status: RevisionStatus + ): RevisionConnection! start: Int stop: Int variantBases: String diff --git a/client/src/app/generated/server.schema.json b/client/src/app/generated/server.schema.json index f6fc47af1..c7b5c9575 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -17610,6 +17610,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "lastAcceptedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastSubmittedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "link", "description": null, @@ -17642,6 +17666,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "referenceBuild", "description": null, @@ -17666,6 +17706,131 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "revisions", + "description": "List and filter revisions.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to revisions by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "Limit to revisions with a certain status", + "type": { + "kind": "ENUM", + "name": "RevisionStatus", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fieldName", + "description": "Limit to revisions on a particular field.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "revisionSetId", + "description": "Limit to revisions suggested as part of a single Revision Set.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RevisionConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "start", "description": null, @@ -17709,6 +17874,11 @@ "kind": "INTERFACE", "name": "EventSubject", "ofType": null + }, + { + "kind": "INTERFACE", + "name": "WithRevisions", + "ofType": null } ], "enumValues": null, @@ -54417,6 +54587,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "lastAcceptedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "lastSubmittedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "link", "description": null, @@ -54449,6 +54643,22 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "openRevisionCount", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "referenceBases", "description": null, @@ -54485,6 +54695,131 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "revisions", + "description": "List and filter revisions.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to revisions by a certain user", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "status", + "description": "Limit to revisions with a certain status", + "type": { + "kind": "ENUM", + "name": "RevisionStatus", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", + "type": { + "kind": "INPUT_OBJECT", + "name": "DateSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fieldName", + "description": "Limit to revisions on a particular field.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "revisionSetId", + "description": "Limit to revisions suggested as part of a single Revision Set.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RevisionConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "start", "description": null, @@ -54528,6 +54863,11 @@ "kind": "INTERFACE", "name": "EventSubject", "ofType": null + }, + { + "kind": "INTERFACE", + "name": "WithRevisions", + "ofType": null } ], "enumValues": null, @@ -57453,6 +57793,11 @@ "name": "EvidenceItem", "ofType": null }, + { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + }, { "kind": "OBJECT", "name": "Factor", @@ -57518,6 +57863,11 @@ "name": "Variant", "ofType": null }, + { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, { "kind": "OBJECT", "name": "VariantGroup", diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql b/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql index b011da3f8..4d8c193c4 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql +++ b/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql @@ -6,16 +6,20 @@ query CoordinateIdsForVariant($variantId: Int!) { fragment VariantCoordinateIds on VariantInterface { __typename + openRevisionCount ... on GeneVariant { coordinates { + openRevisionCount id } } ... on FusionVariant { fivePrimeEndExonCoordinates { + openRevisionCount id } threePrimeStartExonCoordinates { + openRevisionCount id } } diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts index 8d70ecd25..fc2c8d8f3 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.module.ts @@ -3,10 +3,16 @@ import { CommonModule } from '@angular/common' import { VariantsRevisionsPage } from './variants-revisions.page' import { CvcRevisionsListAndFilterModule } from '@app/components/revisions/revisions-list-and-filter/revisions-list-and-filter.module' import { NzTabsModule } from 'ng-zorro-antd/tabs' +import { NzBadgeModule } from 'ng-zorro-antd/badge' @NgModule({ declarations: [VariantsRevisionsPage], - imports: [CommonModule, NzTabsModule, CvcRevisionsListAndFilterModule], + imports: [ + CommonModule, + NzTabsModule, + NzBadgeModule, + CvcRevisionsListAndFilterModule, + ], exports: [VariantsRevisionsPage], }) export class VariantsRevisionsModule {} diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html index 50c1630fc..7570a3116 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.html @@ -1,10 +1,23 @@ @for (tab of tabs(); track tab.name) { - + + + {{ tab.name }} + @if (tab.openCount > 0) { + + + } + } diff --git a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts index 726ebad61..16f0fd7d0 100644 --- a/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts +++ b/client/src/app/views/variants/variants-detail/variants-revisions/variants-revisions.page.ts @@ -21,6 +21,7 @@ import { filter, map } from 'rxjs/operators' interface RevisionsTab { name: string moderated: ModeratedInput + openCount: number } @Component({ @@ -50,6 +51,7 @@ export class VariantsRevisionsPage implements OnDestroy, OnInit { this.tabs.set([ { name: 'Variant Fields', + openCount: 0, moderated: { id: variantId, entityType: ModeratedEntities.Variant, @@ -71,23 +73,28 @@ export class VariantsRevisionsPage implements OnDestroy, OnInit { } updateTabs(variant: VariantCoordinateIdsFragment) { + //the open revision count reported from the server includes revisions to coordinate fields + //so we have to do some math here to get the correct number just for the variant fields tab + let currentTabs = this.tabs() if (variant.__typename == 'GeneVariant' && variant.coordinates) { - this.tabs.set([ - ...this.tabs(), - { - name: 'Variant Coordinates', - moderated: { - id: variant.coordinates.id, - entityType: ModeratedEntities.VariantCoordinates, - }, + currentTabs[0].openCount = + variant.openRevisionCount - variant.coordinates.openRevisionCount + currentTabs.push({ + name: 'Variant Coordinates', + openCount: variant.coordinates.openRevisionCount, + moderated: { + id: variant.coordinates.id, + entityType: ModeratedEntities.VariantCoordinates, }, - ]) + }) } else if (variant.__typename == 'FusionVariant') { - let currentTabs = this.tabs() - + let variantFieldCount = variant.openRevisionCount if (variant.fivePrimeEndExonCoordinates) { + variantFieldCount -= + variant.fivePrimeEndExonCoordinates.openRevisionCount currentTabs.push({ name: "5' Exon End Coordinates", + openCount: variant.fivePrimeEndExonCoordinates.openRevisionCount, moderated: { id: variant.fivePrimeEndExonCoordinates.id, entityType: ModeratedEntities.ExonCoordinates, @@ -95,17 +102,20 @@ export class VariantsRevisionsPage implements OnDestroy, OnInit { }) } if (variant.threePrimeStartExonCoordinates) { + variantFieldCount -= + variant.threePrimeStartExonCoordinates.openRevisionCount currentTabs.push({ name: "3' Exon Start Coordinates", + openCount: variant.threePrimeStartExonCoordinates.openRevisionCount, moderated: { id: variant.threePrimeStartExonCoordinates.id, entityType: ModeratedEntities.ExonCoordinates, }, }) } - - this.tabs.set(currentTabs) + currentTabs[0].openCount = variantFieldCount } + this.tabs.set(currentTabs) } ngOnDestroy() { From 00bf230f167e93f3b5a4fae199beaa271b560d88 Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 17:25:03 -0500 Subject: [PATCH 54/56] re-enable indexing on variants --- server/app/models/variant.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index 3e9a94fbc..00f19e6d8 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -56,8 +56,7 @@ class Variant < ApplicationRecord validate :correct_coordinate_type validates_with VariantFieldsValidator - #TODO renable me - #searchkick highlight: [:name, :aliases], callbacks: :async + searchkick highlight: [:name, :aliases], callbacks: :async scope :search_import, -> { includes(:variant_aliases, :feature) } def self.valid_variant_coordinate_types From 2bdc268417e60b75400fa2e47a333632ac61637b Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 17:30:03 -0500 Subject: [PATCH 55/56] fix typos to make codespell happy --- server/app/lib/scrapers/ensembl_api_helpers.rb | 2 +- server/app/models/variant.rb | 3 +-- server/misc_scripts/fusions/port_fusion_coords.rb | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server/app/lib/scrapers/ensembl_api_helpers.rb b/server/app/lib/scrapers/ensembl_api_helpers.rb index 0936abd5f..74da6a728 100644 --- a/server/app/lib/scrapers/ensembl_api_helpers.rb +++ b/server/app/lib/scrapers/ensembl_api_helpers.rb @@ -24,7 +24,7 @@ def self.get_exons_for_ensembl_id(ensembl_id, warning = nil) return EnsemblResult.new(nil, res.error, warning) end elsif error_message == "ID '#{ensembl_id}' not found" - return EnsemblResult.new(nil, "Transcript doesnt exist in GRCh37 at any version: #{ensembl_id}", warning) + return EnsemblResult.new(nil, "Transcript doesn't exist in GRCh37 at any version: #{ensembl_id}", warning) else return EnsemblResult.new(nil, nil, warning) end diff --git a/server/app/models/variant.rb b/server/app/models/variant.rb index 00f19e6d8..fb4ba9834 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -98,8 +98,7 @@ def self.timepoint_query end def reindex_mps - #TODO RENABLE ME - #self.molecular_profiles.each { |mp| mp.reindex(mode: :async) } + self.molecular_profiles.each { |mp| mp.reindex(mode: :async) } end def on_revision_accepted diff --git a/server/misc_scripts/fusions/port_fusion_coords.rb b/server/misc_scripts/fusions/port_fusion_coords.rb index bf76748b7..81ab5c80e 100644 --- a/server/misc_scripts/fusions/port_fusion_coords.rb +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -113,7 +113,7 @@ def get_exons_for_ensembl_id(ensembl_id, variant, warning = nil) return [nil, err, warning] end elsif error_message == "ID '#{ensembl_id}' not found" - return [nil, "Transcript doesnt exist in GRCh37 at any version: #{ensembl_id}", warning] + return [nil, "Transcript doesn't exist in GRCh37 at any version: #{ensembl_id}", warning] else binding.irb return [nil, nil, warning] From d62b6bb028122d398587562e8f81798661252fbb Mon Sep 17 00:00:00 2001 From: Adam Coffman Date: Mon, 16 Sep 2024 17:34:24 -0500 Subject: [PATCH 56/56] coordinates are revisable --- server/app/graphql/types/entities/exon_coordinate_type.rb | 1 + server/app/graphql/types/entities/variant_coordinate_type.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/server/app/graphql/types/entities/exon_coordinate_type.rb b/server/app/graphql/types/entities/exon_coordinate_type.rb index 5109c231c..9d0cd7df7 100644 --- a/server/app/graphql/types/entities/exon_coordinate_type.rb +++ b/server/app/graphql/types/entities/exon_coordinate_type.rb @@ -1,6 +1,7 @@ module Types::Entities class ExonCoordinateType < Types::BaseObject implements Types::Interfaces::EventSubject + implements Types::Interfaces::WithRevisions field :id, Int, null: false field :representative_transcript, String, null: true diff --git a/server/app/graphql/types/entities/variant_coordinate_type.rb b/server/app/graphql/types/entities/variant_coordinate_type.rb index 60c0045a1..4eff1a195 100644 --- a/server/app/graphql/types/entities/variant_coordinate_type.rb +++ b/server/app/graphql/types/entities/variant_coordinate_type.rb @@ -1,6 +1,7 @@ module Types::Entities class VariantCoordinateType < Types::BaseObject implements Types::Interfaces::EventSubject + implements Types::Interfaces::WithRevisions field :id, Int, null: false field :representative_transcript, String, null: true