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 d6a34edbd..5f4e2c3ba 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 @@ -64,19 +64,16 @@ + *ngIf="tagDisplay != 'hideSubject' && event.subject as subject"> @switch (subject.__typename) { @case ('Feature') { - + } @case ('Assertion') { - + } @case ('EvidenceItem') { - + } @case ('GeneVariant') { } + @case ('FusionVariant') { + + } @case ('Revision') { - + } @case ('VariantGroup') { + + 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/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/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/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..7fe977bb3 --- /dev/null +++ b/client/src/app/components/molecular-profiles/molecular-profile-fusion-variant-card/molecular-profile-fusion-variant-card.component.html @@ -0,0 +1,120 @@ +@if (variant.__typename == 'FusionVariant') { + + + + {{ variant.name }} + + + + + + + + + + + + + + + {{ + alias + }} + + + + None specified + + + + + + + + + + + + + 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/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/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 6b419a870..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 @@ -1,164 +1,456 @@ - @if(variant.__typename == "GeneVariant") { - - + @switch (variant.__typename) { + @case ('GeneVariant') { + + + } + @case ('FusionVariant') { + + @if (variant.fivePrimeCoordinates) { + + + + + + + + + + + + + + + + + + + + + } + @if (variant.threePrimeCoordinates) { + + + + + + + + + + + + + + + + + + + + + } + + } } - - + @switch (this.cvcCoordinates.__typename) { + @case ('GeneVariant') { + + + + + } + @case ('FusionVariant') { + + @if (this.cvcCoordinates.fivePrimeCoordinates) { + + + + + + + + + + + + + + + + + + + + + } + @if (this.cvcCoordinates.threePrimeCoordinates) { + + + + + + + + + + + + + + + + + + + + + } + + } + } + + + None specified + + + - + let-variant="variant" + let-coords> + + + + + + + @if (coords) { - - + + nzSize="small" + [nzColumn]="{ xxl: 3, xl: 2, lg: 1, md: 1, sm: 1, xs: 1 }"> + - {{ variant.referenceBuild }} + + {{ coords.referenceBuild }} + - {{ variant.ensemblVersion }} + + {{ coords.ensemblVersion }} + - - - - - - + + + + {{ coords.representativeTranscript }} + + + + + + {{ coords.chromosome }} - + + - - + + + {{ coords.start }} - + + - - + + + {{ coords.stop }} - - - - - - {{ variant.referenceBases | ifEmpty : '--' }} - - - - - {{ variant.variantBases | ifEmpty : '--' }} - + - + + - + - {{ coords.representativeTranscript }} - - - -- + {{ coords.referenceBases | ifEmpty: '--' }} - - - - - - + - {{ coords.chromosome }} + *ngIf=" + coords.coordinateType == coordinateTypes.GeneVariantCoordinate + " + nzTitle="Var. Bases"> + + {{ coords.variantBases | ifEmpty: '--' }} + + + + + } @else { + + + } + - - + + + + + + + + @if (coords) { + + + + + + + {{ coords.exon }} + + + + + + + {{ coords.ensemblId }} + + + + + + + {{ coords.representativeTranscript }} + + + + + + + {{ coords.strand | enumToTitle }} + + + + + + + {{ coords.chromosome }} + + + + + + {{ coords.start }} - + + - - + + + {{ coords.stop }} - +
+ - - - - {{ coords.representativeTranscript }} - - - -- - - - - + + + @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 aa241e45e..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,5 +1,6 @@ import { Component, Input, OnInit } from '@angular/core' import { + VariantCoordinateType, CoordinatesCardFieldsFragment, CoordinatesCardGQL, CoordinatesCardQuery, @@ -26,6 +27,8 @@ export class CvcCoordinatesCard implements OnInit { loading$?: Observable variant$?: Observable> + coordinateTypes = VariantCoordinateType + 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 e2516a660..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 @@ -7,6 +7,9 @@ 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' +import { NzGridModule } from 'ng-zorro-antd/grid' +import { NzTabsModule } from 'ng-zorro-antd/tabs' @NgModule({ declarations: [CvcCoordinatesCard], @@ -14,8 +17,12 @@ import { CvcPipesModule } from '@app/core/pipes/pipes.module' CommonModule, LetDirective, PushPipe, + LetDirective, NzCardModule, + NzTabsModule, 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 cd2fea9ad..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 @@ -8,21 +8,43 @@ fragment CoordinatesCardFields on VariantInterface { id name ... on GeneVariant { - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop + } + ... on FusionVariant { + fivePrimeCoordinates { + ...CoordinateFields + } + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields } - referenceBases - variantBases } } + +fragment ExonCoordinateFields on ExonCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + exon + exonOffset + exonOffsetDirection + ensemblId + strand + coordinateType +} 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..c89f7df84 --- /dev/null +++ b/client/src/app/components/variants/fusion-variant-summary/fusion-variant-summary.page.html @@ -0,0 +1,177 @@ +@if (variant.__typename == 'FusionVariant') { + + + + + + + + + + + + + + {{ + alias + }} + + + + None specified + + + + + + + + + + + + None specified + + + + + + + + + + + + + + + + + + by + + + + Created + + ({{ variant.creationActivity.createdAt | timeAgo }}) + + + + + + by + + + + Deprecated + + ({{ variant.deprecationActivity.createdAt | timeAgo }}) + + + + + + + + + + + + {{ variant.viccCompliantName }} + + + + + + + + + + + + + + + + {{ 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/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/components/variants/variants-table/variants-table.component.html b/client/src/app/components/variants/variants-table/variants-table.component.html index 9b4cb679c..ebbc3f24c 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/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.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/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/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/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/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..68af24edf --- /dev/null +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.form.config.ts @@ -0,0 +1,328 @@ +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, + isEnsemblTranscript, + 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", + }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + "5' Transcript must be a valid, human, versioned, Ensembl transcript ID", + }, + }, + }, + { + 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", + }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + "3' Transcript must be a valid, human, versioned, Ensembl transcript ID", + }, + }, + }, + { + 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 3’ 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..5146fed14 --- /dev/null +++ b/client/src/app/forms/config/fusion-variant-revise/fusion-variant-revise.query.gql @@ -0,0 +1,51 @@ +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 + } + } + } + variantAliases + variantTypes { + id + name + soid + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } +} + +mutation SuggestFusionVariantRevision($input: SuggestFusionVariantRevisionInput!) { + suggestFusionVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} 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..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[] = [ { @@ -123,7 +124,7 @@ const formFieldConfig: FormlyFieldConfig[] = [ wrappers: ['form-card'], props: { formCardOptions: { - title: `Primary (5') Coordinates`, + title: `Coordinates`, size: 'small', }, }, @@ -243,80 +244,13 @@ const formFieldConfig: FormlyFieldConfig[] = [ description: 'Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl).', }, - }, - ], - }, - ], - }, - { - 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', + isTranscriptId: { + expression: isEnsemblTranscript, + message: + 'Representative Transcript must be a valid, human, versioned, Ensembl transcript ID', }, }, - 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/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..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 @@ -16,29 +16,27 @@ 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 VariantCoordinate { + referenceBuild + ensemblVersion chromosome representativeTranscript start stop + referenceBases + variantBases + coordinateType } mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { 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 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/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/models/gene-variant-fields.model.ts b/client/src/app/forms/models/gene-variant-fields.model.ts index e4dcbd54a..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,10 +12,6 @@ export type GeneVariantFields = { start?: number stop?: number representativeTranscript?: string - chromosome2?: string - start2?: number - stop2?: number - 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/types/feature-select/feature-select.module.ts b/client/src/app/forms/types/feature-select/feature-select.module.ts index c9a041060..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 @@ -20,9 +20,11 @@ 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' +import { NzSpaceModule } from 'ng-zorro-antd/space' +import { NzModalModule } from 'ng-zorro-antd/modal' const typeConfig: ConfigOption = { types: [ @@ -64,11 +66,14 @@ const typeConfig: ConfigOption = { NzAutocompleteModule, NzTypographyModule, NzTagModule, + NzSpaceModule, + NzModalModule, CvcFormFieldWrapperModule, CvcEntitySelectModule, CvcPipesModule, CvcEntityTagModule, CvcFeatureQuickAddForm, + CvcFusionSelectForm, ], exports: [CvcFeatureSelectField], }) 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/feature-select/feature-select.type.html b/client/src/app/forms/types/feature-select/feature-select.type.html index a2473c01e..0c8a3ab9f 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,16 +1,21 @@ - + + (ngModelChange)="this.onFeatureType$.next($event); this.formControl.setValue(undefined)"> + @@ -85,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 bc7d303c5..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,9 +91,10 @@ export class CvcFeatureSelectField placeholder: 'Search Features', isMultiSelect: false, entityName: { singular: 'Feature', plural: 'Features' }, - description: 'Feature Name', + description: '', featureType: FeatureInstanceTypes.Gene, canChangeFeatureType: true, + hideFeatureTypeSelect: false, }, } @@ -99,16 +105,25 @@ export class CvcFeatureSelectField onFeatureType$: BehaviorSubject> = new BehaviorSubject>(undefined) + instanceTypes = FeatureInstanceTypes + 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 @@ -182,4 +197,27 @@ export class CvcFeatureSelectField this.props.isNewlyCreatedCallback(feature.new) } } + + onFusionSelected(featureId: number) { + 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-add.query.gql b/client/src/app/forms/types/feature-select/fusion-select/fusion-add.query.gql new file mode 100644 index 000000000..76335dbe9 --- /dev/null +++ b/client/src/app/forms/types/feature-select/fusion-select/fusion-add.query.gql @@ -0,0 +1,19 @@ +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 + } + } +} 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..f8c57f847 --- /dev/null +++ b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.html @@ -0,0 +1,13 @@ +
+ + +
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..4a2f9abc1 --- /dev/null +++ b/client/src/app/forms/types/feature-select/fusion-select/fusion-select.form.ts @@ -0,0 +1,344 @@ +import { + ChangeDetectionStrategy, + Component, + EventEmitter, + Output, + inject, +} from '@angular/core' +import { + AbstractControl, + ReactiveFormsModule, + UntypedFormGroup, +} from '@angular/forms' +import { + FeatureInstanceTypes, + FusionPartnerStatus, + Maybe, + SelectOrCreateFusionGQL, + SelectOrCreateFusionMutation, + SelectOrCreateFusionMutationVariables, +} 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' + +type FusionSelectModel = { + fivePrimeGeneId?: number + fivePrimePartnerStatus: FusionPartnerStatus + threePrimeGeneId?: number + threePrimePartnerStatus: FusionPartnerStatus +} + +export interface FusionSelectModalData { + featureId?: number +} + +@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, + NzModalModule, + RouterModule, + FormlyModule, + ], +}) +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 = 'vertical' + + options: FormlyFormOptions + + 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, + 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-layout'], + props: { + showDevPanel: false, + }, + 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: [ + { + wrappers: ['form-card'], + props: { + formCardOptions: { + title: 'New Fusion Feature', + }, + }, + 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, + }, + }, + ], + }, + { + 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', + }, + }, + ], + }, + ], + }, + ], + }, + ] + } + + modelChange(model: Maybe) { + 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, + } + } + + //mark form as invalid here? + 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 + } + } + } + + submitFusion(model: FusionSelectModel): void { + this.mutationState = this.selectOrCreateFusionMutator.mutate( + this.query, + model, + {}, + (data) => { + if (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/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/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..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 @@ -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 + }, }, }, { @@ -106,17 +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 fragment = { - id: `Variant:${variantId}`, + getFragment(feature: string, variantId: number) { + return { + id: `${feature}Variant:${variantId}`, fragment: gql` - fragment VariantSelectQuery on Variant { + fragment ${feature}VariantSelectQuery on ${feature}Variant { id name link @@ -131,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(firstFragment) as Variant + } catch (err) { + console.error(err) + } + + if (variant) { + return variant + } + + const secondFragment = this.getFragment('', variantId) try { - variant = this.apollo.client.readFragment(fragment) as Variant + variant = this.apollo.client.readFragment(secondFragment) 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 } - return variant + + console.error(`MpFinderForm could not resolve its Variant from the cache`) + return } } 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..a063f9af8 --- /dev/null +++ b/client/src/app/forms/types/variant-select/fusion-variant-select/fusion-variant-select.form.ts @@ -0,0 +1,455 @@ +import { + ChangeDetectionStrategy, + Component, + EventEmitter, + Output, + inject, +} from '@angular/core' +import { + AbstractControl, + ReactiveFormsModule, + UntypedFormGroup, +} from '@angular/forms' +import { + FeatureSelectTypeaheadFieldsFragment, + Direction, + FusionPartnerStatus, + 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?: Direction + threePrimeTranscript?: string + threePrimeExonStart?: string + threePrimeOffset?: string + threePrimeOffsetDirection?: Direction + referenceBuild?: ReferenceBuild + ensemblVersion?: number + organizationId?: number +} + +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 + +export const isEnsemblTranscript = (c: AbstractControl) => { + return c.value ? /ENST\d{11}\.\d{1,2}/.test(c.value) : true +} + +@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 = {} + + 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'], + 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: !fivePrimeDisabled, + disabled: fivePrimeDisabled, + 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', + 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", + }, + validators: { + isTranscriptId: { + expression: isEnsemblTranscript, + message: + "5' Transcript must be a valid, human, versioned, Ensembl transcript ID", + }, + }, + }, + { + 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 3’ 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: { + 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 dd785a6ea..389eb8dde 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 df7a409a4..c3e2c51d0 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..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, @@ -30,6 +31,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 +47,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 +115,8 @@ export class CvcVariantSelectField onModel$ = new Observable() selectedFeatureId?: number + selectedFeatureType?: string + selectedFeature?: FeatureSelectTypeaheadFieldsFragment // FieldTypeConfig defaults defaultOptions = { @@ -132,8 +141,9 @@ export class CvcVariantSelectField constructor( private taq: VariantSelectTypeaheadGQL, private tq: VariantSelectTagGQL, - private featureQuery: LinkableFeatureGQL, - private changeDetectorRef: ChangeDetectorRef + private featureQuery: FeatureSelectTagGQL, + private changeDetectorRef: ChangeDetectorRef, + private modal: NzModalService ) { super() this.onFeatureName$ = new BehaviorSubject>(undefined) @@ -269,6 +279,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 +312,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 +327,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/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/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..e8c885340 --- /dev/null +++ b/client/src/app/forms/utilities/fusion-variant-to-model-fields.ts @@ -0,0 +1,75 @@ +import { + Maybe, + RevisableFusionVariantFieldsFragment, + 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), + 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: refBuild, + ensemblVersion: ensemblVersion, + } +} + +export function fusionVariantFormModelToReviseInput( + vid: number, + model: FusionVariantReviseModel +): Maybe { + const fields = model.fields + if (!model.comment) { + return undefined + } + + 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/gene-variant-to-model-fields.ts b/client/src/app/forms/utilities/gene-variant-to-model-fields.ts index 91901b3bf..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,21 +17,15 @@ 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, + 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, - referenceBases: variant.referenceBases, - variantBases: variant.variantBases, } } @@ -52,25 +46,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: fields.ensemblVersion + ? +fields.ensemblVersion + : undefined, + referenceBuild: 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/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/forms/utilities/input-formatters/variant-revise.ts b/client/src/app/forms/utilities/input-formatters/variant-revise.ts index b198f5241..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,11 +1,8 @@ import { ClinvarInput, - Coordinate, - CoordinateInput, Maybe, - NullableReferenceBuildTypeInput, - ReferenceBuild, } from '@app/generated/civic.apollo' +import * as fmt from '@app/forms/utilities/input-formatters' export enum ClinvarOptions { NotApplicable, @@ -41,40 +38,46 @@ export function toClinvarInput( } } -export function toCoordinateInput(coord: Maybe): CoordinateInput { - if (coord) { - return { - chromosome: undefinedIfEmpty(coord.chromosome), - representativeTranscript: undefinedIfEmpty( - coord.representativeTranscript - ), - start: coord.start ? +coord.start : undefined, - stop: coord.stop ? +coord.stop : undefined, - } - } 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 -): 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 b42aaf87d..d582bee13 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, @@ -659,13 +660,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, @@ -702,6 +696,19 @@ 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 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, @@ -896,7 +903,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, @@ -917,6 +924,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, @@ -960,7 +968,30 @@ 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 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, + ensemblId?: FieldPolicy | FieldReadFunction, + ensemblVersion?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + exon?: FieldPolicy | FieldReadFunction, + 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 +}; +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, @@ -971,6 +1002,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, @@ -982,6 +1014,7 @@ export type FactorFieldPolicy = { name?: FieldPolicy | FieldReadFunction, ncitDetails?: FieldPolicy | FieldReadFunction, ncitId?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, revisions?: FieldPolicy | FieldReadFunction, sources?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction @@ -999,7 +1032,7 @@ export type FactorEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: 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, @@ -1019,6 +1052,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, @@ -1043,7 +1077,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' | 'openRevisionCount' | 'revisions' | 'sources' | 'variants' | FeatureKeySpecifier)[]; export type FeatureFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, creationActivity?: FieldPolicy | FieldReadFunction, @@ -1054,6 +1088,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, @@ -1063,6 +1098,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 @@ -1135,7 +1171,83 @@ export type FlaggableFieldPolicy = { link?: FieldPolicy | FieldReadFunction, name?: 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 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, + deprecated?: FieldPolicy | FieldReadFunction, + deprecationActivity?: FieldPolicy | FieldReadFunction, + deprecationReason?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + featureAliases?: FieldPolicy | FieldReadFunction, + featureInstance?: FieldPolicy | FieldReadFunction, + featureType?: 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, + openRevisionCount?: FieldPolicy | FieldReadFunction, + revisions?: FieldPolicy | FieldReadFunction, + sources?: FieldPolicy | FieldReadFunction, + threePrimeGene?: FieldPolicy | FieldReadFunction, + 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 = ('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 = { + comments?: FieldPolicy | FieldReadFunction, + creationActivity?: FieldPolicy | FieldReadFunction, + deprecated?: FieldPolicy | FieldReadFunction, + deprecationActivity?: FieldPolicy | FieldReadFunction, + deprecationReason?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + feature?: FieldPolicy | FieldReadFunction, + fivePrimeCoordinates?: FieldPolicy | FieldReadFunction, + fivePrimeEndExonCoordinates?: FieldPolicy | FieldReadFunction, + fivePrimeStartExonCoordinates?: FieldPolicy | FieldReadFunction, + flagged?: FieldPolicy | FieldReadFunction, + flags?: FieldPolicy | FieldReadFunction, + fusion?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, + lastCommentEvent?: FieldPolicy | FieldReadFunction, + lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, + link?: FieldPolicy | FieldReadFunction, + molecularProfiles?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + openRevisionCount?: FieldPolicy | FieldReadFunction, + revisions?: FieldPolicy | FieldReadFunction, + 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 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, @@ -1147,6 +1259,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, @@ -1157,6 +1270,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 @@ -1174,16 +1288,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' | 'openRevisionCount' | 'primaryCoordinates' | '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, @@ -1199,15 +1313,12 @@ export type GeneVariantFieldPolicy = { myVariantInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, openCravatUrl?: FieldPolicy | FieldReadFunction, + openRevisionCount?: 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 GeneVariantConnectionKeySpecifier = ('edges' | 'nodes' | 'pageCount' | 'pageInfo' | 'totalCount' | GeneVariantConnectionKeySpecifier)[]; @@ -1393,7 +1504,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, @@ -1419,6 +1530,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, @@ -1460,7 +1572,7 @@ export type MolecularProfileTextSegmentKeySpecifier = ('text' | MolecularProfile export type MolecularProfileTextSegmentFieldPolicy = { text?: FieldPolicy | FieldReadFunction }; -export type MutationKeySpecifier = ('acceptRevisions' | 'addComment' | 'addDisease' | 'addRemoteCitation' | 'addTherapy' | 'createFeature' | 'createMolecularProfile' | 'createVariant' | 'deleteComment' | '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' | 'deleteComment' | '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, @@ -1468,6 +1580,8 @@ export type MutationFieldPolicy = { addRemoteCitation?: FieldPolicy | FieldReadFunction, addTherapy?: FieldPolicy | FieldReadFunction, createFeature?: FieldPolicy | FieldReadFunction, + createFusionFeature?: FieldPolicy | FieldReadFunction, + createFusionVariant?: FieldPolicy | FieldReadFunction, createMolecularProfile?: FieldPolicy | FieldReadFunction, createVariant?: FieldPolicy | FieldReadFunction, deleteComment?: FieldPolicy | FieldReadFunction, @@ -1488,6 +1602,8 @@ export type MutationFieldPolicy = { suggestEvidenceItemRevision?: FieldPolicy | FieldReadFunction, suggestFactorRevision?: FieldPolicy | FieldReadFunction, suggestFactorVariantRevision?: FieldPolicy | FieldReadFunction, + suggestFusionRevision?: FieldPolicy | FieldReadFunction, + suggestFusionVariantRevision?: FieldPolicy | FieldReadFunction, suggestGeneRevision?: FieldPolicy | FieldReadFunction, suggestGeneVariantRevision?: FieldPolicy | FieldReadFunction, suggestMolecularProfileRevision?: FieldPolicy | FieldReadFunction, @@ -1708,7 +1824,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' | 'factors' | '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' | 'factors' | '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, @@ -1743,6 +1859,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, @@ -2109,6 +2226,18 @@ 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 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, @@ -2283,7 +2412,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, @@ -2301,6 +2430,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, @@ -2311,7 +2441,27 @@ export type VariantAliasKeySpecifier = ('name' | VariantAliasKeySpecifier)[]; export type VariantAliasFieldPolicy = { name?: FieldPolicy | FieldReadFunction }; -export type VariantGroupKeySpecifier = ('comments' | 'description' | 'events' | 'flagged' | 'flags' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'name' | 'revisions' | 'sources' | 'variants' | VariantGroupKeySpecifier)[]; +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 +}; +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, @@ -2324,6 +2474,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 @@ -2341,7 +2492,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, @@ -2359,6 +2510,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, @@ -2397,10 +2549,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 = { @@ -2672,10 +2825,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, @@ -2692,6 +2841,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | CreateFeaturePayloadKeySpecifier | (() => undefined | CreateFeaturePayloadKeySpecifier), fields?: CreateFeaturePayloadFieldPolicy, }, + CreateFusionFeaturePayload?: Omit & { + 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, @@ -2800,6 +2957,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, @@ -2864,6 +3025,22 @@ export type StrictTypedTypePolicies = { keyFields?: false | FlaggableKeySpecifier | (() => undefined | FlaggableKeySpecifier), fields?: FlaggableFieldPolicy, }, + Fusion?: Omit & { + 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, + }, Gene?: Omit & { keyFields?: false | GeneKeySpecifier | (() => undefined | GeneKeySpecifier), fields?: GeneFieldPolicy, @@ -3196,6 +3373,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | SuggestFactorVariantRevisionPayloadKeySpecifier | (() => undefined | SuggestFactorVariantRevisionPayloadKeySpecifier), fields?: SuggestFactorVariantRevisionPayloadFieldPolicy, }, + SuggestFusionRevisionPayload?: Omit & { + 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, @@ -3284,6 +3469,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | VariantAliasKeySpecifier | (() => undefined | VariantAliasKeySpecifier), fields?: VariantAliasFieldPolicy, }, + VariantCoordinate?: Omit & { + keyFields?: false | VariantCoordinateKeySpecifier | (() => undefined | VariantCoordinateKeySpecifier), + fields?: VariantCoordinateFieldPolicy, + }, 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 647620a04..b3289e911 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -302,6 +302,7 @@ export type Assertion = Commentable & EventOriginObject & EventSubject & Flaggab name: Scalars['String']['output']; nccnGuideline?: Maybe; nccnGuidelineVersion?: Maybe; + openRevisionCount: Scalars['Int']['output']; phenotypes: Array; regulatoryApproval?: Maybe; regulatoryApprovalLastUpdated?: Maybe; @@ -1325,21 +1326,6 @@ export type Contribution = { count: Scalars['Int']['output']; }; -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']['output']; @@ -1397,10 +1383,67 @@ 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']['output']; +}; + +/** 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']['output']; }; +/** 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']['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; +}; + +/** 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']['output']; + /** The newly created Variant. */ + variant: VariantInterface; +}; + /** Autogenerated input type of CreateMolecularProfile */ export type CreateMolecularProfileInput = { /** A unique identifier for the client performing the mutation. */ @@ -1675,6 +1718,11 @@ export type DeprecateVariantPayload = { variant?: Maybe; }; +export enum Direction { + Negative = 'NEGATIVE', + Positive = 'POSITIVE' +} + export type Disease = { __typename: 'Disease'; deprecated: Scalars['Boolean']['output']; @@ -1924,6 +1972,7 @@ export type EvidenceItem = Commentable & EventOriginObject & EventSubject & Flag link: Scalars['String']['output']; molecularProfile: MolecularProfile; name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; phenotypes: Array; rejectionEvent?: Maybe; /** List and filter revisions. */ @@ -2139,6 +2188,64 @@ export enum EvidenceType { Prognostic = 'PROGNOSTIC' } +export type ExonCoordinate = EventSubject & WithRevisions & { + __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']['output']; + lastAcceptedRevisionEvent?: Maybe; + lastSubmittedRevisionEvent?: Maybe; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; + referenceBuild?: Maybe; + representativeTranscript?: Maybe; + /** List and filter revisions. */ + revisions: RevisionConnection; + start?: Maybe; + stop?: Maybe; + strand?: Maybe; +}; + + +export type ExonCoordinateEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: 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 { + 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'; @@ -2153,6 +2260,7 @@ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable events: EventConnection; featureAliases: Array; featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; @@ -2165,6 +2273,7 @@ export type Factor = Commentable & EventOriginObject & EventSubject & Flaggable name: Scalars['String']['output']; ncitDetails?: Maybe; ncitId?: Maybe; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2307,6 +2416,7 @@ export type FactorVariant = Commentable & EventOriginObject & EventSubject & Fla name: Scalars['String']['output']; ncitDetails?: Maybe; ncitId?: Maybe; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -2431,6 +2541,7 @@ export type Feature = Commentable & EventOriginObject & EventSubject & Flaggable events: EventConnection; featureAliases: Array; featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; @@ -2441,10 +2552,11 @@ export type Feature = Commentable & EventOriginObject & EventSubject & Flaggable lastSubmittedRevisionEvent?: Maybe; link: Scalars['String']['output']; name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; - /** List and filter Gene variants. */ + /** List and filter variants. */ variants: VariantInterfaceConnection; }; @@ -2527,10 +2639,11 @@ 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', + Fusion = 'FUSION', Gene = 'GENE' } @@ -2730,6 +2843,284 @@ export type FlaggableInput = { id: Scalars['Int']['input']; }; +/** 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']['output']; + deprecationActivity?: Maybe; + deprecationReason?: Maybe; + description?: Maybe; + /** List and filter events for an object */ + events: EventConnection; + featureAliases: Array; + featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; + fivePrimeGene?: Maybe; + fivePrimePartnerStatus: FusionPartnerStatus; + flagged: Scalars['Boolean']['output']; + /** List and filter flags. */ + flags: FlagConnection; + fullName?: Maybe; + id: Scalars['Int']['output']; + lastAcceptedRevisionEvent?: Maybe; + lastCommentEvent?: Maybe; + lastSubmittedRevisionEvent?: Maybe; + link: Scalars['String']['output']; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; + /** List and filter revisions. */ + revisions: RevisionConnection; + sources: Array; + threePrimeGene?: Maybe; + threePrimePartnerStatus: FusionPartnerStatus; + /** List and filter variants. */ + variants: VariantInterfaceConnection; +}; + + +/** 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; + alleleRegistryId?: InputMaybe; + before?: InputMaybe; + category?: InputMaybe; + factorId?: InputMaybe; + featureId?: InputMaybe; + first?: InputMaybe; + geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; + last?: InputMaybe; + name?: InputMaybe; + sortBy?: InputMaybe; + variantTypeIds?: 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']['output']; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** The total number of records in this filtered collection. */ + totalCount: Scalars['Int']['output']; +}; + +/** An edge in a connection. */ +export type FusionEdge = { + __typename: 'FusionEdge'; + /** A cursor for use in pagination. */ + cursor: Scalars['String']['output']; + /** The item at the end of the edge. */ + 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 */ + geneId?: InputMaybe; + /** The status of the fusion partner */ + partnerStatus: FusionPartnerStatus; +}; + +export enum FusionPartnerStatus { + Known = 'KNOWN', + Multiple = 'MULTIPLE', + Unknown = 'UNKNOWN' +} + +export type FusionVariant = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions & { + __typename: 'FusionVariant'; + /** List and filter comments. */ + comments: CommentConnection; + creationActivity?: Maybe; + deprecated: Scalars['Boolean']['output']; + deprecationActivity?: Maybe; + deprecationReason?: Maybe; + /** List and filter events for an object */ + events: EventConnection; + feature: Feature; + fivePrimeCoordinates?: Maybe; + fivePrimeEndExonCoordinates?: Maybe; + fivePrimeStartExonCoordinates?: Maybe; + flagged: Scalars['Boolean']['output']; + /** List and filter flags. */ + flags: FlagConnection; + fusion: Fusion; + id: Scalars['Int']['output']; + lastAcceptedRevisionEvent?: Maybe; + lastCommentEvent?: Maybe; + lastSubmittedRevisionEvent?: Maybe; + link: Scalars['String']['output']; + molecularProfiles: MolecularProfileConnection; + name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; + /** List and filter revisions. */ + revisions: RevisionConnection; + singleVariantMolecularProfile: MolecularProfile; + singleVariantMolecularProfileId: Scalars['Int']['output']; + threePrimeCoordinates?: Maybe; + threePrimeEndExonCoordinates?: Maybe; + threePrimeStartExonCoordinates?: Maybe; + variantAliases: Array; + variantTypes: Array; + viccCompliantName: Scalars['String']['output']; +}; + + +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; +}; + +/** 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']['input']; + fivePrimeExonEnd?: InputMaybe; + fivePrimeOffset?: InputMaybe; + fivePrimeOffsetDirection?: InputMaybe; + fivePrimeTranscript?: InputMaybe; + /** The reference build for the genomic coordinates of this Variant. */ + referenceBuild?: InputMaybe; + threePrimeExonStart?: InputMaybe; + threePrimeOffset?: InputMaybe; + threePrimeOffsetDirection?: InputMaybe; + threePrimeTranscript?: InputMaybe; +}; + /** The Feature that a Variant can belong to */ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions & { __typename: 'Gene'; @@ -2745,6 +3136,7 @@ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & events: EventConnection; featureAliases: Array; featureInstance: FeatureInstance; + featureType: FeatureInstanceTypes; flagged: Scalars['Boolean']['output']; /** List and filter flags. */ flags: FlagConnection; @@ -2756,6 +3148,7 @@ export type Gene = Commentable & EventOriginObject & EventSubject & Flaggable & link: Scalars['String']['output']; myGeneInfoDetails?: Maybe; name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; @@ -2885,11 +3278,11 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg clinvarIds: Array; /** List and filter comments. */ comments: CommentConnection; + coordinates?: Maybe; creationActivity?: Maybe; deprecated: Scalars['Boolean']['output']; deprecationActivity?: Maybe; deprecationReason?: Maybe; - ensemblVersion?: Maybe; /** List and filter events for an object */ events: EventConnection; feature: Feature; @@ -2907,16 +3300,14 @@ export type GeneVariant = Commentable & EventOriginObject & EventSubject & Flagg myVariantInfo?: Maybe; name: Scalars['String']['output']; openCravatUrl?: Maybe; - primaryCoordinates?: Maybe; - referenceBases?: Maybe; - referenceBuild?: 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; - secondaryCoordinates?: Maybe; singleVariantMolecularProfile: MolecularProfile; singleVariantMolecularProfileId: Scalars['Int']['output']; variantAliases: Array; - variantBases?: Maybe; variantTypes: Array; }; @@ -2993,6 +3384,21 @@ export type GeneVariantConnection = { totalCount: Scalars['Int']['output']; }; +export type GeneVariantCoordinateInput = { + chromosome?: InputMaybe; + /** The Ensembl database version. */ + 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; + /** Variant bases for this variant */ + variantBases: NullableStringInput; +}; + /** An edge in a connection. */ export type GeneVariantEdge = { __typename: 'GeneVariantEdge'; @@ -3008,24 +3414,14 @@ export type GeneVariantFields = { 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']['input']; /** List of HGVS descriptions for the Variant. */ hgvsDescriptions: Array; /** The Variant's name. */ name: Scalars['String']['input']; - /** 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; }; @@ -3329,9 +3725,11 @@ export type ModerateEvidenceItemPayload = { export enum ModeratedEntities { Assertion = 'ASSERTION', EvidenceItem = 'EVIDENCE_ITEM', + ExonCoordinates = 'EXON_COORDINATES', Feature = 'FEATURE', MolecularProfile = 'MOLECULAR_PROFILE', Variant = 'VARIANT', + VariantCoordinates = 'VARIANT_COORDINATES', VariantGroup = 'VARIANT_GROUP' } @@ -3394,6 +3792,7 @@ export type MolecularProfile = Commentable & EventOriginObject & EventSubject & molecularProfileScore: Scalars['Float']['output']; /** The human readable name of this profile, including gene and variant names. */ 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. */ @@ -3610,6 +4009,10 @@ 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 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. */ @@ -3664,6 +4067,10 @@ 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 Fusion entity. */ + suggestFusionVariantRevision?: Maybe; /** Suggest a Revision to a Feature entity of instance type "Gene". */ suggestGeneRevision?: Maybe; /** Suggest a Revision to a Variant entity. */ @@ -3715,6 +4122,16 @@ export type MutationCreateFeatureArgs = { }; +export type MutationCreateFusionFeatureArgs = { + input: CreateFusionFeatureInput; +}; + + +export type MutationCreateFusionVariantArgs = { + input: CreateFusionVariantInput; +}; + + export type MutationCreateMolecularProfileArgs = { input: CreateMolecularProfileInput; }; @@ -3815,6 +4232,16 @@ export type MutationSuggestFactorVariantRevisionArgs = { }; +export type MutationSuggestFusionRevisionArgs = { + input: SuggestFusionRevisionInput; +}; + + +export type MutationSuggestFusionVariantRevisionArgs = { + input: SuggestFusionVariantRevisionInput; +}; + + export type MutationSuggestGeneRevisionArgs = { input: SuggestGeneRevisionInput; }; @@ -4100,19 +4527,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. @@ -4375,6 +4789,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. */ @@ -4782,6 +5198,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; @@ -5921,8 +6348,86 @@ 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. */ - factor: Factor; + /** The Factor the user has proposed a Revision to. */ + factor: Factor; + /** + * 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 SuggestFactorVariantRevision */ +export type SuggestFactorVariantRevisionInput = { + /** 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: FactorVariantFields; + /** The ID of the Variant to suggest a Revision to. */ + 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; +}; + +/** Autogenerated return type of SuggestFactorVariantRevision. */ +export type SuggestFactorVariantRevisionPayload = { + __typename: 'SuggestFactorVariantRevisionPayload'; + /** 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: 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']['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']['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; +}; + +/** 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. @@ -5933,8 +6438,8 @@ export type SuggestFactorRevisionPayload = { results: Array; }; -/** Autogenerated input type of SuggestFactorVariantRevision */ -export type SuggestFactorVariantRevisionInput = { +/** 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. */ @@ -5943,7 +6448,7 @@ export type SuggestFactorVariantRevisionInput = { * 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; + fields: FusionVariantFields; /** The ID of the Variant to suggest a Revision to. */ id: Scalars['Int']['input']; /** @@ -5955,9 +6460,9 @@ export type SuggestFactorVariantRevisionInput = { organizationId?: InputMaybe; }; -/** Autogenerated return type of SuggestFactorVariantRevision. */ -export type SuggestFactorVariantRevisionPayload = { - __typename: 'SuggestFactorVariantRevisionPayload'; +/** Autogenerated return type of SuggestFusionVariantRevision. */ +export type SuggestFusionVariantRevisionPayload = { + __typename: 'SuggestFusionVariantRevisionPayload'; /** A unique identifier for the client performing the mutation. */ clientMutationId?: Maybe; /** @@ -5969,7 +6474,7 @@ export type SuggestFactorVariantRevisionPayload = { */ results: Array; /** The Variant the user has proposed a Revision to. */ - variant: FactorVariant; + variant: FusionVariant; }; /** Autogenerated input type of SuggestGeneRevision */ @@ -6549,6 +7054,7 @@ export type Variant = Commentable & EventOriginObject & EventSubject & Flaggable link: Scalars['String']['output']; molecularProfiles: MolecularProfileConnection; name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -6622,6 +7128,7 @@ export type VariantAlias = { export enum VariantCategories { Factor = 'FACTOR', + Fusion = 'FUSION', Gene = 'GENE' } @@ -6633,6 +7140,60 @@ export type VariantComponent = { variantId: Scalars['Int']['input']; }; +export type VariantCoordinate = EventSubject & WithRevisions & { + __typename: 'VariantCoordinate'; + chromosome?: Maybe; + coordinateType: VariantCoordinateType; + ensemblVersion?: Maybe; + /** List and filter events for an object */ + events: EventConnection; + 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; + /** List and filter revisions. */ + revisions: RevisionConnection; + start?: Maybe; + stop?: Maybe; + variantBases?: Maybe; +}; + + +export type VariantCoordinateEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: 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 { + FivePrimeFusionCoordinate = 'FIVE_PRIME_FUSION_COORDINATE', + GeneVariantCoordinate = 'GENE_VARIANT_COORDINATE', + ThreePrimeFusionCoordinate = 'THREE_PRIME_FUSION_COORDINATE' +} + export enum VariantDeprecationReason { Duplicate = 'DUPLICATE', FeatureDeprecated = 'FEATURE_DEPRECATED', @@ -6656,10 +7217,11 @@ export type VariantGroup = Commentable & EventSubject & Flaggable & WithRevision lastSubmittedRevisionEvent?: Maybe; link: Scalars['String']['output']; name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; sources: Array; - /** List and filter Gene variants. */ + /** List and filter variants. */ variants: VariantInterfaceConnection; }; @@ -6802,6 +7364,7 @@ export type VariantInterface = { link: Scalars['String']['output']; molecularProfiles: MolecularProfileConnection; name: Scalars['String']['output']; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; singleVariantMolecularProfile: MolecularProfile; @@ -6971,6 +7534,7 @@ export enum VariantsSortColumns { export type WithRevisions = { lastAcceptedRevisionEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; + openRevisionCount: Scalars['Int']['output']; /** List and filter revisions. */ revisions: RevisionConnection; }; @@ -7045,47 +7609,47 @@ 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, name: string, id: number, link: string } } | { __typename: 'DeleteCommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __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: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, name: string, id: number, link: string } } | { __typename: 'DeleteCommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, name: string, id: number, link: string } } | { __typename: 'DeleteCommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __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: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, name: string, id: number, link: string } } | { __typename: 'DeleteCommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, name: string, id: number, link: string } }; -type ActivityFeedNode_DeleteCommentActivity_Fragment = { __typename: 'DeleteCommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __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: 'Factor', name: string, id: number, link: string } | { __typename: 'FactorVariant', deprecated: boolean, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, name: string, id: number, link: string } }; +type ActivityFeedNode_DeleteCommentActivity_Fragment = { __typename: 'DeleteCommentActivity', id: number, verbiage: string, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, user: { __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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, name: string, id: number, link: string, feature: { __typename: 'Feature', id: number, name: string, link: 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, name: string, link: 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, name: string, 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, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', name: string, id: number, link: string } | { __typename: 'VariantGroup', flagged: boolean, 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_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; @@ -7197,9 +7761,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', 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: '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 } } | 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', 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 } } | 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', 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: '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 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']['input']; @@ -7256,11 +7820,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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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: '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: '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: '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, 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 } | 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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: '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: '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: '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, 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 } | 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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: '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: '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: '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, 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']['input']; @@ -7311,9 +7875,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: 'VariantInterfaceConnection', 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: 'Gene' }, variants: { __typename: 'VariantInterfaceConnection', 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; @@ -7347,20 +7911,33 @@ 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', deprecated: boolean, 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 } | 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', 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 } | 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', deprecated: boolean, 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 } | 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', 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 } | 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', deprecated: boolean, 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 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']['input']; }>; -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', 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: '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 }> } } | 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', 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 }> } } | 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', 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; +}>; + + +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 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: '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 MenuFusionFragment = { __typename: 'Fusion', id: number, name: string, link: string, flagged: boolean, deprecated: boolean }; export type QuicksearchQueryVariables = Exact<{ query: Scalars['String']['input']; @@ -7538,9 +8115,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, 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, subject: { __typename: 'Assertion', flagged: boolean, status: EvidenceStatus, id: number, link: string, name: string } | { __typename: 'EvidenceItem', flagged: boolean, status: EvidenceStatus, id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, subject: { __typename: 'Assertion', flagged: boolean, status: EvidenceStatus, id: number, link: string, name: string } | { __typename: 'EvidenceItem', flagged: boolean, status: EvidenceStatus, 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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', id: number, link: string, name: string } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, subject: { __typename: 'Assertion', flagged: boolean, status: EvidenceStatus, id: number, link: string, name: string } | { __typename: 'EvidenceItem', flagged: boolean, status: EvidenceStatus, id: number, link: string, name: string } | { __typename: 'Factor', id: number, link: string, name: string } | { __typename: 'FactorVariant', deprecated: boolean, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantGroup', flagged: boolean, 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, 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, subject: { __typename: 'Assertion', flagged: boolean, status: EvidenceStatus, id: number, link: string, name: string } | { __typename: 'EvidenceItem', flagged: boolean, status: EvidenceStatus, 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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Feature', deprecated: boolean, flagged: boolean, 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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'GeneVariant', deprecated: boolean, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __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, flagged: boolean, id: number, link: string, name: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean } } | { __typename: 'VariantCoordinate', id: number, link: string, name: string } | { __typename: 'VariantGroup', flagged: boolean, id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; export type RevisionsQueryVariables = Exact<{ subject?: InputMaybe; @@ -7758,9 +8335,9 @@ export type VariantGroupPopoverQueryVariables = Exact<{ }>; -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, 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 }> } | 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, 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 }> } | undefined }; -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: '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 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; @@ -7807,30 +8384,36 @@ 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: '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_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_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 }; 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 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']['input']; }>; -export type VariantPopoverQuery = { __typename: 'Query', variant?: { __typename: 'FactorVariant', id: number, name: string, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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; @@ -7845,7 +8428,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: '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 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; @@ -7858,11 +8441,13 @@ export type MenuVariantTypeFragment = { __typename: 'BrowseVariantType', id: num type MenuVariant_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, flagged: boolean, deprecated: boolean }; +type MenuVariant_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, flagged: boolean, deprecated: boolean }; + type MenuVariant_GeneVariant_Fragment = { __typename: 'GeneVariant', id: number, name: string, link: string, flagged: boolean, deprecated: boolean }; type MenuVariant_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string, flagged: boolean, deprecated: 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; @@ -7954,7 +8539,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']['input']; @@ -7968,7 +8553,24 @@ 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']['input']; + deprecationReason: FeatureDeprecationReason; + 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']['input']; +}>; + + +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; @@ -8018,7 +8620,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']['input']; @@ -8111,9 +8713,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; @@ -8127,7 +8729,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 }> }; @@ -8138,6 +8740,38 @@ 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']['input']; +}>; + + +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']['input']; +}>; + + +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, 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; +}>; + + +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']['input']; }>; @@ -8159,11 +8793,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: '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, 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: '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: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined }; +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; @@ -8207,9 +8841,9 @@ export type VariantGroupRevisableFieldsQueryVariables = Exact<{ }>; -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: '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: '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 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: 'VariantInterfaceConnection', totalCount: number, edges: Array<{ __typename: 'VariantInterfaceEdge', cursor: string, node?: { __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 }>, nodes: 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 }> }, 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; @@ -8223,9 +8857,9 @@ export type VariantGroupSubmittableFieldsQueryVariables = Exact<{ }>; -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: '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 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: 'VariantInterfaceConnection', nodes: Array<{ __typename: 'FactorVariant', 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 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; @@ -8244,7 +8878,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']['input']; @@ -8362,9 +8996,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, 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: '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, deprecated: boolean }> } } } | 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: '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, deprecated: boolean }> } } }; +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']['input']; @@ -8372,16 +9006,27 @@ 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, 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']['input']; }>; -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, 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, featureType: FeatureInstanceTypes, featureInstance: { __typename: 'Factor', ncitId?: string | undefined } | { __typename: 'Fusion', fivePrimePartnerStatus: FusionPartnerStatus, threePrimePartnerStatus: FusionPartnerStatus } | { __typename: 'Gene', entrezId: number } }; -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 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, 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']['input']; @@ -8405,7 +9050,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: '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 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']['input']; @@ -8520,6 +9165,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']['input']; + coordinates: FusionVariantInput; +}>; + + +export type SelectOrCreateFusionVariantMutation = { __typename: 'Mutation', createFusionVariant?: { __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 } } } | undefined }; + +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; @@ -8564,15 +9220,17 @@ export type VariantSelectTagQueryVariables = Exact<{ }>; -export type VariantSelectTagQuery = { __typename: 'Query', 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: '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 } } | undefined }; +export type VariantSelectTagQuery = { __typename: 'Query', 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 } } | undefined }; type VariantSelectTypeaheadFields_FactorVariant_Fragment = { __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 } }; +type VariantSelectTypeaheadFields_FusionVariant_Fragment = { __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 } }; + type VariantSelectTypeaheadFields_GeneVariant_Fragment = { __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 } }; type VariantSelectTypeaheadFields_Variant_Fragment = { __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 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']['input']; @@ -8667,20 +9325,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, 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: '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, 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 } } | 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, 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: '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, 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']['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: '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, deprecated: boolean }> } } | 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: '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, deprecated: boolean }> } }; +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 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, 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, 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, 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, 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 }; @@ -8691,18 +9353,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, 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: '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: '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, 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 }> } | 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, 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: '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: '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, 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']['input']; }>; -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, deprecated: boolean }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, 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, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, 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 }>, 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, deprecated: boolean }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, 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 }>, 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, deprecated: boolean }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, 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, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, 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 }>, 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, deprecated: boolean }>, variants: Array<{ __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }> }>, 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 }>, 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, deprecated: boolean, flagged: boolean }; @@ -8714,11 +9376,13 @@ export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Feat type VariantMolecularProfileCardFields_FactorVariant_Fragment = { __typename: 'FactorVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, variantAliases: Array, ncitId?: string | undefined, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, 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, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, link: string, deprecated: boolean, flagged: boolean, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, maneSelectTranscript?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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, deprecated: boolean, flagged: boolean, variantAliases: Array, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean, flagged: 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']['input']; @@ -8825,22 +9489,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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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: '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: '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: '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: '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, 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 }, 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: '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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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: '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: '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: '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, 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 }, 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, flagged: boolean, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, flagged: boolean, 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: '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: '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: '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, 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 }, 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; @@ -8888,34 +9552,57 @@ 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, 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 } } | { __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, 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 } } | { __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, 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 } } | 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, 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 }, 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, 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 }, 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, 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 }, 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, 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 }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; + +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, 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 }, 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, 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 }, 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, 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 }, 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, 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 }, comments: { __typename: 'CommentConnection', totalCount: number } }; + +export type VariantDetailFieldsFragment = VariantDetailFields_FactorVariant_Fragment | VariantDetailFields_FusionVariant_Fragment | VariantDetailFields_GeneVariant_Fragment | VariantDetailFields_Variant_Fragment; + +export type CoordinateIdsForVariantQueryVariables = Exact<{ + variantId: Scalars['Int']['input']; +}>; + + +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', openRevisionCount: number }; -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, 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 } }; +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 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, 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 } }; +type VariantCoordinateIds_GeneVariant_Fragment = { __typename: 'GeneVariant', openRevisionCount: number, coordinates?: { __typename: 'VariantCoordinate', openRevisionCount: number, id: number } | undefined }; -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, 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 } }; +type VariantCoordinateIds_Variant_Fragment = { __typename: 'Variant', openRevisionCount: number }; -export type VariantDetailFieldsFragment = VariantDetailFields_FactorVariant_Fragment | VariantDetailFields_GeneVariant_Fragment | VariantDetailFields_Variant_Fragment; +export type VariantCoordinateIdsFragment = VariantCoordinateIds_FactorVariant_Fragment | VariantCoordinateIds_FusionVariant_Fragment | VariantCoordinateIds_GeneVariant_Fragment | VariantCoordinateIds_Variant_Fragment; export type VariantSummaryQueryVariables = Exact<{ variantId: Scalars['Int']['input']; }>; -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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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_FusionVariant_Fragment = { __typename: 'FusionVariant', id: number, name: string, variantAliases: Array, viccCompliantName: string, feature: { __typename: 'Feature', id: number, name: string, link: string, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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, deprecated: boolean, flagged: boolean }, 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 }; -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: '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, 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 }; @@ -9695,6 +10382,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 @@ -10239,30 +10935,67 @@ export const VariantTypeBrowseTableRowFieldsFragmentDoc = gql` link } `; +export const CoordinateFieldsFragmentDoc = gql` + fragment CoordinateFields on VariantCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + referenceBases + variantBases + coordinateType +} + `; +export const ExonCoordinateFieldsFragmentDoc = gql` + fragment ExonCoordinateFields on ExonCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + exon + exonOffset + exonOffsetDirection + ensemblId + strand + coordinateType +} + `; export const CoordinatesCardFieldsFragmentDoc = gql` fragment CoordinatesCardFields on VariantInterface { id name ... on GeneVariant { - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop + coordinates { + ...CoordinateFields + } + } + ... on FusionVariant { + fivePrimeCoordinates { + ...CoordinateFields } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields } - referenceBases - variantBases } } - `; + ${CoordinateFieldsFragmentDoc} +${ExonCoordinateFieldsFragmentDoc}`; export const VariantPopoverFieldsFragmentDoc = gql` fragment variantPopoverFields on VariantInterface { id @@ -10554,8 +11287,8 @@ export const RevisableFactorVariantFieldsFragmentDoc = gql` ncitId } `; -export const RevisableGeneFieldsFragmentDoc = gql` - fragment RevisableGeneFields on Feature { +export const RevisableFusionFieldsFragmentDoc = gql` + fragment RevisableFusionFields on Feature { id description sources { @@ -10564,14 +11297,52 @@ export const RevisableGeneFieldsFragmentDoc = gql` citation citationId } + featureAliases + featureInstance { + __typename + } } `; -export const CoordinateFieldsFragmentDoc = gql` - fragment CoordinateFields on Coordinate { - chromosome - representativeTranscript - start - stop +export const RevisableFusionVariantFieldsFragmentDoc = gql` + fragment RevisableFusionVariantFields on FusionVariant { + name + feature { + id + name + link + deprecated + flagged + featureInstance { + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } + } + } + variantAliases + variantTypes { + id + name + soid + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } +} + ${ExonCoordinateFieldsFragmentDoc}`; +export const RevisableGeneFieldsFragmentDoc = gql` + fragment RevisableGeneFields on Feature { + id + description + sources { + id + sourceType + citation + citationId + } } `; export const RevisableGeneVariantFieldsFragmentDoc = gql` @@ -10584,22 +11355,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` @@ -10748,13 +11512,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 @@ -10764,9 +11531,14 @@ export const GeneSummaryFieldsFragmentDoc = gql` sourceType deprecated } - myGeneInfoDetails } `; +export const GeneSummaryFieldsFragmentDoc = gql` + fragment GeneSummaryFields on Gene { + ...GeneBaseFields + myGeneInfoDetails +} + ${GeneBaseFieldsFragmentDoc}`; export const NcitDetailsFragmentDoc = gql` fragment NcitDetails on NcitDetails { synonyms { @@ -10818,7 +11590,50 @@ export const FactorSummaryFieldsFragmentDoc = gql` createdAt } } - ${NcitDetailsFragmentDoc}`; + ${NcitDetailsFragmentDoc}`; +export const FusionSummaryFieldsFragmentDoc = gql` + fragment FusionSummaryFields on Fusion { + id + description + featureAliases + name + sources { + id + citation + link + sourceUrl + displayType + sourceType + deprecated + } + 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 @@ -10835,10 +11650,14 @@ export const FeatureSummaryFieldsFragmentDoc = gql` ... on Factor { ...FactorSummaryFields } + ... on Fusion { + ...FusionSummaryFields + } } } ${GeneSummaryFieldsFragmentDoc} -${FactorSummaryFieldsFragmentDoc}`; +${FactorSummaryFieldsFragmentDoc} +${FusionSummaryFieldsFragmentDoc}`; export const QuickAddFeatureFieldsFragmentDoc = gql` fragment QuickAddFeatureFields on CreateFeaturePayload { clientMutationId @@ -10854,6 +11673,7 @@ export const FeatureSelectTypeaheadFieldsFragmentDoc = gql` name featureAliases link + featureType featureInstance { __typename ... on Gene { @@ -10862,6 +11682,10 @@ export const FeatureSelectTypeaheadFieldsFragmentDoc = gql` ... on Factor { ncitId } + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } } } `; @@ -10901,6 +11725,31 @@ export const QuickAddTherapyFieldsFragmentDoc = gql` } } ${TherapySelectTypeaheadFieldsFragmentDoc}`; +export const VariantSelectTypeaheadFieldsFragmentDoc = gql` + fragment VariantSelectTypeaheadFields on VariantInterface { + id + name + link + deprecated + 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 @@ -10926,22 +11775,6 @@ export const VariantManagerFieldsFragmentDoc = gql` } } `; -export const VariantSelectTypeaheadFieldsFragmentDoc = gql` - fragment VariantSelectTypeaheadFields on VariantInterface { - id - name - link - deprecated - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } -} - `; export const QuickAddVariantFieldsFragmentDoc = gql` fragment QuickAddVariantFields on CreateVariantPayload { clientMutationId @@ -11435,27 +12268,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 @@ -11464,6 +12285,48 @@ export const FactorVariantSummaryFieldsFragmentDoc = gql` } } ${NcitDetailsFragmentDoc}`; +export const FusionVariantSummaryFieldsFragmentDoc = gql` + fragment FusionVariantSummaryFields on FusionVariant { + viccCompliantName + fusion { + fivePrimePartnerStatus + fivePrimeGene { + id + name + link + deprecated + flagged + } + threePrimePartnerStatus + threePrimeGene { + id + name + link + deprecated + flagged + } + } + fivePrimeCoordinates { + ...CoordinateFields + } + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields + } +} + ${CoordinateFieldsFragmentDoc} +${ExonCoordinateFieldsFragmentDoc}`; export const VariantMolecularProfileCardFieldsFragmentDoc = gql` fragment VariantMolecularProfileCardFields on VariantInterface { id @@ -11494,6 +12357,9 @@ export const VariantMolecularProfileCardFieldsFragmentDoc = gql` ... on FactorVariant { ...FactorVariantSummaryFields } + ... on FusionVariant { + ...FusionVariantSummaryFields + } variantAliases variantTypes { id @@ -11503,7 +12369,8 @@ export const VariantMolecularProfileCardFieldsFragmentDoc = gql` } } ${GeneVariantSummaryFieldsFragmentDoc} -${FactorVariantSummaryFieldsFragmentDoc}`; +${FactorVariantSummaryFieldsFragmentDoc} +${FusionVariantSummaryFieldsFragmentDoc}`; export const MolecularProfileSummaryFieldsFragmentDoc = gql` fragment MolecularProfileSummaryFields on MolecularProfile { id @@ -11937,14 +12804,34 @@ export const VariantDetailFieldsFragmentDoc = gql` flags(state: OPEN) { totalCount } - revisions(status: NEW) { - totalCount - } + openRevisionCount comments { totalCount } } ${ParsedCommentFragmentFragmentDoc}`; +export const VariantCoordinateIdsFragmentDoc = gql` + fragment VariantCoordinateIds on VariantInterface { + __typename + openRevisionCount + ... on GeneVariant { + coordinates { + openRevisionCount + id + } + } + ... on FusionVariant { + fivePrimeEndExonCoordinates { + openRevisionCount + id + } + threePrimeStartExonCoordinates { + openRevisionCount + id + } + } +} + `; export const VariantSummaryFieldsFragmentDoc = gql` fragment VariantSummaryFields on VariantInterface { id @@ -12013,9 +12900,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) { @@ -12605,6 +13496,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); } @@ -14197,6 +15124,7 @@ export const LinkableFeatureDocument = gql` id name link + featureType } } `; @@ -14207,6 +15135,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); } @@ -14691,6 +15666,94 @@ 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); + } + } +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: SuggestFusionVariantRevisionInput!) { + suggestFusionVariantRevision(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); } @@ -15275,6 +16338,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); } @@ -15597,6 +16683,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); } @@ -15696,6 +16802,9 @@ export const VariantSelectTagDocument = gql` ... on FactorVariant { ...VariantSelectTypeaheadFields } + ... on FusionVariant { + ...VariantSelectTypeaheadFields + } } } ${VariantSelectTypeaheadFieldsFragmentDoc}`; @@ -16375,6 +17484,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/civic.possible-types.ts b/client/src/app/generated/civic.possible-types.ts index e4ea7b2aa..0f930b3a2 100644 --- a/client/src/app/generated/civic.possible-types.ts +++ b/client/src/app/generated/civic.possible-types.ts @@ -42,6 +42,8 @@ "FactorVariant", "Feature", "Flag", + "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -59,6 +61,8 @@ "FactorVariant", "Feature", "Flag", + "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -69,10 +73,13 @@ "EventSubject": [ "Assertion", "EvidenceItem", + "ExonCoordinate", "Factor", "FactorVariant", "Feature", "Flag", + "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -82,10 +89,12 @@ "SourcePopover", "SourceSuggestion", "Variant", + "VariantCoordinate", "VariantGroup" ], "FeatureInstance": [ "Factor", + "Fusion", "Gene" ], "Flaggable": [ @@ -95,6 +104,8 @@ "Factor", "FactorVariant", "Feature", + "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", @@ -113,6 +124,8 @@ "Factor", "FactorVariant", "Feature", + "Fusion", + "FusionVariant", "Gene", "GeneVariant", "Variant" @@ -124,19 +137,24 @@ ], "VariantInterface": [ "FactorVariant", + "FusionVariant", "GeneVariant", "Variant" ], "WithRevisions": [ "Assertion", "EvidenceItem", + "ExonCoordinate", "Factor", "FactorVariant", "Feature", + "Fusion", + "FusionVariant", "Gene", "GeneVariant", "MolecularProfile", "Variant", + "VariantCoordinate", "VariantGroup" ] } diff --git a/client/src/app/generated/server.model.graphql b/client/src/app/generated/server.model.graphql index ec526ffbb..441e34d0a 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 @@ -2087,20 +2088,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! @@ -2174,9 +2161,106 @@ 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! +} + +""" +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! } """ @@ -2570,6 +2654,11 @@ type DeprecateVariantPayload { variant: VariantInterface } +enum Direction { + NEGATIVE + POSITIVE +} + type Disease { deprecated: Boolean! diseaseAliases: [String!]! @@ -3030,6 +3119,7 @@ type EvidenceItem implements Commentable & EventOriginObject & EventSubject & Fl link: String! molecularProfile: MolecularProfile! name: String! + openRevisionCount: Int! phenotypes: [Phenotype!]! rejectionEvent: Event @@ -3307,6 +3397,117 @@ enum EvidenceType { PROGNOSTIC } +type ExonCoordinate implements EventSubject & WithRevisions { + 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! + 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 +} + +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 """ @@ -3400,6 +3601,7 @@ type Factor implements Commentable & EventOriginObject & EventSubject & Flaggabl ): EventConnection! featureAliases: [String!]! featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! flagged: Boolean! """ @@ -3455,6 +3657,7 @@ type Factor implements Commentable & EventOriginObject & EventSubject & Flaggabl name: String! ncitDetails: NcitDetails ncitId: String + openRevisionCount: Int! """ List and filter revisions. @@ -3813,6 +4016,7 @@ type FactorVariant implements Commentable & EventOriginObject & EventSubject & F name: String! ncitDetails: NcitDetails ncitId: String + openRevisionCount: Int! """ List and filter revisions. @@ -4042,6 +4246,7 @@ type Feature implements Commentable & EventOriginObject & EventSubject & Flaggab ): EventConnection! featureAliases: [String!]! featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! flagged: Boolean! """ @@ -4095,6 +4300,7 @@ type Feature implements Commentable & EventOriginObject & EventSubject & Flaggab lastSubmittedRevisionEvent: Event link: String! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -4148,7 +4354,7 @@ type Feature implements Commentable & EventOriginObject & EventSubject & Flaggab sources: [Source!]! """ - List and filter Gene variants. + List and filter variants. """ variants( """ @@ -4219,10 +4425,11 @@ enum FeatureDeprecationReason { """ The specific type of a feature instance """ -union FeatureInstance = Factor | Gene +union FeatureInstance = Factor | Fusion | Gene enum FeatureInstanceTypes { FACTOR + FUSION GENE } @@ -4570,7 +4777,7 @@ input FlaggableInput { """ The Feature that a Variant can belong to """ -type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions { +type Fusion implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & WithRevisions { """ List and filter comments. """ @@ -4625,7 +4832,6 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable deprecationActivity: DeprecateFeatureActivity deprecationReason: FeatureDeprecationReason description: String - entrezId: Int! """ List and filter events for an object @@ -4661,6 +4867,9 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable ): EventConnection! featureAliases: [String!]! featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! + fivePrimeGene: Gene + fivePrimePartnerStatus: FusionPartnerStatus! flagged: Boolean! """ @@ -4713,8 +4922,8 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable lastCommentEvent: Event lastSubmittedRevisionEvent: Event link: String! - myGeneInfoDetails: JSON name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -4766,9 +4975,11 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable status: RevisionStatus ): RevisionConnection! sources: [Source!]! + threePrimeGene: Gene + threePrimePartnerStatus: FusionPartnerStatus! """ - List and filter Gene variants. + List and filter variants. """ variants( """ @@ -4827,22 +5038,22 @@ type Gene implements Commentable & EventOriginObject & EventSubject & Flaggable A list of CIViC identifiers for variant types """ variantTypeIds: [Int!] - ): GeneVariantConnection! + ): VariantInterfaceConnection! } """ -The connection type for Gene. +The connection type for Fusion. """ -type GeneConnection { +type FusionConnection { """ A list of edges. """ - edges: [GeneEdge!]! + edges: [FusionEdge!]! """ A list of nodes. """ - nodes: [Gene!]! + nodes: [Fusion!]! """ Total number of pages, based on filtered count and pagesize. @@ -4863,7 +5074,7 @@ type GeneConnection { """ An edge in a connection. """ -type GeneEdge { +type FusionEdge { """ A cursor for use in pagination. """ @@ -4872,40 +5083,51 @@ type GeneEdge { """ The item at the end of the edge. """ - node: Gene + node: Fusion } """ -Fields on a Gene that curators may propose revisions to. +Fields on a Fusion that curators may propose revisions to. """ -input GeneFields { +input FusionFields { """ - The Gene's description/summary text. + List of aliases or alternate names for the Fusion. + """ + aliases: [String!]! + + """ + The Fusion's description/summary text. """ description: NullableStringInput! """ - Source IDs cited by the Gene's summary. + Source IDs cited by the Fusion's summary. """ sourceIds: [Int!]! } -input GeneSearchFilter { - alias: StringSearchInput - booleanOperator: BooleanOperator - description: StringSearchInput - entrezId: IntSearchInput - entrezSymbol: StringSearchInput - hasAssertion: BooleanSearchInput - id: IntSearchInput - openRevisionCount: IntSearchInput - subFilters: [GeneSearchFilter!] +""" +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! } -type GeneVariant implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions { - alleleRegistryId: String - clinvarIds: [String!]! +enum FusionPartnerStatus { + KNOWN + MULTIPLE + UNKNOWN +} +type FusionVariant implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions { """ List and filter comments. """ @@ -4959,7 +5181,6 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla deprecated: Boolean! deprecationActivity: DeprecateVariantActivity deprecationReason: VariantDeprecationReason - ensemblVersion: Int """ List and filter events for an object @@ -4994,6 +5215,9 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla sortBy: DateSort ): EventConnection! feature: Feature! + fivePrimeCoordinates: VariantCoordinate + fivePrimeEndExonCoordinates: ExonCoordinate + fivePrimeStartExonCoordinates: ExonCoordinate flagged: Boolean! """ @@ -5040,13 +5264,12 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ state: FlagState ): FlagConnection! - hgvsDescriptions: [String!]! + fusion: Fusion! id: Int! lastAcceptedRevisionEvent: Event lastCommentEvent: Event lastSubmittedRevisionEvent: Event link: String! - maneSelectTranscript: String molecularProfiles( """ Returns the elements in the list that come after the specified cursor. @@ -5068,12 +5291,8 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ last: Int ): MolecularProfileConnection! - myVariantInfo: MyVariantInfo name: String! - openCravatUrl: String - primaryCoordinates: Coordinate - referenceBases: String - referenceBuild: ReferenceBuild + openRevisionCount: Int! """ List and filter revisions. @@ -5124,25 +5343,631 @@ type GeneVariant implements Commentable & EventOriginObject & EventSubject & Fla """ status: RevisionStatus ): RevisionConnection! - secondaryCoordinates: Coordinate singleVariantMolecularProfile: MolecularProfile! singleVariantMolecularProfileId: Int! + threePrimeCoordinates: VariantCoordinate + threePrimeEndExonCoordinates: ExonCoordinate + threePrimeStartExonCoordinates: ExonCoordinate variantAliases: [String!]! - variantBases: String variantTypes: [VariantType!]! + viccCompliantName: String! } """ -The connection type for GeneVariant. +Fields on a FusionVariant that curators may propose revisions to. """ -type GeneVariantConnection { +input FusionVariantFields { """ - A list of edges. + List of aliases or alternate names for the Variant. """ - edges: [GeneVariantEdge!]! + aliases: [String!]! """ - A list of nodes. + 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 +""" +input FusionVariantInput { + ensemblVersion: Int! + fivePrimeExonEnd: Int + fivePrimeOffset: Int + fivePrimeOffsetDirection: Direction + fivePrimeTranscript: String + + """ + The reference build for the genomic coordinates of this Variant. + """ + referenceBuild: ReferenceBuild + threePrimeExonStart: Int + threePrimeOffset: Int + threePrimeOffsetDirection: Direction + threePrimeTranscript: String +} + +""" +The Feature that a Variant can belong to +""" +type Gene 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 + entrezId: 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! + featureAliases: [String!]! + featureInstance: FeatureInstance! + featureType: FeatureInstanceTypes! + 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! + myGeneInfoDetails: JSON + name: String! + openRevisionCount: Int! + + """ + 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!]! + + """ + List and filter Gene variants. + """ + variants( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Find a CIViC Variant based on its ClinGen Allele Registry ID + """ + alleleRegistryId: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + category: VariantCategories + + """ + Feature that the variants are associated with, limited to only Factor type features. + """ + factorId: Int + + """ + Feature that the variants are associated with. + """ + featureId: Int + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Feature that the variants are associated with, limited to only Gene type features. + """ + geneId: Int + + """ + Return Variants lacking an assigned VariantType + """ + hasNoVariantType: Boolean + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Left anchored filtering for variant name and aliases. + """ + name: String + sortBy: VariantMenuSort + + """ + A list of CIViC identifiers for variant types + """ + variantTypeIds: [Int!] + ): GeneVariantConnection! +} + +""" +The connection type for Gene. +""" +type GeneConnection { + """ + A list of edges. + """ + edges: [GeneEdge!]! + + """ + A list of nodes. + """ + nodes: [Gene!]! + + """ + 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 GeneEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: Gene +} + +""" +Fields on a Gene that curators may propose revisions to. +""" +input GeneFields { + """ + The Gene's description/summary text. + """ + description: NullableStringInput! + + """ + Source IDs cited by the Gene's summary. + """ + sourceIds: [Int!]! +} + +input GeneSearchFilter { + alias: StringSearchInput + booleanOperator: BooleanOperator + description: StringSearchInput + entrezId: IntSearchInput + entrezSymbol: StringSearchInput + hasAssertion: BooleanSearchInput + id: IntSearchInput + openRevisionCount: IntSearchInput + subFilters: [GeneSearchFilter!] +} + +type GeneVariant implements Commentable & EventOriginObject & EventSubject & Flaggable & MolecularProfileComponent & VariantInterface & WithRevisions { + alleleRegistryId: String + 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! + coordinates: VariantCoordinate + 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! + 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! + maneSelectTranscript: 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! + myVariantInfo: MyVariantInfo + 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. + """ + 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! + variantAliases: [String!]! + variantTypes: [VariantType!]! +} + +""" +The connection type for GeneVariant. +""" +type GeneVariantConnection { + """ + A list of edges. + """ + edges: [GeneVariantEdge!]! + + """ + A list of nodes. """ nodes: [GeneVariant!]! @@ -5162,6 +5987,33 @@ type GeneVariantConnection { totalCount: Int! } +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! +} + """ An edge in a connection. """ @@ -5192,9 +6044,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. @@ -5211,31 +6063,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 """ @@ -5677,9 +6504,11 @@ Enumeration of all moderated CIViC entities. enum ModeratedEntities { ASSERTION EVIDENCE_ITEM + EXON_COORDINATES FEATURE MOLECULAR_PROFILE VARIANT + VARIANT_COORDINATES VARIANT_GROUP } @@ -5923,6 +6752,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. @@ -6228,6 +7058,26 @@ type Mutation { input: CreateFeatureInput! ): CreateFeaturePayload + """ + Create a new Fusion Feature in the database. + """ + createFusionFeature( + """ + Parameters for CreateFusionFeature + """ + 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. """ @@ -6434,6 +7284,26 @@ 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 Fusion entity. + """ + suggestFusionVariantRevision( + """ + Parameters for SuggestFusionVariantRevision + """ + input: SuggestFusionVariantRevisionInput! + ): SuggestFusionVariantRevisionPayload + """ Suggest a Revision to a Feature entity of instance type "Gene". """ @@ -6822,24 +7692,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. @@ -7932,6 +8784,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 """ @@ -9871,7 +10763,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! @@ -9943,6 +10835,122 @@ 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 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 """ @@ -10936,6 +11944,7 @@ type Variant implements Commentable & EventOriginObject & EventSubject & Flaggab last: Int ): MolecularProfileConnection! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -10998,6 +12007,7 @@ type VariantAlias { enum VariantCategories { FACTOR + FUSION GENE } @@ -11016,6 +12026,113 @@ input VariantComponent { variantId: Int! } +type VariantCoordinate implements EventSubject & WithRevisions { + 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! + 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 +} + +enum VariantCoordinateType { + FIVE_PRIME_FUSION_COORDINATE + GENE_VARIANT_COORDINATE + THREE_PRIME_FUSION_COORDINATE +} + enum VariantDeprecationReason { DUPLICATE FEATURE_DEPRECATED @@ -11159,6 +12276,7 @@ type VariantGroup implements Commentable & EventSubject & Flaggable & WithRevisi lastSubmittedRevisionEvent: Event link: String! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -11212,7 +12330,7 @@ type VariantGroup implements Commentable & EventSubject & Flaggable & WithRevisi sources: [Source!]! """ - List and filter Gene variants. + List and filter variants. """ variants( """ @@ -11528,6 +12646,7 @@ interface VariantInterface implements Commentable & EventOriginObject & EventSub last: Int ): MolecularProfileConnection! name: String! + openRevisionCount: Int! """ List and filter revisions. @@ -11718,6 +12837,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 8f433759a..c7b5c9575 100644 --- a/client/src/app/generated/server.schema.json +++ b/client/src/app/generated/server.schema.json @@ -2437,6 +2437,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, @@ -10602,6 +10618,21 @@ "name": "Flag", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -10935,124 +10966,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", @@ -11552,7 +11465,7 @@ }, { "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", @@ -11574,8 +11487,8 @@ }, { "kind": "INPUT_OBJECT", - "name": "CreateMolecularProfileInput", - "description": "Autogenerated input type of CreateMolecularProfile", + "name": "CreateFusionFeatureInput", + "description": "Autogenerated input type of CreateFusionFeature", "fields": null, "inputFields": [ { @@ -11603,145 +11516,50 @@ "deprecationReason": null }, { - "name": "structure", - "description": "Representation of the constituent parts of the Molecular Profile along with the logic used to combine them.", + "name": "fivePrimeGene", + "description": "The 5\" fusion partner", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "MolecularProfileComponentInput", + "name": "FusionPartnerInput", "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": [], + "name": "threePrimeGene", + "description": "The 3\" fusion partner", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "MolecularProfile", + "kind": "INPUT_OBJECT", + "name": "FusionPartnerInput", "ofType": null } }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null } ], - "inputFields": null, - "interfaces": [], + "interfaces": null, "enumValues": null, "possibleTypes": null }, { "kind": "OBJECT", - "name": "CreateVariantActivity", - "description": null, + "name": "CreateFusionFeaturePayload", + "description": "Autogenerated return type of CreateFusionFeature.", "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, + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", "args": [], "type": { "kind": "SCALAR", @@ -11752,67 +11570,15 @@ "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, + "name": "feature", + "description": "The newly created Feature.", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "OBJECT", - "name": "User", + "name": "Feature", "ofType": null } }, @@ -11820,15 +11586,15 @@ "deprecationReason": null }, { - "name": "verbiage", - "description": 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", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, @@ -11837,20 +11603,427 @@ } ], "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "ActivityInterface", - "ofType": null - } - ], + "interfaces": [], "enumValues": null, "possibleTypes": null }, { "kind": "INPUT_OBJECT", - "name": "CreateVariantInput", - "description": "Autogenerated input type of CreateVariant", + "name": "CreateFusionVariantInput", + "description": "Autogenerated input type of CreateFusionVariant", + "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": "coordinates", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "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": [ { @@ -13455,6 +13628,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", @@ -14823,250 +15019,285 @@ }, { "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", + "name": "Fusion", "ofType": null }, { "kind": "OBJECT", - "name": "Feature", + "name": "FusionVariant", "ofType": null }, { "kind": "OBJECT", - "name": "Flag", + "name": "FusionVariant", + "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": "ExonCoordinate", + "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 + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", "ofType": null }, { @@ -15124,6 +15355,11 @@ "name": "Variant", "ofType": null }, + { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, { "kind": "OBJECT", "name": "VariantGroup", @@ -15795,6 +16031,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, @@ -17138,156 +17390,31 @@ }, { "kind": "OBJECT", - "name": "Factor", - "description": "The Feature that a Variant can belong to", + "name": "ExonCoordinate", + "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": "creationActivity", + "name": "chromosome", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "CreateFeatureActivity", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deprecated", + "name": "coordinateType", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", + "kind": "ENUM", + "name": "ExonCoordinateType", "ofType": null } }, @@ -17295,36 +17422,24 @@ "deprecationReason": null }, { - "name": "deprecationActivity", + "name": "ensemblId", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "DeprecateFeatureActivity", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "FeatureDeprecationReason", + "kind": "SCALAR", + "name": "String", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "description", + "name": "ensemblVersion", "description": null, "args": [], "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "isDeprecated": false, @@ -17444,181 +17559,36 @@ "deprecationReason": null }, { - "name": "featureAliases", + "name": "exon", "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 - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "flagged", + "name": "exonOffset", "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 - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "fullName", + "name": "exonOffsetDirection", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "Direction", "ofType": null }, "isDeprecated": false, @@ -17653,7 +17623,7 @@ "deprecationReason": null }, { - "name": "lastCommentEvent", + "name": "lastSubmittedRevisionEvent", "description": null, "args": [], "type": { @@ -17665,19 +17635,23 @@ "deprecationReason": null }, { - "name": "lastSubmittedRevisionEvent", + "name": "link", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "Event", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "link", + "name": "name", "description": null, "args": [], "type": { @@ -17693,7 +17667,7 @@ "deprecationReason": null }, { - "name": "name", + "name": "openRevisionCount", "description": null, "args": [], "type": { @@ -17701,7 +17675,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null } }, @@ -17709,19 +17683,19 @@ "deprecationReason": null }, { - "name": "ncitDetails", + "name": "referenceBuild", "description": null, "args": [], "type": { - "kind": "OBJECT", - "name": "NcitDetails", + "kind": "ENUM", + "name": "ReferenceBuild", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "ncitId", + "name": "representativeTranscript", "description": null, "args": [], "type": { @@ -17858,39 +17832,108 @@ "deprecationReason": null }, { - "name": "sources", + "name": "start", "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": "SCALAR", + "name": "Int", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "variants", - "description": "List and filter Gene variants.", + "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": [ + { + "kind": "INTERFACE", + "name": "EventSubject", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "WithRevisions", + "ofType": null + } + ], + "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", + "description": "The Feature that a Variant can belong to", + "fields": [ + { + "name": "comments", + "description": "List and filter comments.", "args": [ { - "name": "name", - "description": "Left anchored filtering for variant name and aliases.", + "name": "originatingUserId", + "description": "Limit to comments by a certain user", "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -17898,11 +17941,11 @@ "deprecationReason": null }, { - "name": "featureId", - "description": "Feature that the variants are associated with.", + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "DateSort", "ofType": null }, "defaultValue": null, @@ -17910,8 +17953,8 @@ "deprecationReason": null }, { - "name": "geneId", - "description": "Feature that the variants are associated with, limited to only Gene type features.", + "name": "mentionedUserId", + "description": "Limit to comments that mention a certain user", "type": { "kind": "SCALAR", "name": "Int", @@ -17922,11 +17965,11 @@ "deprecationReason": null }, { - "name": "factorId", - "description": "Feature that the variants are associated with, limited to only Factor type features.", + "name": "mentionedRole", + "description": "Limit to comments that mention a certain user role", "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "ENUM", + "name": "UserRole", "ofType": null }, "defaultValue": null, @@ -17934,28 +17977,20 @@ "deprecationReason": null }, { - "name": "variantTypeIds", - "description": "A list of CIViC identifiers for variant types", + "name": "mentionedEntity", + "description": "Limit to comments that mention a certain entity", "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - } + "kind": "INPUT_OBJECT", + "name": "TaggableEntityInput", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "alleleRegistryId", - "description": "Find a CIViC Variant based on its ClinGen Allele Registry ID", + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", "type": { "kind": "SCALAR", "name": "String", @@ -17966,11 +18001,11 @@ "deprecationReason": null }, { - "name": "hasNoVariantType", - "description": "Return Variants lacking an assigned VariantType", + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", "type": { "kind": "SCALAR", - "name": "Boolean", + "name": "String", "ofType": null }, "defaultValue": null, @@ -17978,11 +18013,11 @@ "deprecationReason": null }, { - "name": "sortBy", - "description": null, + "name": "first", + "description": "Returns the first _n_ elements from the list.", "type": { - "kind": "INPUT_OBJECT", - "name": "VariantMenuSort", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -17990,11 +18025,140 @@ "deprecationReason": null }, { - "name": "category", + "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": "VariantCategories", + "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, @@ -18055,58 +18219,16 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "FactorVariantConnection", + "name": "EventConnection", "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": "OBJECT", - "name": "FactorConnection", - "description": "The connection type for Factor.", - "fields": [ - { - "name": "edges", - "description": "A list of edges.", + "name": "featureAliases", + "description": null, "args": [], "type": { "kind": "NON_NULL", @@ -18118,8 +18240,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "FactorEdge", + "kind": "SCALAR", + "name": "String", "ofType": null } } @@ -18129,39 +18251,31 @@ "deprecationReason": null }, { - "name": "nodes", - "description": "A list of nodes.", + "name": "featureInstance", + "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Factor", - "ofType": null - } - } + "kind": "UNION", + "name": "FeatureInstance", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "pageCount", - "description": "Total number of pages, based on filtered count and pagesize.", + "name": "featureType", + "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", + "kind": "ENUM", + "name": "FeatureInstanceTypes", "ofType": null } }, @@ -18169,15 +18283,15 @@ "deprecationReason": null }, { - "name": "pageInfo", - "description": "Information to aid in pagination.", + "name": "flagged", + "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "PageInfo", + "kind": "SCALAR", + "name": "Boolean", "ofType": null } }, @@ -18185,42 +18299,140 @@ "deprecationReason": null }, { - "name": "totalCount", - "description": "The total number of records in this filtered collection.", - "args": [], + "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": "SCALAR", - "name": "Int", + "kind": "OBJECT", + "name": "FlagConnection", "ofType": null } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FactorEdge", - "description": "An edge in a connection.", - "fields": [ + }, { - "name": "cursor", - "description": "A cursor for use in pagination.", + "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": "String", + "name": "Int", "ofType": null } }, @@ -18228,48 +18440,45 @@ "deprecationReason": null }, { - "name": "node", - "description": "The item at the end of the edge.", + "name": "lastAcceptedRevisionEvent", + "description": null, "args": [], "type": { "kind": "OBJECT", - "name": "Factor", + "name": "Event", "ofType": null }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "FactorFields", - "description": "Fields on a Factor that curators may propose revisions to.", - "fields": null, - "inputFields": [ + }, { - "name": "description", - "description": "The Factor's description/summary text.", + "name": "lastCommentEvent", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableStringInput", - "ofType": null - } + "kind": "OBJECT", + "name": "Event", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "name", - "description": "The Factor's display name.", + "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, @@ -18279,107 +18488,72 @@ "ofType": null } }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "fullName", - "description": "The Factor's full name if applicable.", + "name": "name", + "description": null, + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableStringInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "ncitId", - "description": "NCI Thesaurus concept ID for this Factor", + "name": "ncitDetails", + "description": null, + "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableStringInput", - "ofType": null - } + "kind": "OBJECT", + "name": "NcitDetails", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "sourceIds", - "description": "Source IDs cited by the Factor's summary.", + "name": "ncitId", + "description": null, + "args": [], "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": "String", + "ofType": null }, - "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "aliases", - "description": "List of aliases or alternate names for the Factor.", + "name": "openRevisionCount", + "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 - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FactorVariant", - "description": null, - "fields": [ + }, { - "name": "comments", - "description": "List and filter comments.", + "name": "revisions", + "description": "List and filter revisions.", "args": [ { "name": "originatingUserId", - "description": "Limit to comments by a certain user", + "description": "Limit to revisions by a certain user", "type": { "kind": "SCALAR", "name": "Int", @@ -18390,11 +18564,11 @@ "deprecationReason": null }, { - "name": "sortBy", - "description": "Sort order for the comments. Defaults to most recent.", + "name": "status", + "description": "Limit to revisions with a certain status", "type": { - "kind": "INPUT_OBJECT", - "name": "DateSort", + "kind": "ENUM", + "name": "RevisionStatus", "ofType": null }, "defaultValue": null, @@ -18402,11 +18576,11 @@ "deprecationReason": null }, { - "name": "mentionedUserId", - "description": "Limit to comments that mention a certain user", + "name": "sortBy", + "description": "Sort order for the comments. Defaults to most recent.", "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "DateSort", "ofType": null }, "defaultValue": null, @@ -18414,11 +18588,11 @@ "deprecationReason": null }, { - "name": "mentionedRole", - "description": "Limit to comments that mention a certain user role", + "name": "fieldName", + "description": "Limit to revisions on a particular field.", "type": { - "kind": "ENUM", - "name": "UserRole", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null, @@ -18426,11 +18600,11 @@ "deprecationReason": null }, { - "name": "mentionedEntity", - "description": "Limit to comments that mention a certain entity", + "name": "revisionSetId", + "description": "Limit to revisions suggested as part of a single Revision Set.", "type": { - "kind": "INPUT_OBJECT", - "name": "TaggableEntityInput", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -18491,7 +18665,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CommentConnection", + "name": "RevisionConnection", "ofType": null } }, @@ -18499,67 +18673,39 @@ "deprecationReason": null }, { - "name": "creationActivity", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "CreateVariantActivity", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecated", + "name": "sources", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Source", + "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", + "name": "variants", + "description": "List and filter Gene variants.", "args": [ { - "name": "eventType", - "description": null, + "name": "name", + "description": "Left anchored filtering for variant name and aliases.", "type": { - "kind": "ENUM", - "name": "EventAction", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null, @@ -18567,8 +18713,8 @@ "deprecationReason": null }, { - "name": "originatingUserId", - "description": null, + "name": "featureId", + "description": "Feature that the variants are associated with.", "type": { "kind": "SCALAR", "name": "Int", @@ -18579,8 +18725,8 @@ "deprecationReason": null }, { - "name": "organizationId", - "description": null, + "name": "geneId", + "description": "Feature that the variants are associated with, limited to only Gene type features.", "type": { "kind": "SCALAR", "name": "Int", @@ -18591,23 +18737,11 @@ "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.", + "name": "factorId", + "description": "Feature that the variants are associated with, limited to only Factor type features.", "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -18615,23 +18749,31 @@ "deprecationReason": null }, { - "name": "before", - "description": "Returns the elements in the list that come before the specified cursor.", + "name": "variantTypeIds", + "description": "A list of CIViC identifiers for variant types", "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "first", - "description": "Returns the first _n_ elements from the list.", + "name": "alleleRegistryId", + "description": "Find a CIViC Variant based on its ClinGen Allele Registry ID", "type": { "kind": "SCALAR", - "name": "Int", + "name": "String", "ofType": null }, "defaultValue": null, @@ -18639,72 +18781,11 @@ "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": "OBJECT", - "name": "Feature", - "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", + "name": "hasNoVariantType", + "description": "Return Variants lacking an assigned VariantType", "type": { "kind": "SCALAR", - "name": "Int", + "name": "Boolean", "ofType": null }, "defaultValue": null, @@ -18712,11 +18793,11 @@ "deprecationReason": null }, { - "name": "resolvingUserId", - "description": "Limit to flags resolved by a certain user", + "name": "sortBy", + "description": null, "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "VariantMenuSort", "ofType": null }, "defaultValue": null, @@ -18724,23 +18805,11 @@ "deprecationReason": null }, { - "name": "state", - "description": "Limit to flags in a particular state", + "name": "category", + "description": null, "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", + "name": "VariantCategories", "ofType": null }, "defaultValue": null, @@ -18801,69 +18870,221 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "FlagConnection", + "name": "FactorVariantConnection", "ofType": null } }, "isDeprecated": false, "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Commentable", + "ofType": null }, { - "name": "id", - "description": 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": "OBJECT", + "name": "FactorConnection", + "description": "The connection type for Factor.", + "fields": [ + { + "name": "edges", + "description": "A list of edges.", "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": "FactorEdge", + "ofType": null + } + } } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lastAcceptedRevisionEvent", - "description": null, + "name": "nodes", + "description": "A list of nodes.", "args": [], "type": { - "kind": "OBJECT", - "name": "Event", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Factor", + "ofType": null + } + } + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "lastCommentEvent", - "description": null, + "name": "pageCount", + "description": "Total number of pages, based on filtered count and pagesize.", "args": [], "type": { - "kind": "OBJECT", - "name": "Event", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "lastSubmittedRevisionEvent", - "description": null, + "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": "FactorEdge", + "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": "Event", + "name": "Factor", "ofType": null }, "isDeprecated": false, "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "FactorFields", + "description": "Fields on a Factor that curators may propose revisions to.", + "fields": null, + "inputFields": [ + { + "name": "description", + "description": "The Factor'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": "link", - "description": null, - "args": [], + "name": "name", + "description": "The Factor's display name.", "type": { "kind": "NON_NULL", "name": null, @@ -18873,13 +19094,164 @@ "ofType": null } }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "molecularProfiles", - "description": null, + "name": "fullName", + "description": "The Factor's full name if applicable.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "NullableStringInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ncitId", + "description": "NCI Thesaurus concept ID for this Factor", + "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 Factor'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 Factor.", + "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": "OBJECT", + "name": "FactorVariant", + "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.", @@ -18934,7 +19306,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "MolecularProfileConnection", + "name": "CommentConnection", "ofType": null } }, @@ -18942,7 +19314,19 @@ "deprecationReason": null }, { - "name": "name", + "name": "creationActivity", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "CreateVariantActivity", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "deprecated", "description": null, "args": [], "type": { @@ -18950,7 +19334,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Boolean", "ofType": null } }, @@ -18958,51 +19342,39 @@ "deprecationReason": null }, { - "name": "ncitDetails", + "name": "deprecationActivity", "description": null, "args": [], "type": { "kind": "OBJECT", - "name": "NcitDetails", + "name": "DeprecateVariantActivity", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "ncitId", + "name": "deprecationReason", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", + "kind": "ENUM", + "name": "VariantDeprecationReason", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "revisions", - "description": "List and filter revisions.", + "name": "events", + "description": "List and filter events for an object", "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", + "name": "eventType", + "description": null, "type": { "kind": "ENUM", - "name": "RevisionStatus", + "name": "EventAction", "ofType": null }, "defaultValue": null, @@ -19010,11 +19382,11 @@ "deprecationReason": null }, { - "name": "sortBy", - "description": "Sort order for the comments. Defaults to most recent.", + "name": "originatingUserId", + "description": null, "type": { - "kind": "INPUT_OBJECT", - "name": "DateSort", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -19022,11 +19394,11 @@ "deprecationReason": null }, { - "name": "fieldName", - "description": "Limit to revisions on a particular field.", + "name": "organizationId", + "description": null, "type": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -19034,11 +19406,11 @@ "deprecationReason": null }, { - "name": "revisionSetId", - "description": "Limit to revisions suggested as part of a single Revision Set.", + "name": "sortBy", + "description": "Sort order for the events. Defaults to most recent.", "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "INPUT_OBJECT", + "name": "DateSort", "ofType": null }, "defaultValue": null, @@ -19099,7 +19471,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "RevisionConnection", + "name": "EventConnection", "ofType": null } }, @@ -19107,7 +19479,7 @@ "deprecationReason": null }, { - "name": "singleVariantMolecularProfile", + "name": "feature", "description": null, "args": [], "type": { @@ -19115,7 +19487,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "MolecularProfile", + "name": "Feature", "ofType": null } }, @@ -19123,7 +19495,7 @@ "deprecationReason": null }, { - "name": "singleVariantMolecularProfileId", + "name": "flagged", "description": null, "args": [], "type": { @@ -19131,7 +19503,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "Int", + "name": "Boolean", "ofType": null } }, @@ -19139,68 +19511,527 @@ "deprecationReason": null }, { - "name": "variantAliases", - "description": null, - "args": [], + "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": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } + "kind": "OBJECT", + "name": "FlagConnection", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "variantTypes", + "name": "id", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "VariantType", - "ofType": null - } - } + "kind": "SCALAR", + "name": "Int", + "ofType": null } }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ + }, { - "kind": "INTERFACE", - "name": "Commentable", - "ofType": null + "name": "lastAcceptedRevisionEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null }, { - "kind": "INTERFACE", - "name": "EventOriginObject", - "ofType": null + "name": "lastCommentEvent", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Event", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null }, { - "kind": "INTERFACE", + "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": "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, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ncitDetails", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "NcitDetails", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ncitId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "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.", + "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": "singleVariantMolecularProfile", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MolecularProfile", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "singleVariantMolecularProfileId", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantAliases", + "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": "variantTypes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "VariantType", + "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 }, @@ -19871,6 +20702,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, @@ -20096,6 +20943,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.", @@ -20247,7 +21110,7 @@ }, { "name": "variants", - "description": "List and filter Gene variants.", + "description": "List and filter variants.", "args": [ { "name": "name", @@ -20506,6 +21369,11 @@ "name": "Factor", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -20532,6 +21400,12 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "FUSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -21798,7 +22672,2345 @@ "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": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "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": "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": "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.", + "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": "featureId", + "description": "Feature that the variants are associated with.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "geneId", + "description": "Feature that the variants are associated with, limited to only Gene type features.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "factorId", + "description": "Feature that the variants are associated with, limited to only Factor type features.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantTypeIds", + "description": "A list of CIViC identifiers for variant types", + "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": "alleleRegistryId", + "description": "Find a CIViC Variant based on its ClinGen Allele Registry ID", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "hasNoVariantType", + "description": "Return Variants lacking an assigned VariantType", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "sortBy", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "VariantMenuSort", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "category", + "description": null, + "type": { + "kind": "ENUM", + "name": "VariantCategories", + "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": "VariantInterfaceConnection", + "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": "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": "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", + "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": "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": "OBJECT", + "name": "Feature", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeCoordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeEndExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fivePrimeStartExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "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": "fusion", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Fusion", + "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": "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, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "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.", + "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 } }, @@ -21806,15 +25018,15 @@ "deprecationReason": null }, { - "name": "id", + "name": "singleVariantMolecularProfile", "description": null, "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "Int", + "kind": "OBJECT", + "name": "MolecularProfile", "ofType": null } }, @@ -21822,7 +25034,7 @@ "deprecationReason": null }, { - "name": "link", + "name": "singleVariantMolecularProfileId", "description": null, "args": [], "type": { @@ -21830,7 +25042,7 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "Int", "ofType": null } }, @@ -21838,7 +25050,91 @@ "deprecationReason": null }, { - "name": "name", + "name": "threePrimeCoordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeEndExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "threePrimeStartExonCoordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantAliases", + "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": "variantTypes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "VariantType", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "viccCompliantName", "description": null, "args": [], "type": { @@ -21855,159 +25151,244 @@ } ], "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 - }, + "interfaces": [ { - "kind": "OBJECT", - "name": "FactorVariant", + "kind": "INTERFACE", + "name": "Commentable", "ofType": null }, { - "kind": "OBJECT", - "name": "FactorVariant", + "kind": "INTERFACE", + "name": "EventOriginObject", "ofType": null }, { - "kind": "OBJECT", - "name": "Feature", + "kind": "INTERFACE", + "name": "EventSubject", "ofType": null }, { - "kind": "OBJECT", - "name": "Gene", + "kind": "INTERFACE", + "name": "Flaggable", "ofType": null }, { - "kind": "OBJECT", - "name": "GeneVariant", + "kind": "INTERFACE", + "name": "MolecularProfileComponent", "ofType": null }, { - "kind": "OBJECT", - "name": "GeneVariant", + "kind": "INTERFACE", + "name": "VariantInterface", "ofType": null }, { - "kind": "OBJECT", - "name": "MolecularProfile", + "kind": "INTERFACE", + "name": "WithRevisions", "ofType": null - }, + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "FusionVariantFields", + "description": "Fields on a FusionVariant that curators may propose revisions to.", + "fields": null, + "inputFields": [ { - "kind": "OBJECT", - "name": "Variant", - "ofType": null + "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 }, { - "kind": "OBJECT", - "name": "Variant", - "ofType": 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 }, { - "kind": "OBJECT", - "name": "VariantGroup", - "ofType": 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": "ENUM", - "name": "FlaggableEntities", - "description": "Enumeration of all entities in CIViC that can be flagged.", + "kind": "INPUT_OBJECT", + "name": "FusionVariantInput", + "description": "The fields required to create a fusion variant", "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ + "inputFields": [ { - "name": "FEATURE", + "name": "fivePrimeTranscript", "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "VARIANT", + "name": "fivePrimeExonEnd", "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "EVIDENCE_ITEM", + "name": "fivePrimeOffset", "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "ASSERTION", + "name": "fivePrimeOffsetDirection", "description": null, + "type": { + "kind": "ENUM", + "name": "Direction", + "ofType": null + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "VARIANT_GROUP", + "name": "threePrimeTranscript", "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "MOLECULAR_PROFILE", + "name": "threePrimeExonStart", "description": null, + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": 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.", + "name": "threePrimeOffset", + "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "Int", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "entityType", - "description": "The type of the entity to flag.", + "name": "threePrimeOffsetDirection", + "description": null, + "type": { + "kind": "ENUM", + "name": "Direction", + "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": "ENUM", - "name": "FlaggableEntities", + "kind": "SCALAR", + "name": "Int", "ofType": null } }, @@ -22020,16 +25401,6 @@ "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": "Gene", @@ -22393,6 +25764,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, @@ -22630,6 +26017,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.", @@ -23487,6 +26890,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "coordinates", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "creationActivity", "description": null, @@ -23539,18 +26954,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", @@ -24019,40 +27422,32 @@ "deprecationReason": null }, { - "name": "primaryCoordinates", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Coordinate", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "referenceBases", + "name": "openRevisionCount", "description": null, "args": [], "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "referenceBuild", + "name": "primaryCoordinates", "description": null, "args": [], "type": { - "kind": "ENUM", - "name": "ReferenceBuild", + "kind": "OBJECT", + "name": "VariantCoordinate", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "The new Fusion variant type means Gene variants no longer have primary and secondary coordinates. Use 'coordinates' instead." }, { "name": "revisions", @@ -24179,18 +27574,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, @@ -24247,18 +27630,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, @@ -24432,6 +27803,121 @@ "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": "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": "ENUM", + "name": "ReferenceBuild", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ensemblVersion", + "description": "The Ensembl database version.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "referenceBases", + "description": "Reference bases for this variant", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "NullableStringInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantBases", + "description": "Variant bases for this variant", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "NullableStringInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "GeneVariantEdge", @@ -24582,62 +28068,14 @@ "deprecationReason": null }, { - "name": "referenceBuild", - "description": "The reference build for the genomic coordinates of this Variant.", + "name": "coordinates", + "description": "The genomic coordinates for this Variant.", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "INPUT_OBJECT", - "name": "NullableReferenceBuildTypeInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ensemblVersion", - "description": "The Ensembl database version.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableIntInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "secondaryCoordinates", - "description": "In the case of Fusions these will be the coordinates of the 3' partner, otherwise set the values to null.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CoordinateInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "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.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CoordinateInput", + "name": "GeneVariantCoordinateInput", "ofType": null } }, @@ -24660,38 +28098,6 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null - }, - { - "name": "referenceBases", - "description": "Reference bases for this variant", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableStringInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "variantBases", - "description": "Variant bases for this variant", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "NullableStringInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null } ], "interfaces": null, @@ -27154,6 +30560,18 @@ "description": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "VARIANT_COORDINATES", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "EXON_COORDINATES", + "description": null, + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -28176,6 +31594,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.", @@ -28550,6 +31984,21 @@ "name": "Feature", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -29341,6 +32790,64 @@ "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": "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.", @@ -29921,6 +33428,64 @@ "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": "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\".", @@ -32468,41 +36033,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", @@ -37042,6 +40572,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", @@ -45754,7 +49401,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", @@ -45940,6 +49587,294 @@ "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": "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", @@ -49520,25 +53455,347 @@ }, "isDeprecated": false, "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Variant", - "description": null, - "fields": [ + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Variant", + "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": "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": "OBJECT", + "name": "Feature", + "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": "comments", - "description": "List and filter comments.", + "name": "flags", + "description": "List and filter flags.", "args": [ { - "name": "originatingUserId", - "description": "Limit to comments by a certain user", + "name": "flaggingUserId", + "description": "Limit to flags added by a certain user", "type": { "kind": "SCALAR", "name": "Int", @@ -49549,20 +53806,8 @@ "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", + "name": "resolvingUserId", + "description": "Limit to flags resolved by a certain user", "type": { "kind": "SCALAR", "name": "Int", @@ -49573,11 +53818,11 @@ "deprecationReason": null }, { - "name": "mentionedRole", - "description": "Limit to comments that mention a certain user role", + "name": "state", + "description": "Limit to flags in a particular state", "type": { "kind": "ENUM", - "name": "UserRole", + "name": "FlagState", "ofType": null }, "defaultValue": null, @@ -49585,11 +53830,11 @@ "deprecationReason": null }, { - "name": "mentionedEntity", - "description": "Limit to comments that mention a certain entity", + "name": "sortBy", + "description": "Sort order for the flags. Defaults to most recent.", "type": { "kind": "INPUT_OBJECT", - "name": "TaggableEntityInput", + "name": "DateSort", "ofType": null }, "defaultValue": null, @@ -49650,7 +53895,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "CommentConnection", + "name": "FlagConnection", "ofType": null } }, @@ -49658,67 +53903,83 @@ "deprecationReason": null }, { - "name": "creationActivity", + "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": "CreateVariantActivity", + "name": "Event", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deprecated", + "name": "lastCommentEvent", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } + "kind": "OBJECT", + "name": "Event", + "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deprecationActivity", + "name": "lastSubmittedRevisionEvent", "description": null, "args": [], "type": { "kind": "OBJECT", - "name": "DeprecateVariantActivity", + "name": "Event", "ofType": null }, "isDeprecated": false, "deprecationReason": null }, { - "name": "deprecationReason", + "name": "link", "description": null, "args": [], "type": { - "kind": "ENUM", - "name": "VariantDeprecationReason", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } }, "isDeprecated": false, "deprecationReason": null }, { - "name": "events", - "description": "List and filter events for an object", + "name": "molecularProfiles", + "description": null, "args": [ { - "name": "eventType", - "description": null, + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", "type": { - "kind": "ENUM", - "name": "EventAction", + "kind": "SCALAR", + "name": "String", "ofType": null }, "defaultValue": null, @@ -49726,8 +53987,20 @@ "deprecationReason": null }, { - "name": "originatingUserId", - "description": 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", @@ -49738,8 +54011,69 @@ "deprecationReason": null }, { - "name": "organizationId", - "description": 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, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "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.", + "args": [ + { + "name": "originatingUserId", + "description": "Limit to revisions by a certain user", "type": { "kind": "SCALAR", "name": "Int", @@ -49749,9 +54083,21 @@ "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 events. Defaults to most recent.", + "description": "Sort order for the comments. Defaults to most recent.", "type": { "kind": "INPUT_OBJECT", "name": "DateSort", @@ -49761,6 +54107,30 @@ "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.", @@ -49815,7 +54185,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "EventConnection", + "name": "RevisionConnection", "ofType": null } }, @@ -49823,7 +54193,7 @@ "deprecationReason": null }, { - "name": "feature", + "name": "singleVariantMolecularProfile", "description": null, "args": [], "type": { @@ -49831,7 +54201,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "Feature", + "name": "MolecularProfile", "ofType": null } }, @@ -49839,9 +54209,192 @@ "deprecationReason": null }, { - "name": "flagged", + "name": "singleVariantMolecularProfileId", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "variantAliases", + "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": "variantTypes", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "VariantType", + "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": "VariantInterface", + "ofType": null + }, + { + "kind": "INTERFACE", + "name": "WithRevisions", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "VariantAlias", + "description": null, + "fields": [ + { + "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": null + }, + { + "kind": "ENUM", + "name": "VariantCategories", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "GENE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FACTOR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "FUSION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "VariantComponent", + "description": "Representation of a Variant's membership in a Molecular Profile.", + "fields": null, + "inputFields": [ + { + "name": "variantId", + "description": "The ID of the Variant involved in the Molecular Profile.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "not", + "description": "When set to true, this means the NOT operator will be applied to the Variant in the Molecluar Profile.", "type": { "kind": "NON_NULL", "name": null, @@ -49851,19 +54404,70 @@ "ofType": null } }, + "defaultValue": "false", + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "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": "flags", - "description": "List and filter flags.", + "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": "events", + "description": "List and filter events for an object", "args": [ { - "name": "flaggingUserId", - "description": "Limit to flags added by a certain user", + "name": "eventType", + "description": null, "type": { - "kind": "SCALAR", - "name": "Int", + "kind": "ENUM", + "name": "EventAction", "ofType": null }, "defaultValue": null, @@ -49871,8 +54475,8 @@ "deprecationReason": null }, { - "name": "resolvingUserId", - "description": "Limit to flags resolved by a certain user", + "name": "originatingUserId", + "description": null, "type": { "kind": "SCALAR", "name": "Int", @@ -49883,11 +54487,11 @@ "deprecationReason": null }, { - "name": "state", - "description": "Limit to flags in a particular state", + "name": "organizationId", + "description": null, "type": { - "kind": "ENUM", - "name": "FlagState", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -49896,7 +54500,7 @@ }, { "name": "sortBy", - "description": "Sort order for the flags. Defaults to most recent.", + "description": "Sort order for the events. Defaults to most recent.", "type": { "kind": "INPUT_OBJECT", "name": "DateSort", @@ -49960,7 +54564,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "FlagConnection", + "name": "EventConnection", "ofType": null } }, @@ -49995,18 +54599,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "lastCommentEvent", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Event", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "lastSubmittedRevisionEvent", "description": null, @@ -50036,64 +54628,15 @@ "deprecationReason": null }, { - "name": "molecularProfiles", + "name": "name", "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 - } - ], + "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "MolecularProfileConnection", + "kind": "SCALAR", + "name": "String", "ofType": null } }, @@ -50101,7 +54644,7 @@ "deprecationReason": null }, { - "name": "name", + "name": "openRevisionCount", "description": null, "args": [], "type": { @@ -50109,13 +54652,49 @@ "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "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": "revisions", "description": "List and filter revisions.", @@ -50242,81 +54821,37 @@ "deprecationReason": null }, { - "name": "singleVariantMolecularProfile", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MolecularProfile", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "singleVariantMolecularProfileId", + "name": "start", "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": "variantAliases", + "name": "stop", "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": "variantTypes", + "name": "variantBases", "description": null, "args": [], "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "VariantType", - "ofType": null - } - } - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "isDeprecated": false, "deprecationReason": null @@ -50324,36 +54859,11 @@ ], "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": "VariantInterface", - "ofType": null - }, { "kind": "INTERFACE", "name": "WithRevisions", @@ -50363,97 +54873,33 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "VariantAlias", - "description": null, - "fields": [ - { - "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": null - }, { "kind": "ENUM", - "name": "VariantCategories", + "name": "VariantCoordinateType", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { - "name": "GENE", + "name": "GENE_VARIANT_COORDINATE", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "FACTOR", + "name": "FIVE_PRIME_FUSION_COORDINATE", "description": null, "isDeprecated": false, "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "VariantComponent", - "description": "Representation of a Variant's membership in a Molecular Profile.", - "fields": null, - "inputFields": [ - { - "name": "variantId", - "description": "The ID of the Variant involved in the Molecular Profile.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null }, { - "name": "not", - "description": "When set to true, this means the NOT operator will be applied to the Variant in the Molecluar Profile.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": "false", + "name": "THREE_PRIME_FUSION_COORDINATE", + "description": null, "isDeprecated": false, "deprecationReason": null } ], - "interfaces": null, - "enumValues": null, "possibleTypes": null }, { @@ -50963,6 +55409,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.", @@ -51114,7 +55576,7 @@ }, { "name": "variants", - "description": "List and filter Gene variants.", + "description": "List and filter variants.", "args": [ { "name": "name", @@ -52230,6 +56692,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.", @@ -52476,6 +56954,11 @@ "name": "FactorVariant", "ofType": null }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "GeneVariant", @@ -53154,6 +57637,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.", @@ -53294,6 +57793,11 @@ "name": "EvidenceItem", "ofType": null }, + { + "kind": "OBJECT", + "name": "ExonCoordinate", + "ofType": null + }, { "kind": "OBJECT", "name": "Factor", @@ -53314,6 +57818,21 @@ "name": "Feature", "ofType": null }, + { + "kind": "OBJECT", + "name": "Fusion", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FusionVariant", + "ofType": null + }, { "kind": "OBJECT", "name": "Gene", @@ -53344,6 +57863,11 @@ "name": "Variant", "ofType": null }, + { + "kind": "OBJECT", + "name": "VariantCoordinate", + "ofType": null + }, { "kind": "OBJECT", "name": "VariantGroup", 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-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 @@ + + + + + + + + [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/features/features-detail/features-summary/features-summary.module.ts b/client/src/app/views/features/features-detail/features-summary/features-summary.module.ts index 30ab15f40..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 @@ -19,6 +19,8 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs' import { CvcMolecularProfilesMenuModule } from '@app/components/molecular-profiles/molecular-profiles-menu/molecular-profiles-menu.module' 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], @@ -44,6 +46,8 @@ import { FactorSummaryComponent } from '@app/components/factors/factor-summary/f CvcMolecularProfilesMenuModule, 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 061077946..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 @@ -15,18 +15,34 @@ [factor]="feature.featureInstance"> } + @case ('Fusion') { + + } } - + + + - + + + + @if (feature.featureInstance.__typename == 'Gene') { + + + + + + } 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 c9fdd6e22..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 @@ -19,6 +19,9 @@ fragment FeatureSummaryFields on Feature{ ... on Factor { ... FactorSummaryFields } + ... on Fusion { + ... FusionSummaryFields + } } # lastSubmittedRevisionEvent { # originatingUser { @@ -38,12 +41,57 @@ fragment FeatureSummaryFields on Feature{ # } } -fragment GeneSummaryFields on Gene { +fragment FusionSummaryFields on Fusion { + id + description + featureAliases + name + sources { + id + citation + link + sourceUrl + displayType + sourceType + deprecated + } + 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 @@ -53,6 +101,10 @@ fragment GeneSummaryFields on Gene { sourceType deprecated } +} + +fragment GeneSummaryFields on Gene { + ...GeneBaseFields myGeneInfoDetails } 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/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/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 c5e188542..ec747b199 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 @@ -102,6 +102,9 @@ fragment VariantMolecularProfileCardFields on VariantInterface { ... on FactorVariant { ... FactorVariantSummaryFields } + ... on FusionVariant { + ... FusionVariantSummaryFields + } variantAliases variantTypes { id 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/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-detail.query.gql b/client/src/app/views/variants/variants-detail/variants-detail.query.gql index 1ee253747..9c7329d51 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 @@ -25,9 +25,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 new file mode 100644 index 000000000..4d8c193c4 --- /dev/null +++ b/client/src/app/views/variants/variants-detail/variants-revisions/coordinate-ids-for-variant.gql @@ -0,0 +1,26 @@ +query CoordinateIdsForVariant($variantId: Int!) { + variant(id: $variantId) { + ...VariantCoordinateIds + } +} + +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 c4205ff9c..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 @@ -2,10 +2,17 @@ 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' +import { NzBadgeModule } from 'ng-zorro-antd/badge' @NgModule({ declarations: [VariantsRevisionsPage], - imports: [CommonModule, 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 ef1e9d8ce..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,3 +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 9d3a923a9..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 @@ -1,26 +1,125 @@ -import { Component, OnDestroy } from '@angular/core' +import { + ChangeDetectionStrategy, + Component, + OnDestroy, + OnInit, + WritableSignal, + signal, +} from '@angular/core' import { ActivatedRoute } from '@angular/router' -import { ModeratedEntities } from '@app/generated/civic.apollo' +import { + CoordinateIdsForVariantGQL, + ModeratedEntities, + ModeratedInput, + 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 + openCount: number +} @Component({ selector: 'cvc-variants-revisions', templateUrl: './variants-revisions.page.html', + changeDetection: ChangeDetectionStrategy.OnPush, }) -export class VariantsRevisionsPage implements OnDestroy { - variantId!: number - entityType!: ModeratedEntities +export class VariantsRevisionsPage implements OnDestroy, OnInit { + routeSub?: Subscription + coordsSub?: Subscription + + tabs: WritableSignal = signal([]) - routeSub: Subscription + 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', + openCount: 0, + 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) + }) + }) + } - constructor(private route: ActivatedRoute) { - this.routeSub = this.route.params.subscribe((params) => { - this.variantId = +params.variantId - this.entityType = ModeratedEntities['Variant'] - }) + 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) { + 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 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, + }, + }) + } + 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, + }, + }) + } + currentTabs[0].openCount = variantFieldCount + } + this.tabs.set(currentTabs) } ngOnDestroy() { - this.routeSub.unsubscribe() + this.routeSub?.unsubscribe() + this.coordsSub?.unsubscribe() } } 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 f3c24af77..f736bae39 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 @@ -71,6 +71,9 @@ fragment VariantSummaryFields on VariantInterface { ... on FactorVariant { ... FactorVariantSummaryFields } + ... on FusionVariant { + ... FusionVariantSummaryFields + } } @@ -87,27 +90,54 @@ fragment GeneVariantSummaryFields on GeneVariant { maneSelectTranscript hgvsDescriptions clinvarIds - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases + coordinates { + ...CoordinateFields + } myVariantInfo { ...MyVariantInfoFields } } +fragment FusionVariantSummaryFields on FusionVariant { + viccCompliantName + fusion { + fivePrimePartnerStatus + fivePrimeGene { + id + name + link + deprecated + flagged + } + threePrimePartnerStatus + threePrimeGene { + id + name + link + deprecated + flagged + } + } + fivePrimeCoordinates { + ...CoordinateFields + } + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields + } +} + fragment MyVariantInfoFields on MyVariantInfo { myVariantInfoId caddConsequence 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... 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_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..142422af1 --- /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 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_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 + 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_instance = Features::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_instance.present? + return { + feature: existing_feature_instance.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/mutations/create_fusion_variant.rb b/server/app/graphql/mutations/create_fusion_variant.rb new file mode 100644 index 000000000..5bf683d00 --- /dev/null +++ b/server/app/graphql/mutations/create_fusion_variant.rb @@ -0,0 +1,90 @@ +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| + next unless variant_coords.present? + + 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_end_exon_coordinates: coordinates[:five_prime_coords], + three_prime_start_exon_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_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, + 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/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/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..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 @@ -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_fusion_revision.rb b/server/app/graphql/mutations/suggest_fusion_revision.rb new file mode 100644 index 000000000..5570fe347 --- /dev/null +++ b/server/app/graphql/mutations/suggest_fusion_revision.rb @@ -0,0 +1,82 @@ +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) + + 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/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/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/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 08e4adaab..6a202b4bf 100644 --- a/server/app/graphql/resolvers/top_level_genes.rb +++ b/server/app/graphql/resolvers/top_level_genes.rb @@ -8,10 +8,11 @@ class Resolvers::TopLevelGenes < GraphQL::Schema::Resolver description 'List and filter genes.' scope do - Features::Gene - .eager_load(:feature) - .joins(feature: {variants: [molecular_profiles: [:evidence_items]]}) - .order('features.name ASC').where("evidence_items.status != 'rejected'").distinct + 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| diff --git a/server/app/graphql/resolvers/variants.rb b/server/app/graphql/resolvers/variants.rb index 5dee49937..c13a101ce 100644 --- a/server/app/graphql/resolvers/variants.rb +++ b/server/app/graphql/resolvers/variants.rb @@ -2,7 +2,7 @@ class Resolvers::Variants < Resolvers::Shared::Variants type Types::Interfaces::VariantInterface.connection_type, null: false - description 'List and filter Gene variants.' + description 'List and filter variants.' scope { object.variants.where(deprecated: false).order('variants.name ASC').distinct } end 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/exon_coordinate_type.rb b/server/app/graphql/types/entities/exon_coordinate_type.rb new file mode 100644 index 000000000..9d0cd7df7 --- /dev/null +++ b/server/app/graphql/types/entities/exon_coordinate_type.rb @@ -0,0 +1,20 @@ +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 + 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_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::ExonCoordinateTypeType, null: false + end +end 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/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/entities/molecular_profile_type.rb b/server/app/graphql/types/entities/molecular_profile_type.rb index 8203a827a..ba67468c8 100644 --- a/server/app/graphql/types/entities/molecular_profile_type.rb +++ b/server/app/graphql/types/entities/molecular_profile_type.rb @@ -52,7 +52,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/variant_coordinate_type.rb b/server/app/graphql/types/entities/variant_coordinate_type.rb new file mode 100644 index 000000000..4eff1a195 --- /dev/null +++ b/server/app/graphql/types/entities/variant_coordinate_type.rb @@ -0,0 +1,17 @@ +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 + 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 + 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/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 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/graphql/types/fusion/direction.rb b/server/app/graphql/types/fusion/direction.rb new file mode 100644 index 000000000..bcd2772a4 --- /dev/null +++ b/server/app/graphql/types/fusion/direction.rb @@ -0,0 +1,6 @@ +module Types::Fusion + class Direction < Types::BaseEnum + value 'POSITIVE', value: 'positive' + value 'NEGATIVE', value: 'negative' + 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..026f59e73 --- /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..af4e7d6ab --- /dev/null +++ b/server/app/graphql/types/fusion/fusion_partner_status.rb @@ -0,0 +1,7 @@ +module Types::Fusion + class FusionPartnerStatus < Types::BaseEnum + value 'KNOWN', value: 'known' + value 'UNKNOWN', value: 'unknown' + value 'MULTIPLE', value: 'multiple' + 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..1aaaf0a2f --- /dev/null +++ b/server/app/graphql/types/fusion/fusion_variant_input_type.rb @@ -0,0 +1,59 @@ +module Types::Fusion + class FusionVariantInputType < Types::BaseInputObject + description 'The fields required to create a fusion variant' + + 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::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::Direction, 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 = if five_prime_transcript.present? + ExonCoordinate.new( + coordinate_type: 'Five Prime End Exon Coordinate', + reference_build: reference_build, + ensembl_version: ensembl_version, + representative_transcript: five_prime_transcript&.strip, + exon: 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? + ExonCoordinate.new( + coordinate_type: 'Three Prime Start Exon Coordinate', + reference_build: reference_build, + ensembl_version: ensembl_version, + representative_transcript: three_prime_transcript&.strip, + exon: three_prime_exon_start, + exon_offset: three_prime_offset, + exon_offset_direction: three_prime_offset_direction, + record_state: 'exons_provided' + ) + else + nil + end + + + { + five_prime_coords: five_prime_coords, + three_prime_coords: three_prime_coords + } + + 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 0d5d10fb8..ca4fa802e 100644 --- a/server/app/graphql/types/interfaces/event_subject.rb +++ b/server/app/graphql/types/interfaces/event_subject.rb @@ -19,6 +19,12 @@ def resolve_type(object, context) Types::Variants::GeneVariantType when Variants::FactorVariant Types::Variants::FactorVariantType + when Variants::FusionVariant + Types::Variants::FusionVariantType + when VariantCoordinate + Types::Entities::VariantCoordinateType + when ExonCoordinate + Types::Entities::ExonCoordinateType when EvidenceItem Types::Entities::EvidenceItemType when Assertion 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/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/mutation_type.rb b/server/app/graphql/types/mutation_type.rb index 94e12c33a..49bcb8af5 100644 --- a/server/app/graphql/types/mutation_type.rb +++ b/server/app/graphql/types/mutation_type.rb @@ -7,8 +7,10 @@ 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_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 @@ -58,5 +60,7 @@ 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 + field :create_fusion_variant, mutation: Mutations::CreateFusionVariant end end diff --git a/server/app/graphql/types/query_type.rb b/server/app/graphql/types/query_type.rb index 164c50047..23db79038 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 :factors, resolver: Resolvers::TopLevelFactors field :variants, resolver: Resolvers::TopLevelVariants, max_page_size: 300 field :variant_groups, resolver: Resolvers::TopLevelVariantGroups 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/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/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/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..2cb7fb100 --- /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: false, + description: 'The reference build for the genomic coordinates of this Variant.' + 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' + 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/revisions/moderated_entities_type.rb b/server/app/graphql/types/revisions/moderated_entities_type.rb index 353178a0c..1f1cb9006 100644 --- a/server/app/graphql/types/revisions/moderated_entities_type.rb +++ b/server/app/graphql/types/revisions/moderated_entities_type.rb @@ -7,5 +7,7 @@ class ModeratedEntitiesType < Types::BaseEnum value 'ASSERTION', value: 'Assertion' 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/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/variant_coordinate_type_type.rb b/server/app/graphql/types/variant_coordinate_type_type.rb new file mode 100644 index 000000000..f41a9f595 --- /dev/null +++ b/server/app/graphql/types/variant_coordinate_type_type.rb @@ -0,0 +1,7 @@ +module Types + class VariantCoordinateTypeType < Types::BaseEnum + Constants::VALID_VARIANT_COORDINATE_TYPES.each do |ct| + value ct.upcase.gsub(" ", "_"), value: ct + 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 new file mode 100644 index 000000000..4540027e5 --- /dev/null +++ b/server/app/graphql/types/variants/fusion_variant_type.rb @@ -0,0 +1,54 @@ +module Types::Variants + class FusionVariantType < Types::Entities::VariantType + + 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 :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) + end + + 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 + + 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 +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..44fcb99c6 100644 --- a/server/app/graphql/types/variants/gene_variant_type.rb +++ b/server/app/graphql/types/variants/gene_variant_type.rb @@ -1,12 +1,9 @@ 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::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 @@ -14,47 +11,12 @@ 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 + def coordinates + Loaders::AssociationLoader.for(Variants::GeneVariant, :coordinates).load(object) end - def reference_bases - if (object.reference_bases.blank?) - return nil - else - return object.reference_bases - end + def primary_coordinates + coordinates end def clinvar_ids @@ -76,5 +38,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/jobs/populate_fusion_coordinates.rb b/server/app/jobs/populate_fusion_coordinates.rb new file mode 100644 index 000000000..43042d62a --- /dev/null +++ b/server/app/jobs/populate_fusion_coordinates.rb @@ -0,0 +1,124 @@ +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 + rescue StandardError => e + flag_variant(variant, e.message) + raise StandardError.new(e.message) + end + + def populate_coords(coords, secondary_coordinates) + if coords.present? && coords.representative_transcript.present? + (exon, highest_exon) = get_exon_for_transcript(coords.representative_transcript, coords.exon) + populate_exon_coordinates(coords, exon) + + 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) + 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 + + 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) + 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 + 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) + else + 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 + + 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/lib/scrapers/ensembl_api_helpers.rb b/server/app/lib/scrapers/ensembl_api_helpers.rb new file mode 100644 index 000000000..74da6a728 --- /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 doesn't 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/actions/create_fusion_feature.rb b/server/app/models/actions/create_fusion_feature.rb new file mode 100644 index 000000000..5ee6e8c7e --- /dev/null +++ b/server/app/models/actions/create_fusion_feature.rb @@ -0,0 +1,96 @@ +module Actions + class CreateFusionFeature + include Actions::Transactional + + 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, + ) + 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, + ) + @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 + end + + def construct_fusion_partner_name(gene_id, partner_status) + if partner_status == 'known' + Features::Gene.find(gene_id).name + elsif partner_status == 'unknown' + '?' + elsif partner_status == 'multiple' + 'v' + end + end + + def create_representative_variant + stubbed_variant = Variants::FusionVariant.new( + feature: feature, + name: Constants::REPRESENTATIVE_FUSION_VARIANT_NAME + ) + + vicc_compliant_name = stubbed_variant.generate_vicc_name + + cmd = Actions::CreateVariant.new( + variant_name: stubbed_variant.name, + feature_id: feature.id, + originating_user: originating_user, + organization_id: organization_id, + additional_attrs: { vicc_compliant_name: vicc_compliant_name } + ) + cmd.perform + + variant = cmd.variant + stub_remaining_coordinates(variant) + + if cmd.errors.any? + errors.each do |err| + errors << err + end + end + + 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! + + event = Event.new( + action: 'feature created', + originating_user: originating_user, + subject: feature, + organization_id: organization_id, + originating_object: feature + ) + + if create_variant + create_representative_variant + end + 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/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/create_fusion_feature.rb b/server/app/models/activities/create_fusion_feature.rb new file mode 100644 index 000000000..1aa497f5b --- /dev/null +++ b/server/app/models/activities/create_fusion_feature.rb @@ -0,0 +1,52 @@ +module Activities + class CreateFusionFeature < Base + 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:, 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 + 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, + create_variant: create_variant + ) + + 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/activities/create_fusion_variant.rb b/server/app/models/activities/create_fusion_variant.rb new file mode 100644 index 000000000..36ce8a929 --- /dev/null +++ b/server/app/models/activities/create_fusion_variant.rb @@ -0,0 +1,68 @@ +module Activities + class CreateFusionVariant < Base + 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_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_end_exon_coords = five_prime_end_exon_coords + @three_prime_start_exon_coords = three_prime_start_exon_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_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 + + def after_actions + activity.subject = variant + activity.save! + 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 e009e176a..a15bc9c0a 100644 --- a/server/app/models/activities/suggest_revision_set.rb +++ b/server/app/models/activities/suggest_revision_set.rb @@ -1,20 +1,16 @@ module Activities + 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, @@ -25,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/concerns/is_feature_instance.rb b/server/app/models/concerns/is_feature_instance.rb index e2dd03de2..2f66f1dbe 100644 --- a/server/app/models/concerns/is_feature_instance.rb +++ b/server/app/models/concerns/is_feature_instance.rb @@ -2,10 +2,15 @@ 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 + #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/constants.rb b/server/app/models/constants.rb index 7995f7c66..7ee1161b2 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] @@ -111,13 +112,30 @@ module Constants 'Assertion' => 'assertions', 'EvidenceItem' => 'evidence', 'Feature' => 'features', + 'Gene' => 'features', + 'Fusion' => 'features', 'Variant' => 'variants', 'Variants::GeneVariant' => 'variants', 'Variants::FactorVariant' => 'variants', + 'Variants::FusionVariant' => 'variants', 'VariantGroup' => 'variant-groups', 'Source' => 'sources', 'MolecularProfile' => 'molecular-profiles' } + 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 + + # 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/exon_coordinate.rb b/server/app/models/exon_coordinate.rb new file mode 100644 index 000000000..9a5ac7dcc --- /dev/null +++ b/server/app/models/exon_coordinate.rb @@ -0,0 +1,88 @@ +class ExonCoordinate < ApplicationRecord + include Moderated + include Subscribable + + 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" + } + + 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 + + enum exon_offset_direction: { + positive: 'positive', + negative: 'negative' + } + + enum strand: { + positive: 'positive', + 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 name + "#{variant.name} Coordinates" + end + + def link + variant.link + end + + 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 + + def editable_fields + [ + :reference_build, + :ensembl_version, + :representative_transcript, + :exon, + :exon_offset, + :exon_offset_direction, + ] + end + + def on_revision_accepted + PopulateFusionCoordinates.perform_later(self.variant) + end +end diff --git a/server/app/models/feature.rb b/server/app/models/feature.rb index 30859da03..825c977ea 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 @@ -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 aliases = feature_aliases.map(&:name) @@ -41,6 +41,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 new file mode 100644 index 000000000..891135912 --- /dev/null +++ b/server/app/models/features/fusion.rb @@ -0,0 +1,69 @@ +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 + + 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 + + #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 + 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.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 + + def display_name + name + end + + def editable_fields + [ + :description, + :source_ids, + :feature_alias_ids + ] + end + + def compatible_variant_type + Variants::FusionVariant + end + end +end 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/evidence_item_input_adaptor.rb b/server/app/models/input_adaptors/evidence_item_input_adaptor.rb index ffc93ada1..2d6e605c2 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) @@ -57,7 +59,7 @@ def self.check_input_for_errors(evidence_input_object: , revised_eid: nil) end return errors - end + end def self.evidence_fields(input) { 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 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/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/my_gene_info.rb b/server/app/models/my_gene_info.rb index 4858f4fe5..cdc1b4541 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) 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 a4cc30892..fb4ba9834 100644 --- a/server/app/models/variant.rb +++ b/server/app/models/variant.rb @@ -6,6 +6,8 @@ class Variant < ApplicationRecord include WithTimepointCounts 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 @@ -51,11 +53,16 @@ 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 scope :search_import, -> { includes(:variant_aliases, :feature) } + def self.valid_variant_coordinate_types + [] + end + def search_data { name: "#{feature.name} - #{name}", @@ -72,6 +79,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]) @@ -104,6 +116,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, @@ -143,8 +159,6 @@ def editable_fields def shared_editable_fields [ - :feature_id, - :name, :variant_type_ids, :variant_alias_ids, ] @@ -155,14 +169,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 @@ -174,7 +181,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 new file mode 100644 index 000000000..99f0d70c3 --- /dev/null +++ b/server/app/models/variant_coordinate.rb @@ -0,0 +1,65 @@ +class VariantCoordinate < ApplicationRecord + include Moderated + include Subscribable + + belongs_to :variant, touch: true + + 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 /" + }, 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 :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, + message: "%{value} is not a valid coordinate type" + } + + validates_with VariantCoordinateValidator + + def self.generate_stub(variant, coordinate_type) + VariantCoordinate.create!( + variant: variant, + record_state: 'stub', + coordinate_type: coordinate_type + ) + end + + def name + "#{variant.name} Coordinates" + end + + def link + variant.link + end + + 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/factor_variant.rb b/server/app/models/variants/factor_variant.rb index 7b946a8ac..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 @@ -9,5 +11,19 @@ def unique_editable_fields 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") + end + end end end diff --git a/server/app/models/variants/fusion_variant.rb b/server/app/models/variants/fusion_variant.rb new file mode 100644 index 000000000..aa9a90bd3 --- /dev/null +++ b/server/app/models/variants/fusion_variant.rb @@ -0,0 +1,183 @@ +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_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' + + 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' + + after_create_commit :populate_coordinates + + 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] + + def unique_editable_fields + [] + end + + def required_fields + [ + :vicc_compliant_name + ] + end + + def mp_name + if name == Constants::REPRESENTATIVE_FUSION_VARIANT_NAME + "#{feature.name} #{Constants::REPRESENTATIVE_FUSION_VARIANT_NAME}" + 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 == 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)}" + end + end + + def generate_name + if name == Constants::REPRESENTATIVE_FUSION_VARIANT_NAME + name + else + [ + construct_five_prime_name(name_type: :civic), + construct_three_prime_name(name_type: :civic) + ].join("::") + 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( + name_type: name_type, + partner_status: fusion.five_prime_partner_status, + gene: fusion.five_prime_gene, + exon_coords: five_prime_end_exon_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, + exon_coords: three_prime_start_exon_coordinates, + ) + end + + def construct_partner_name(name_type:, partner_status:, gene:, exon_coords:) + if partner_status == 'known' + case name_type + when :representative + "#{gene.name}(entrez:#{gene.entrez_id})" + when :civic + "e.#{exon_coords.exon}#{exon_coords.formatted_offset}#{exon_coords.exon_offset}" + when :vicc + "#{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 + elsif partner_status == 'unknown' + '?' + elsif partner_status == 'multiple' + 'v' + end + 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_variant_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 + + def populate_coordinates + unless self.name == Constants::REPRESENTATIVE_FUSION_VARIANT_NAME + PopulateFusionCoordinates.perform_later(self) + end + end + + def on_revision_accepted + PopulateFusionCoordinates.perform_later(self) + end + end +end diff --git a/server/app/models/variants/gene_variant.rb b/server/app/models/variants/gene_variant.rb index 8d9d33f04..e0a9a756b 100644 --- a/server/app/models/variants/gene_variant.rb +++ b/server/app/models/variants/gene_variant.rb @@ -1,43 +1,55 @@ module Variants class GeneVariant < Variant + #TODO remove? belongs_to :gene, class_name: 'Features::Gene', optional: true - #not used in V2, delete when Fusions added? - #belongs_to :secondary_gene, class_name: 'Features::Gene', optional: true + has_one :coordinates, + ->() { where(coordinate_type: 'Gene Variant Coordinate') }, + foreign_key: 'variant_id', + class_name: 'VariantCoordinate' - enum reference_build: [:GRCh38, :GRCh37, :NCBI36] + def self.valid_variant_coordinate_types + [ + 'Gene Variant Coordinate' + ] + end - validates :reference_bases, format: { - with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, - message: "only allows A,C,T,G or /" - }, allow_nil: true + #TODO not used in V2, delete when Fusions added? + #belongs_to :secondary_gene, class_name: 'Features::Gene', optional: true - validates :variant_bases, format: { - with: /\A[ACTG]+\z|\A[ACTG]+\/[ACTG]+\z/, - message: "only allows A,C,T,G or /" - }, allow_nil: true + #TODO remove after backfill/when columns removed + enum reference_build: [:GRCh38, :GRCh37, :NCBI36] def unique_editable_fields [ + :feature_id, + :name, :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 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") + 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/exon_coordinate_validator.rb b/server/app/validators/exon_coordinate_validator.rb new file mode 100644 index 000000000..1b2b177d5 --- /dev/null +++ b/server/app/validators/exon_coordinate_validator.rb @@ -0,0 +1,44 @@ +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 +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 new file mode 100644 index 000000000..520f2944c --- /dev/null +++ b/server/app/validators/variant_coordinate_validator.rb @@ -0,0 +1,44 @@ +class VariantCoordinateValidator < ActiveModel::Validator + include ValidationHelpers + + def validate(record) + if record.record_state == 'stub' + validate_stub(record) + else + 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 + end + + private + def validate_stub(record) + validate_present(record, :coordinate_type) + end + + def validate_gene_variant_coordinates(record) + require_genomic_position_fields(record) + end + + def validate_fusion_variant_coordinates(record) + require_genomic_position_fields(record) + end + + 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/config/query_examples/evidence_for_variant.yml b/server/config/query_examples/evidence_for_variant.yml index e928b3647..b4002fef9 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 + coordinates { + start + stop + chromosome + representativeTranscript + } } molecularProfiles { pageInfo { 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..76246e0d4 --- /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: 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: 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 + + add_foreign_key :variant_coordinates, :variants + end +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 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/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/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 5a648770f..5585b6599 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -925,6 +925,7 @@ 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.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" 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..fb57dbb26 --- /dev/null +++ b/server/misc_scripts/fusions/backfill_gene_variant_coords.rb @@ -0,0 +1,22 @@ +# run order: 1 +# need to turn off VariantCoordinatorValidator validation first + +Variants::GeneVariant.find_each do |variant| + #maybe_fusion = [ + #variant.start2.present?, + #variant.variant_types.where(name: 'transcript_fusion').exists? + #].all? + + coord = VariantCoordinate.where( + 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 + ).first_or_create +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 new file mode 100644 index 000000000..81ab5c80e --- /dev/null +++ b/server/misc_scripts/fusions/port_fusion_coords.rb @@ -0,0 +1,482 @@ +#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.where( + 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, + variant_id: variant.id + #TODO set curation status + ).first_or_create! + + rel = "#{relation_name}=" + variant.send(rel, coord) +rescue => e + binding.irb +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 +#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') +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 + +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 doesn't 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 + +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) + 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 + 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, + 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 + #TODO: set curation status + ).first_or_create! + end + elsif three_prime_partner_status == 'known' + three_prime_coordinate = variant.variant_coordinates.first + 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 + +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") + 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 + variant = Variant.find(variant.id) + update_variant_coordinates(variant, five_prime_partner_status, three_prime_partner_status) + 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 + + 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 + + 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_stop_exon) + end + if three_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', three_prime_stop_exon) + end + variant.vicc_compliant_name = variant.generate_vicc_name + + begin + variant.save! + rescue StandardError => e + binding.irb + end + + 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