diff --git a/client/src/app/forms/config/assertion-revise/assertion-revise.query.gql b/client/src/app/forms/config/assertion-revise/assertion-revise.query.gql new file mode 100644 index 000000000..4afb4bcab --- /dev/null +++ b/client/src/app/forms/config/assertion-revise/assertion-revise.query.gql @@ -0,0 +1,80 @@ +query AssertionRevisableFields($assertionId: Int!) { + assertion(id: $assertionId) { + ...RevisableAssertionFields + } +} + +fragment RevisableAssertionFields on Assertion { + id + summary + description + molecularProfile { + id + name + link + } + variantOrigin + significance + disease { + id + doid + name + displayName + link + } + therapies { + id + ncitId + name + link + } + therapyInteractionType + assertionDirection + assertionType + phenotypes { + id + hpoId + name + } + ampLevel + acmgCodes { + id + name + code + description + tooltip + } + clingenCodes { + id + code + description + name + tooltip + exclusive + } + nccnGuideline { + id + name + } + nccnGuidelineVersion + regulatoryApproval + fdaCompanionTest + evidenceItems { + id + name + link + status + } +} + +mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { + suggestAssertionRevision(input: $input) { + clientMutationId + assertion { + id + } + results { + newlyCreated + } + } +} diff --git a/client/src/app/forms/config/assertion-submit/assertion-submit.query.gql b/client/src/app/forms/config/assertion-submit/assertion-submit.query.gql new file mode 100644 index 000000000..2af11438d --- /dev/null +++ b/client/src/app/forms/config/assertion-submit/assertion-submit.query.gql @@ -0,0 +1,8 @@ +mutation SubmitAssertion($input: SubmitAssertionInput!) { + submitAssertion(input: $input) { + clientMutationId + assertion { + id + } + } +} diff --git a/client/src/app/forms/config/evidence-revise/evidence-revise.form.ts b/client/src/app/forms/config/evidence-revise/evidence-revise.form.ts index 0ef776fe8..9aa3e19d5 100644 --- a/client/src/app/forms/config/evidence-revise/evidence-revise.form.ts +++ b/client/src/app/forms/config/evidence-revise/evidence-revise.form.ts @@ -1,30 +1,29 @@ import { - AfterViewInit, - ChangeDetectionStrategy, - ChangeDetectorRef, - Component, - Input, - OnDestroy, - OnInit + AfterViewInit, + ChangeDetectionStrategy, + ChangeDetectorRef, + Component, + Input, + OnDestroy, + OnInit, } from '@angular/core' import { UntypedFormGroup } from '@angular/forms' import { NetworkErrorsService } from '@app/core/services/network-errors.service' import { - MutationState, - MutatorWithState + MutationState, + MutatorWithState, } from '@app/core/utilities/mutation-state-wrapper' import { EvidenceReviseModel } from '@app/forms/models/evidence-revise.model' import { EvidenceState } from '@app/forms/states/evidence.state' import { - evidenceFormModelToReviseInput, - evidenceToModelFields + evidenceFormModelToReviseInput, + evidenceToModelFields, } from '@app/forms/utilities/evidence-to-model-fields' import { - EvidenceItemRevisableFields2GQL, - SuggestEvidenceItemRevision2GQL, - SuggestEvidenceItemRevisionGQL, - SuggestEvidenceItemRevisionMutation, - SuggestEvidenceItemRevisionMutationVariables + EvidenceItemRevisableFieldsGQL, + SuggestEvidenceItemRevisionGQL, + SuggestEvidenceItemRevisionMutation, + SuggestEvidenceItemRevisionMutationVariables, } from '@app/generated/civic.apollo' import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core' @@ -55,8 +54,8 @@ export class CvcEvidenceReviseForm implements OnInit, AfterViewInit, OnDestroy { mutationState?: MutationState constructor( - private revisableFieldsGQL: EvidenceItemRevisableFields2GQL, - private submitRevisionsGQL: SuggestEvidenceItemRevision2GQL, + private revisableFieldsGQL: EvidenceItemRevisableFieldsGQL, + private submitRevisionsGQL: SuggestEvidenceItemRevisionGQL, private networkErrorService: NetworkErrorsService, private cdr: ChangeDetectorRef ) { diff --git a/client/src/app/forms/config/evidence-revise/evidence-revise.query.gql b/client/src/app/forms/config/evidence-revise/evidence-revise.query.gql index 68e9c5df8..d9a379944 100644 --- a/client/src/app/forms/config/evidence-revise/evidence-revise.query.gql +++ b/client/src/app/forms/config/evidence-revise/evidence-revise.query.gql @@ -1,11 +1,10 @@ - -query EvidenceItemRevisableFields2($evidenceId: Int!) { +query EvidenceItemRevisableFields($evidenceId: Int!) { evidenceItem(id: $evidenceId) { - ...RevisableEvidenceFields2 + ...RevisableEvidenceFields } } -fragment RevisableEvidenceFields2 on EvidenceItem { +fragment RevisableEvidenceFields on EvidenceItem { id molecularProfile { ...MolecularProfileSelectTypeaheadFields @@ -32,7 +31,7 @@ fragment RevisableEvidenceFields2 on EvidenceItem { } } -mutation SuggestEvidenceItemRevision2( +mutation SuggestEvidenceItemRevision( $input: SuggestEvidenceItemRevisionInput! ) { suggestEvidenceItemRevision(input: $input) { diff --git a/client/src/app/forms/config/evidence-submit/evidence-submit.form.ts b/client/src/app/forms/config/evidence-submit/evidence-submit.form.ts index 484acb291..0c0f3d4d2 100644 --- a/client/src/app/forms/config/evidence-submit/evidence-submit.form.ts +++ b/client/src/app/forms/config/evidence-submit/evidence-submit.form.ts @@ -14,9 +14,12 @@ import { } from '@app/core/utilities/mutation-state-wrapper' import { EvidenceSubmitModel } from '@app/forms/models/evidence-submit.model' import { EvidenceState } from '@app/forms/states/evidence.state' -import { evidenceToModelFields, evidenceFormModelToInput, } from '@app/forms/utilities/evidence-to-model-fields' import { - EvidenceItemRevisableFields2GQL, + evidenceToModelFields, + evidenceFormModelToInput, +} from '@app/forms/utilities/evidence-to-model-fields' +import { + EvidenceItemRevisableFieldsGQL, ExistingEvidenceCountGQL, ExistingEvidenceCountQuery, ExistingEvidenceCountQueryVariables, @@ -61,11 +64,14 @@ export class CvcEvidenceSubmitForm implements OnDestroy, AfterViewInit, OnInit { existingEvidenceId?: number routeSub: Subscription - countQueryRef?: QueryRef + countQueryRef?: QueryRef< + ExistingEvidenceCountQuery, + ExistingEvidenceCountQueryVariables + > existingEvidenceCount$?: Observable constructor( - private revisableFieldsGQL: EvidenceItemRevisableFields2GQL, + private revisableFieldsGQL: EvidenceItemRevisableFieldsGQL, private submitEvidenceGQL: SubmitEvidenceItemGQL, private existingEvidenceGQL: ExistingEvidenceCountGQL, private cdr: ChangeDetectorRef, @@ -82,11 +88,11 @@ export class CvcEvidenceSubmitForm implements OnDestroy, AfterViewInit, OnInit { this.existingEvidenceId = +params.existingEvidenceId let direction = this.getFieldConfig('direction-select') - if(direction) { + if (direction) { direction.props!.formMode = 'clone' } let significance = this.getFieldConfig('significance-select') - if(significance) { + if (significance) { significance.props!.formMode = 'clone' } } else { @@ -96,23 +102,25 @@ export class CvcEvidenceSubmitForm implements OnDestroy, AfterViewInit, OnInit { } getFieldConfig(fieldKey: string) { - return this.fields?.[0] - .fieldGroup?.find(f => f.key === 'fields') - ?.fieldGroup?.find(f => f.type === fieldKey) + return this.fields?.[0].fieldGroup + ?.find((f) => f.key === 'fields') + ?.fieldGroup?.find((f) => f.type === fieldKey) } - ngOnInit(): void { - this.countQueryRef = this.existingEvidenceGQL.watch({molecularProfileId: 0, sourceId: 0}) + this.countQueryRef = this.existingEvidenceGQL.watch({ + molecularProfileId: 0, + sourceId: 0, + }) this.existingEvidenceCount$ = this.countQueryRef?.valueChanges.pipe( - map(c => c.data?.evidenceItems?.totalCount), - filter(isNonNulled), - untilDestroyed(this) + map((c) => c.data?.evidenceItems?.totalCount), + filter(isNonNulled), + untilDestroyed(this) ) } ngAfterViewInit(): void { - if(this.existingEvidenceId) { + if (this.existingEvidenceId) { this.revisableFieldsGQL .fetch({ evidenceId: this.existingEvidenceId }) .pipe(untilDestroyed(this)) @@ -157,16 +165,19 @@ export class CvcEvidenceSubmitForm implements OnDestroy, AfterViewInit, OnInit { onModelChange(newModel: EvidenceSubmitModel) { if (newModel.fields.sourceId && newModel.fields.molecularProfileId) { - if (newModel.fields.sourceId != this.selectedSourceId || newModel.fields.molecularProfileId != this.selectedMpId) { + if ( + newModel.fields.sourceId != this.selectedSourceId || + newModel.fields.molecularProfileId != this.selectedMpId + ) { this.selectedSourceId = newModel.fields.sourceId this.selectedMpId = newModel.fields.molecularProfileId this.countQueryRef?.refetch({ molecularProfileId: newModel.fields.molecularProfileId, - sourceId: newModel.fields.sourceId + sourceId: newModel.fields.sourceId, }) } } else { - this.countQueryRef?.refetch({molecularProfileId: 0, sourceId: 0}) + this.countQueryRef?.refetch({ molecularProfileId: 0, sourceId: 0 }) } } diff --git a/client/src/app/forms/config/evidence-submit/evidence-submit.query.gql b/client/src/app/forms/config/evidence-submit/evidence-submit.query.gql new file mode 100644 index 000000000..b4b1dde21 --- /dev/null +++ b/client/src/app/forms/config/evidence-submit/evidence-submit.query.gql @@ -0,0 +1,73 @@ +query EvidenceFieldsFromSourceSuggestion( + $sourceId: Int + $molecularProfileId: Int + $diseaseId: Int +) { + sourceSuggestionValues( + molecularProfileId: $molecularProfileId + diseaseId: $diseaseId + sourceId: $sourceId + ) { + molecularProfile { + id + name + link + } + disease { + id + name + link + } + source { + id + sourceType + citationId + citation + link + } + } +} + +query EvidenceSubmittableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...SubmittableEvidenceFields + } +} + +fragment SubmittableEvidenceFields on EvidenceItem { + id + description + variantOrigin + evidenceType + significance + evidenceLevel + evidenceDirection + evidenceRating + therapyInteractionType + source { + id + citation + sourceType + } + phenotypes { + id + name + } + therapies { + id + name + } + disease { + id + name + } +} + +mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { + submitEvidence(input: $input) { + clientMutationId + evidenceItem { + id + } + } +} diff --git a/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.form.ts b/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.form.ts index 9add7ad59..c42a7b813 100644 --- a/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.form.ts +++ b/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.form.ts @@ -19,12 +19,11 @@ import { variantGroupToModelFields, } from '@app/forms/utilities/variant-group-to-model-fields' import { - SuggestEvidenceItemRevision2GQL, - SuggestVariantGroupRevision2GQL, + SuggestEvidenceItemRevisionGQL, SuggestVariantGroupRevisionGQL, SuggestVariantGroupRevisionMutation, SuggestVariantGroupRevisionMutationVariables, - VariantGroupRevisableFields2GQL, + VariantGroupRevisableFieldsGQL, } from '@app/generated/civic.apollo' import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core' @@ -57,8 +56,8 @@ export class CvcVariantgroupReviseForm url?: string constructor( - private revisableFieldsGQL: VariantGroupRevisableFields2GQL, - private submitRevisionsGQL: SuggestVariantGroupRevision2GQL, + private revisableFieldsGQL: VariantGroupRevisableFieldsGQL, + private submitRevisionsGQL: SuggestVariantGroupRevisionGQL, private networkErrorService: NetworkErrorsService, private cdr: ChangeDetectorRef ) { diff --git a/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.query.gql b/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.query.gql index dbdd979a1..71e2cb175 100644 --- a/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.query.gql +++ b/client/src/app/forms/config/variantgroup-revise/variantgroup-revise.query.gql @@ -1,10 +1,10 @@ -query VariantGroupRevisableFields2($variantGroupId: Int!) { +query VariantGroupRevisableFields($variantGroupId: Int!) { variantGroup(id: $variantGroupId) { - ...VariantGroupRevisableFields2 + ...VariantGroupRevisableFields } } -fragment VariantGroupRevisableFields2 on VariantGroup { +fragment VariantGroupRevisableFields on VariantGroup { id name description @@ -31,7 +31,7 @@ fragment VariantGroupRevisableFields2 on VariantGroup { } } -mutation SuggestVariantGroupRevision2( +mutation SuggestVariantGroupRevision( $input: SuggestVariantGroupRevisionInput! ) { suggestVariantGroupRevision(input: $input) { diff --git a/client/src/app/forms/config/variantgroup-submit/variantgroup-submit.query.gql b/client/src/app/forms/config/variantgroup-submit/variantgroup-submit.query.gql index dbdd979a1..df6c8c4e1 100644 --- a/client/src/app/forms/config/variantgroup-submit/variantgroup-submit.query.gql +++ b/client/src/app/forms/config/variantgroup-submit/variantgroup-submit.query.gql @@ -1,48 +1,38 @@ -query VariantGroupRevisableFields2($variantGroupId: Int!) { +query VariantGroupSubmittableFields($variantGroupId: Int!) { variantGroup(id: $variantGroupId) { - ...VariantGroupRevisableFields2 + ...SubmittableVariantGroupFields } } -fragment VariantGroupRevisableFields2 on VariantGroup { +fragment SubmittableVariantGroupFields on VariantGroup { id name description - variants { - totalCount - edges { - cursor - node { - id - name - link - } - } + variants(first: 50) { nodes { id name link + singleVariantMolecularProfile { + id + name + link + } } } sources { id - name link + citation + sourceType } } -mutation SuggestVariantGroupRevision2( - $input: SuggestVariantGroupRevisionInput! -) { - suggestVariantGroupRevision(input: $input) { +mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { + submitVariantGroup(input: $input) { clientMutationId variantGroup { id } - results { - newlyCreated - id - fieldName - } } } diff --git a/client/src/app/forms/types/variant-select/variant-quick-add/variant-quick-add.query.gql b/client/src/app/forms/types/variant-select/variant-quick-add/variant-quick-add.query.gql index 32203a3c9..da28dec97 100644 --- a/client/src/app/forms/types/variant-select/variant-quick-add/variant-quick-add.query.gql +++ b/client/src/app/forms/types/variant-select/variant-quick-add/variant-quick-add.query.gql @@ -1,6 +1,6 @@ mutation QuickAddVariant($name: String!, $geneId: Int!) { addVariant(input: { name: $name, geneId: $geneId }) { - ...AddVariantFields + ...QuickAddVariantFields } } diff --git a/client/src/app/forms/utilities/variant-group-to-model-fields.ts b/client/src/app/forms/utilities/variant-group-to-model-fields.ts index 0e9fea3ca..d4566f93c 100644 --- a/client/src/app/forms/utilities/variant-group-to-model-fields.ts +++ b/client/src/app/forms/utilities/variant-group-to-model-fields.ts @@ -7,12 +7,12 @@ import { Maybe, SubmitVariantGroupInput, SuggestVariantGroupRevisionInput, - VariantGroupRevisableFields2Fragment, + VariantGroupRevisableFieldsFragment, } from '@app/generated/civic.apollo' import { VariantGroupSubmitModel } from '../models/variant-group-submit.model' export function variantGroupToModelFields( - variantGroup: VariantGroupRevisableFields2Fragment + variantGroup: VariantGroupRevisableFieldsFragment ): VariantGroupFields { return { description: variantGroup.description, @@ -28,6 +28,7 @@ export function variantGroupFormModelToReviseInput( ): Maybe { let input = variantGroupFormModelToInput(model) if (input) { + delete input.organizationId return { id: gid, fields: { @@ -54,6 +55,7 @@ export function variantGroupFormModelToInput( sourceIds: fields.sourceIds || [], name: fields.name!, variantIds: fields.variantIds || [], + organizationId: model.organizationId, } } } diff --git a/client/src/app/generated/civic.apollo-helpers.ts b/client/src/app/generated/civic.apollo-helpers.ts index c31c06e00..4b042940d 100644 --- a/client/src/app/generated/civic.apollo-helpers.ts +++ b/client/src/app/generated/civic.apollo-helpers.ts @@ -5,11 +5,13 @@ export type AcceptRevisionsPayloadFieldPolicy = { revisions?: FieldPolicy | FieldReadFunction, supersededRevisions?: FieldPolicy | FieldReadFunction }; -export type AcmgCodeKeySpecifier = ('code' | 'description' | 'id' | AcmgCodeKeySpecifier)[]; +export type AcmgCodeKeySpecifier = ('code' | 'description' | 'id' | 'name' | 'tooltip' | AcmgCodeKeySpecifier)[]; export type AcmgCodeFieldPolicy = { code?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + tooltip?: FieldPolicy | FieldReadFunction }; export type AddCommentPayloadKeySpecifier = ('clientMutationId' | 'comment' | AddCommentPayloadKeySpecifier)[]; export type AddCommentPayloadFieldPolicy = { @@ -151,7 +153,7 @@ export type BrowseDiseaseEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type BrowseGeneKeySpecifier = ('assertionCount' | 'description' | 'diseases' | 'entrezId' | 'evidenceItemCount' | 'flagged' | 'flags' | 'geneAliases' | 'id' | 'link' | 'name' | 'therapies' | 'variantCount' | BrowseGeneKeySpecifier)[]; +export type BrowseGeneKeySpecifier = ('assertionCount' | 'description' | 'diseases' | 'entrezId' | 'evidenceItemCount' | 'flagged' | 'flags' | 'geneAliases' | 'id' | 'link' | 'molecularProfileCount' | 'name' | 'therapies' | 'variantCount' | BrowseGeneKeySpecifier)[]; export type BrowseGeneFieldPolicy = { assertionCount?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, @@ -163,6 +165,7 @@ export type BrowseGeneFieldPolicy = { geneAliases?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, + molecularProfileCount?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, therapies?: FieldPolicy | FieldReadFunction, variantCount?: FieldPolicy | FieldReadFunction @@ -234,7 +237,7 @@ export type BrowsePhenotypeEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type BrowseSourceKeySpecifier = ('authors' | 'citation' | 'citationId' | 'clinicalTrials' | 'displayType' | 'evidenceItemCount' | 'id' | 'journal' | 'link' | 'name' | 'publicationYear' | 'sourceSuggestionCount' | 'sourceType' | 'sourceUrl' | BrowseSourceKeySpecifier)[]; +export type BrowseSourceKeySpecifier = ('authors' | 'citation' | 'citationId' | 'clinicalTrials' | 'displayType' | 'evidenceItemCount' | 'id' | 'journal' | 'link' | 'name' | 'openAccess' | 'publicationYear' | 'sourceSuggestionCount' | 'sourceType' | 'sourceUrl' | BrowseSourceKeySpecifier)[]; export type BrowseSourceFieldPolicy = { authors?: FieldPolicy | FieldReadFunction, citation?: FieldPolicy | FieldReadFunction, @@ -246,6 +249,7 @@ export type BrowseSourceFieldPolicy = { journal?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openAccess?: FieldPolicy | FieldReadFunction, publicationYear?: FieldPolicy | FieldReadFunction, sourceSuggestionCount?: FieldPolicy | FieldReadFunction, sourceType?: FieldPolicy | FieldReadFunction, @@ -289,7 +293,7 @@ export type BrowseTherapyEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type BrowseVariantKeySpecifier = ('aliases' | 'diseases' | 'geneId' | 'geneLink' | 'geneName' | 'id' | 'link' | 'name' | 'therapies' | BrowseVariantKeySpecifier)[]; +export type BrowseVariantKeySpecifier = ('aliases' | 'diseases' | 'geneId' | 'geneLink' | 'geneName' | 'id' | 'link' | 'name' | 'therapies' | 'variantTypes' | BrowseVariantKeySpecifier)[]; export type BrowseVariantFieldPolicy = { aliases?: FieldPolicy | FieldReadFunction, diseases?: FieldPolicy | FieldReadFunction, @@ -299,7 +303,8 @@ export type BrowseVariantFieldPolicy = { id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, - therapies?: FieldPolicy | FieldReadFunction + therapies?: FieldPolicy | FieldReadFunction, + variantTypes?: FieldPolicy | FieldReadFunction }; export type BrowseVariantConnectionKeySpecifier = ('edges' | 'filteredCount' | 'nodes' | 'pageCount' | 'pageInfo' | 'totalCount' | BrowseVariantConnectionKeySpecifier)[]; export type BrowseVariantConnectionFieldPolicy = { @@ -376,11 +381,14 @@ export type CivicTimepointStatsFieldPolicy = { users?: FieldPolicy | FieldReadFunction, variants?: FieldPolicy | FieldReadFunction }; -export type ClingenCodeKeySpecifier = ('code' | 'description' | 'id' | ClingenCodeKeySpecifier)[]; +export type ClingenCodeKeySpecifier = ('code' | 'description' | 'exclusive' | 'id' | 'name' | 'tooltip' | ClingenCodeKeySpecifier)[]; export type ClingenCodeFieldPolicy = { code?: FieldPolicy | FieldReadFunction, description?: FieldPolicy | FieldReadFunction, - id?: FieldPolicy | FieldReadFunction + exclusive?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + tooltip?: FieldPolicy | FieldReadFunction }; export type ClinicalTrialKeySpecifier = ('description' | 'id' | 'link' | 'name' | 'nctId' | 'url' | ClinicalTrialKeySpecifier)[]; export type ClinicalTrialFieldPolicy = { @@ -431,13 +439,13 @@ export type CommentEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type CommentTagSegmentKeySpecifier = ('deprecated' | 'displayName' | 'entityId' | 'link' | 'revisionsetId' | 'status' | 'tagType' | CommentTagSegmentKeySpecifier)[]; +export type CommentTagSegmentKeySpecifier = ('deprecated' | 'displayName' | 'entityId' | 'link' | 'revisionSetId' | 'status' | 'tagType' | CommentTagSegmentKeySpecifier)[]; export type CommentTagSegmentFieldPolicy = { deprecated?: FieldPolicy | FieldReadFunction, displayName?: FieldPolicy | FieldReadFunction, entityId?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, - revisionsetId?: FieldPolicy | FieldReadFunction, + revisionSetId?: FieldPolicy | FieldReadFunction, status?: FieldPolicy | FieldReadFunction, tagType?: FieldPolicy | FieldReadFunction }; @@ -506,7 +514,7 @@ export type DeprecateVariantPayloadFieldPolicy = { newlyDeprecatedMolecularProfiles?: FieldPolicy | FieldReadFunction, variant?: FieldPolicy | FieldReadFunction }; -export type DiseaseKeySpecifier = ('diseaseAliases' | 'diseaseUrl' | 'displayName' | 'doid' | 'id' | 'link' | 'name' | DiseaseKeySpecifier)[]; +export type DiseaseKeySpecifier = ('diseaseAliases' | 'diseaseUrl' | 'displayName' | 'doid' | 'id' | 'link' | 'myDiseaseInfo' | 'name' | DiseaseKeySpecifier)[]; export type DiseaseFieldPolicy = { diseaseAliases?: FieldPolicy | FieldReadFunction, diseaseUrl?: FieldPolicy | FieldReadFunction, @@ -514,9 +522,10 @@ export type DiseaseFieldPolicy = { doid?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, + myDiseaseInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; -export type DiseasePopoverKeySpecifier = ('assertionCount' | 'diseaseAliases' | 'diseaseUrl' | 'displayName' | 'doid' | 'evidenceItemCount' | 'id' | 'link' | 'name' | 'variantCount' | DiseasePopoverKeySpecifier)[]; +export type DiseasePopoverKeySpecifier = ('assertionCount' | 'diseaseAliases' | 'diseaseUrl' | 'displayName' | 'doid' | 'evidenceItemCount' | 'id' | 'link' | 'molecularProfileCount' | 'myDiseaseInfo' | 'name' | DiseasePopoverKeySpecifier)[]; export type DiseasePopoverFieldPolicy = { assertionCount?: FieldPolicy | FieldReadFunction, diseaseAliases?: FieldPolicy | FieldReadFunction, @@ -526,8 +535,9 @@ export type DiseasePopoverFieldPolicy = { evidenceItemCount?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, - name?: FieldPolicy | FieldReadFunction, - variantCount?: FieldPolicy | FieldReadFunction + molecularProfileCount?: FieldPolicy | FieldReadFunction, + myDiseaseInfo?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction }; export type DownloadableFileKeySpecifier = ('filename' | 'path' | DownloadableFileKeySpecifier)[]; export type DownloadableFileFieldPolicy = { @@ -637,6 +647,11 @@ export type EvidenceItemsByStatusFieldPolicy = { rejectedCount?: FieldPolicy | FieldReadFunction, submittedCount?: FieldPolicy | FieldReadFunction }; +export type FdaCodeKeySpecifier = ('code' | 'description' | FdaCodeKeySpecifier)[]; +export type FdaCodeFieldPolicy = { + code?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction +}; export type FieldNameKeySpecifier = ('displayName' | 'name' | FieldNameKeySpecifier)[]; export type FieldNameFieldPolicy = { displayName?: FieldPolicy | FieldReadFunction, @@ -726,6 +741,85 @@ export type GeneEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; +export type LeaderboardOrganizationKeySpecifier = ('actionCount' | 'description' | 'eventCount' | 'events' | 'id' | 'memberCount' | 'members' | 'mostRecentEvent' | 'name' | 'orgAndSuborgsStatsHash' | 'orgStatsHash' | 'profileImagePath' | 'rank' | 'ranks' | 'subGroups' | 'url' | LeaderboardOrganizationKeySpecifier)[]; +export type LeaderboardOrganizationFieldPolicy = { + actionCount?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, + eventCount?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + memberCount?: FieldPolicy | FieldReadFunction, + members?: FieldPolicy | FieldReadFunction, + mostRecentEvent?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + orgAndSuborgsStatsHash?: FieldPolicy | FieldReadFunction, + orgStatsHash?: FieldPolicy | FieldReadFunction, + profileImagePath?: FieldPolicy | FieldReadFunction, + rank?: FieldPolicy | FieldReadFunction, + ranks?: FieldPolicy | FieldReadFunction, + subGroups?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction +}; +export type LeaderboardOrganizationConnectionKeySpecifier = ('edges' | 'nodes' | 'pageCount' | 'pageInfo' | 'totalCount' | LeaderboardOrganizationConnectionKeySpecifier)[]; +export type LeaderboardOrganizationConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + nodes?: FieldPolicy | FieldReadFunction, + pageCount?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type LeaderboardOrganizationEdgeKeySpecifier = ('cursor' | 'node' | LeaderboardOrganizationEdgeKeySpecifier)[]; +export type LeaderboardOrganizationEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; +export type LeaderboardRankKeySpecifier = ('actionCount' | 'rank' | LeaderboardRankKeySpecifier)[]; +export type LeaderboardRankFieldPolicy = { + actionCount?: FieldPolicy | FieldReadFunction, + rank?: FieldPolicy | FieldReadFunction +}; +export type LeaderboardUserKeySpecifier = ('actionCount' | 'areaOfExpertise' | 'bio' | 'country' | 'displayName' | 'email' | 'events' | 'facebookProfile' | 'id' | 'linkedinProfile' | 'mostRecentActionTimestamp' | 'mostRecentConflictOfInterestStatement' | 'mostRecentEvent' | 'mostRecentOrganizationId' | 'name' | 'notifications' | 'orcid' | 'organizations' | 'profileImagePath' | 'rank' | 'ranks' | 'role' | 'statsHash' | 'twitterHandle' | 'url' | 'username' | LeaderboardUserKeySpecifier)[]; +export type LeaderboardUserFieldPolicy = { + actionCount?: FieldPolicy | FieldReadFunction, + areaOfExpertise?: FieldPolicy | FieldReadFunction, + bio?: FieldPolicy | FieldReadFunction, + country?: FieldPolicy | FieldReadFunction, + displayName?: FieldPolicy | FieldReadFunction, + email?: FieldPolicy | FieldReadFunction, + events?: FieldPolicy | FieldReadFunction, + facebookProfile?: FieldPolicy | FieldReadFunction, + id?: FieldPolicy | FieldReadFunction, + linkedinProfile?: FieldPolicy | FieldReadFunction, + mostRecentActionTimestamp?: FieldPolicy | FieldReadFunction, + mostRecentConflictOfInterestStatement?: FieldPolicy | FieldReadFunction, + mostRecentEvent?: FieldPolicy | FieldReadFunction, + mostRecentOrganizationId?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction, + notifications?: FieldPolicy | FieldReadFunction, + orcid?: FieldPolicy | FieldReadFunction, + organizations?: FieldPolicy | FieldReadFunction, + profileImagePath?: FieldPolicy | FieldReadFunction, + rank?: FieldPolicy | FieldReadFunction, + ranks?: FieldPolicy | FieldReadFunction, + role?: FieldPolicy | FieldReadFunction, + statsHash?: FieldPolicy | FieldReadFunction, + twitterHandle?: FieldPolicy | FieldReadFunction, + url?: FieldPolicy | FieldReadFunction, + username?: FieldPolicy | FieldReadFunction +}; +export type LeaderboardUserConnectionKeySpecifier = ('edges' | 'nodes' | 'pageCount' | 'pageInfo' | 'totalCount' | LeaderboardUserConnectionKeySpecifier)[]; +export type LeaderboardUserConnectionFieldPolicy = { + edges?: FieldPolicy | FieldReadFunction, + nodes?: FieldPolicy | FieldReadFunction, + pageCount?: FieldPolicy | FieldReadFunction, + pageInfo?: FieldPolicy | FieldReadFunction, + totalCount?: FieldPolicy | FieldReadFunction +}; +export type LeaderboardUserEdgeKeySpecifier = ('cursor' | 'node' | LeaderboardUserEdgeKeySpecifier)[]; +export type LeaderboardUserEdgeFieldPolicy = { + cursor?: FieldPolicy | FieldReadFunction, + node?: FieldPolicy | FieldReadFunction +}; export type LinkableDiseaseKeySpecifier = ('id' | 'link' | 'name' | LinkableDiseaseKeySpecifier)[]; export type LinkableDiseaseFieldPolicy = { id?: FieldPolicy | FieldReadFunction, @@ -750,6 +844,12 @@ export type LinkableVariantFieldPolicy = { link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction }; +export type LinkableVariantTypeKeySpecifier = ('id' | 'link' | 'name' | LinkableVariantTypeKeySpecifier)[]; +export type LinkableVariantTypeFieldPolicy = { + id?: FieldPolicy | FieldReadFunction, + link?: FieldPolicy | FieldReadFunction, + name?: FieldPolicy | FieldReadFunction +}; export type LinkoutDataKeySpecifier = ('currentValue' | 'diffValue' | 'name' | 'suggestedValue' | LinkoutDataKeySpecifier)[]; export type LinkoutDataFieldPolicy = { currentValue?: FieldPolicy | FieldReadFunction, @@ -776,7 +876,7 @@ export type ModeratedObjectFieldFieldPolicy = { id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction }; -export type MolecularProfileKeySpecifier = ('assertions' | 'comments' | 'commonName' | 'deprecated' | 'deprecatedVariants' | 'deprecationEvent' | 'description' | 'events' | 'evidenceCountsByStatus' | 'evidenceItems' | 'flagged' | 'flags' | 'fullName' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfileAliases' | 'molecularProfileScore' | 'name' | 'parsedName' | 'rawName' | 'revisions' | 'sources' | 'variants' | MolecularProfileKeySpecifier)[]; +export type MolecularProfileKeySpecifier = ('assertions' | 'comments' | 'commonName' | 'deprecated' | 'deprecatedVariants' | 'deprecationEvent' | 'description' | 'events' | 'evidenceCountsByStatus' | 'evidenceItems' | 'flagged' | 'flags' | 'fullName' | 'id' | 'isComplex' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfileAliases' | 'molecularProfileScore' | 'name' | 'parsedName' | 'rawName' | 'revisions' | 'sources' | 'variants' | MolecularProfileKeySpecifier)[]; export type MolecularProfileFieldPolicy = { assertions?: FieldPolicy | FieldReadFunction, comments?: FieldPolicy | FieldReadFunction, @@ -792,6 +892,7 @@ export type MolecularProfileFieldPolicy = { flags?: FieldPolicy | FieldReadFunction, fullName?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, + isComplex?: FieldPolicy | FieldReadFunction, lastAcceptedRevisionEvent?: FieldPolicy | FieldReadFunction, lastCommentEvent?: FieldPolicy | FieldReadFunction, lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, @@ -870,6 +971,35 @@ export type MutationFieldPolicy = { updateNotificationStatus?: FieldPolicy | FieldReadFunction, updateSourceSuggestionStatus?: FieldPolicy | FieldReadFunction }; +export type MyChemInfoKeySpecifier = ('chebiDefinition' | 'chebiId' | 'chemblId' | 'chemblMoleculeType' | 'drugbankId' | 'fdaEpcCodes' | 'fdaMoaCodes' | 'firstApproval' | 'inchikey' | 'indications' | 'pharmgkbId' | 'pubchemCid' | 'rxnorm' | MyChemInfoKeySpecifier)[]; +export type MyChemInfoFieldPolicy = { + chebiDefinition?: FieldPolicy | FieldReadFunction, + chebiId?: FieldPolicy | FieldReadFunction, + chemblId?: FieldPolicy | FieldReadFunction, + chemblMoleculeType?: FieldPolicy | FieldReadFunction, + drugbankId?: FieldPolicy | FieldReadFunction, + fdaEpcCodes?: FieldPolicy | FieldReadFunction, + fdaMoaCodes?: FieldPolicy | FieldReadFunction, + firstApproval?: FieldPolicy | FieldReadFunction, + inchikey?: FieldPolicy | FieldReadFunction, + indications?: FieldPolicy | FieldReadFunction, + pharmgkbId?: FieldPolicy | FieldReadFunction, + pubchemCid?: FieldPolicy | FieldReadFunction, + rxnorm?: FieldPolicy | FieldReadFunction +}; +export type MyDiseaseInfoKeySpecifier = ('diseaseOntologyExactSynonyms' | 'diseaseOntologyRelatedSynonyms' | 'doDef' | 'doDefCitations' | 'icd10' | 'icdo' | 'mesh' | 'mondoDef' | 'ncit' | 'omim' | MyDiseaseInfoKeySpecifier)[]; +export type MyDiseaseInfoFieldPolicy = { + diseaseOntologyExactSynonyms?: FieldPolicy | FieldReadFunction, + diseaseOntologyRelatedSynonyms?: FieldPolicy | FieldReadFunction, + doDef?: FieldPolicy | FieldReadFunction, + doDefCitations?: FieldPolicy | FieldReadFunction, + icd10?: FieldPolicy | FieldReadFunction, + icdo?: FieldPolicy | FieldReadFunction, + mesh?: FieldPolicy | FieldReadFunction, + mondoDef?: FieldPolicy | FieldReadFunction, + ncit?: FieldPolicy | FieldReadFunction, + omim?: FieldPolicy | FieldReadFunction +}; export type MyVariantInfoKeySpecifier = ('caddConsequence' | 'caddDetail' | 'caddPhred' | 'caddScore' | 'clinvarClinicalSignificance' | 'clinvarHgvsCoding' | 'clinvarHgvsGenomic' | 'clinvarHgvsNonCoding' | 'clinvarHgvsProtein' | 'clinvarId' | 'clinvarOmim' | 'cosmicId' | 'dbnsfpInterproDomain' | 'dbsnpRsid' | 'eglClass' | 'eglHgvs' | 'eglProtein' | 'eglTranscript' | 'exacAlleleCount' | 'exacAlleleFrequency' | 'exacAlleleNumber' | 'fathmmMklPrediction' | 'fathmmMklScore' | 'fathmmPrediction' | 'fathmmScore' | 'fitconsScore' | 'gerp' | 'gnomadExomeAlleleCount' | 'gnomadExomeAlleleFrequency' | 'gnomadExomeAlleleNumber' | 'gnomadExomeFilter' | 'gnomadGenomeAlleleCount' | 'gnomadGenomeAlleleFrequency' | 'gnomadGenomeAlleleNumber' | 'gnomadGenomeFilter' | 'lrtPrediction' | 'lrtScore' | 'metalrPrediction' | 'metalrScore' | 'metasvmPrediction' | 'metasvmScore' | 'mutationassessorPrediction' | 'mutationassessorScore' | 'mutationtasterPrediction' | 'mutationtasterScore' | 'myVariantInfoId' | 'phastcons30way' | 'phastcons100way' | 'phyloP30way' | 'phyloP100way' | 'polyphen2HdivPrediction' | 'polyphen2HdivScore' | 'polyphen2HvarPrediction' | 'polyphen2HvarScore' | 'proveanPrediction' | 'proveanScore' | 'revelScore' | 'siftPrediction' | 'siftScore' | 'siphy' | 'snpeffSnpEffect' | 'snpeffSnpImpact' | MyVariantInfoKeySpecifier)[]; export type MyVariantInfoFieldPolicy = { caddConsequence?: FieldPolicy | FieldReadFunction, @@ -983,7 +1113,7 @@ export type ObjectFieldDiffFieldPolicy = { removedObjects?: FieldPolicy | FieldReadFunction, suggestedObjects?: FieldPolicy | FieldReadFunction }; -export type OrganizationKeySpecifier = ('description' | 'eventCount' | 'events' | 'id' | 'memberCount' | 'members' | 'mostRecentEvent' | 'name' | 'orgAndSuborgsStatsHash' | 'orgStatsHash' | 'profileImagePath' | 'subGroups' | 'url' | OrganizationKeySpecifier)[]; +export type OrganizationKeySpecifier = ('description' | 'eventCount' | 'events' | 'id' | 'memberCount' | 'members' | 'mostRecentEvent' | 'name' | 'orgAndSuborgsStatsHash' | 'orgStatsHash' | 'profileImagePath' | 'ranks' | 'subGroups' | 'url' | OrganizationKeySpecifier)[]; export type OrganizationFieldPolicy = { description?: FieldPolicy | FieldReadFunction, eventCount?: FieldPolicy | FieldReadFunction, @@ -996,6 +1126,7 @@ export type OrganizationFieldPolicy = { orgAndSuborgsStatsHash?: FieldPolicy | FieldReadFunction, orgStatsHash?: FieldPolicy | FieldReadFunction, profileImagePath?: FieldPolicy | FieldReadFunction, + ranks?: FieldPolicy | FieldReadFunction, subGroups?: FieldPolicy | FieldReadFunction, url?: FieldPolicy | FieldReadFunction }; @@ -1012,6 +1143,13 @@ export type OrganizationEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; +export type OrganizationLeaderboardsKeySpecifier = ('commentsLeaderboard' | 'moderationLeaderboard' | 'revisionsLeaderboard' | 'submissionsLeaderboard' | OrganizationLeaderboardsKeySpecifier)[]; +export type OrganizationLeaderboardsFieldPolicy = { + commentsLeaderboard?: FieldPolicy | FieldReadFunction, + moderationLeaderboard?: FieldPolicy | FieldReadFunction, + revisionsLeaderboard?: FieldPolicy | FieldReadFunction, + submissionsLeaderboard?: FieldPolicy | FieldReadFunction +}; export type PageInfoKeySpecifier = ('endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | PageInfoKeySpecifier)[]; export type PageInfoFieldPolicy = { endCursor?: FieldPolicy | FieldReadFunction, @@ -1019,26 +1157,30 @@ export type PageInfoFieldPolicy = { hasPreviousPage?: FieldPolicy | FieldReadFunction, startCursor?: FieldPolicy | FieldReadFunction }; -export type PhenotypeKeySpecifier = ('hpoId' | 'id' | 'link' | 'name' | 'url' | PhenotypeKeySpecifier)[]; +export type PhenotypeKeySpecifier = ('description' | 'hpoId' | 'id' | 'link' | 'name' | 'url' | PhenotypeKeySpecifier)[]; export type PhenotypeFieldPolicy = { + description?: FieldPolicy | FieldReadFunction, hpoId?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, url?: FieldPolicy | FieldReadFunction }; -export type PhenotypePopoverKeySpecifier = ('assertionCount' | 'evidenceItemCount' | 'hpoId' | 'id' | 'link' | 'name' | 'url' | PhenotypePopoverKeySpecifier)[]; +export type PhenotypePopoverKeySpecifier = ('assertionCount' | 'description' | 'evidenceItemCount' | 'hpoId' | 'id' | 'link' | 'molecularProfileCount' | 'name' | 'url' | PhenotypePopoverKeySpecifier)[]; export type PhenotypePopoverFieldPolicy = { assertionCount?: FieldPolicy | FieldReadFunction, + description?: FieldPolicy | FieldReadFunction, evidenceItemCount?: FieldPolicy | FieldReadFunction, hpoId?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, + molecularProfileCount?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, url?: FieldPolicy | FieldReadFunction }; -export type QueryKeySpecifier = ('acmgCodesTypeahead' | 'assertion' | 'assertions' | 'browseDiseases' | 'browseGenes' | 'browseMolecularProfiles' | 'browseSources' | 'browseVariantGroups' | 'browseVariants' | 'clingenCodesTypeahead' | 'clinicalTrial' | 'clinicalTrials' | 'comment' | 'comments' | 'contributors' | 'countries' | 'dataReleases' | 'disease' | 'diseasePopover' | 'diseaseTypeahead' | 'entityTypeahead' | 'events' | 'evidenceItem' | 'evidenceItems' | 'flag' | 'flags' | 'gene' | 'geneTypeahead' | 'genes' | 'molecularProfile' | 'molecularProfiles' | 'nccnGuidelinesTypeahead' | 'notifications' | 'organization' | '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' | 'userTypeahead' | 'users' | 'validateRevisionsForAcceptance' | 'variant' | 'variantGroup' | 'variantGroups' | 'variantType' | 'variantTypePopover' | 'variantTypeTypeahead' | 'variantTypes' | 'variants' | 'viewer' | QueryKeySpecifier)[]; +export type QueryKeySpecifier = ('acmgCode' | 'acmgCodesTypeahead' | 'assertion' | 'assertions' | 'browseDiseases' | 'browseGenes' | 'browseMolecularProfiles' | 'browseSources' | 'browseVariantGroups' | 'browseVariants' | 'clingenCode' | 'clingenCodesTypeahead' | 'clinicalTrial' | 'clinicalTrials' | 'comment' | 'comments' | 'contributors' | 'countries' | 'dataReleases' | 'disease' | 'diseasePopover' | 'diseaseTypeahead' | 'entityTypeahead' | 'events' | 'evidenceItem' | 'evidenceItems' | 'flag' | 'flags' | 'gene' | 'geneTypeahead' | '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' | 'viewer' | QueryKeySpecifier)[]; export type QueryFieldPolicy = { + acmgCode?: FieldPolicy | FieldReadFunction, acmgCodesTypeahead?: FieldPolicy | FieldReadFunction, assertion?: FieldPolicy | FieldReadFunction, assertions?: FieldPolicy | FieldReadFunction, @@ -1048,6 +1190,7 @@ export type QueryFieldPolicy = { browseSources?: FieldPolicy | FieldReadFunction, browseVariantGroups?: FieldPolicy | FieldReadFunction, browseVariants?: FieldPolicy | FieldReadFunction, + clingenCode?: FieldPolicy | FieldReadFunction, clingenCodesTypeahead?: FieldPolicy | FieldReadFunction, clinicalTrial?: FieldPolicy | FieldReadFunction, clinicalTrials?: FieldPolicy | FieldReadFunction, @@ -1070,9 +1213,11 @@ export type QueryFieldPolicy = { genes?: FieldPolicy | FieldReadFunction, molecularProfile?: FieldPolicy | FieldReadFunction, molecularProfiles?: FieldPolicy | FieldReadFunction, + nccnGuideline?: FieldPolicy | FieldReadFunction, nccnGuidelinesTypeahead?: FieldPolicy | FieldReadFunction, notifications?: FieldPolicy | FieldReadFunction, organization?: FieldPolicy | FieldReadFunction, + organizationLeaderboards?: FieldPolicy | FieldReadFunction, organizations?: FieldPolicy | FieldReadFunction, phenotype?: FieldPolicy | FieldReadFunction, phenotypePopover?: FieldPolicy | FieldReadFunction, @@ -1098,6 +1243,7 @@ export type QueryFieldPolicy = { therapyTypeahead?: FieldPolicy | FieldReadFunction, timepointStats?: FieldPolicy | FieldReadFunction, user?: FieldPolicy | FieldReadFunction, + userLeaderboards?: FieldPolicy | FieldReadFunction, userTypeahead?: FieldPolicy | FieldReadFunction, users?: FieldPolicy | FieldReadFunction, validateRevisionsForAcceptance?: FieldPolicy | FieldReadFunction, @@ -1111,6 +1257,13 @@ export type QueryFieldPolicy = { variants?: FieldPolicy | FieldReadFunction, viewer?: FieldPolicy | FieldReadFunction }; +export type RanksKeySpecifier = ('commentsRank' | 'moderationRank' | 'revisionsRank' | 'submissionsRank' | RanksKeySpecifier)[]; +export type RanksFieldPolicy = { + commentsRank?: FieldPolicy | FieldReadFunction, + moderationRank?: FieldPolicy | FieldReadFunction, + revisionsRank?: FieldPolicy | FieldReadFunction, + submissionsRank?: FieldPolicy | FieldReadFunction +}; export type RejectRevisionsPayloadKeySpecifier = ('clientMutationId' | 'revisions' | RejectRevisionsPayloadKeySpecifier)[]; export type RejectRevisionsPayloadFieldPolicy = { clientMutationId?: FieldPolicy | FieldReadFunction, @@ -1121,7 +1274,7 @@ export type ResolveFlagPayloadFieldPolicy = { clientMutationId?: FieldPolicy | FieldReadFunction, flag?: FieldPolicy | FieldReadFunction }; -export type RevisionKeySpecifier = ('comments' | 'createdAt' | 'creationComment' | 'creationEvent' | 'currentValue' | 'events' | 'fieldName' | 'id' | 'lastCommentEvent' | 'link' | 'linkoutData' | 'name' | 'resolutionComment' | 'resolvedAt' | 'resolver' | 'resolvingEvent' | 'revisionsetId' | 'revisor' | 'status' | 'subject' | 'suggestedValue' | 'updatedAt' | RevisionKeySpecifier)[]; +export type RevisionKeySpecifier = ('comments' | 'createdAt' | 'creationComment' | 'creationEvent' | 'currentValue' | 'events' | 'fieldName' | 'id' | 'lastCommentEvent' | 'link' | 'linkoutData' | 'name' | 'resolutionComment' | 'resolvedAt' | 'resolver' | 'resolvingEvent' | 'revisionSetId' | 'revisor' | 'status' | 'subject' | 'suggestedValue' | 'updatedAt' | RevisionKeySpecifier)[]; export type RevisionFieldPolicy = { comments?: FieldPolicy | FieldReadFunction, createdAt?: FieldPolicy | FieldReadFunction, @@ -1139,7 +1292,7 @@ export type RevisionFieldPolicy = { resolvedAt?: FieldPolicy | FieldReadFunction, resolver?: FieldPolicy | FieldReadFunction, resolvingEvent?: FieldPolicy | FieldReadFunction, - revisionsetId?: FieldPolicy | FieldReadFunction, + revisionSetId?: FieldPolicy | FieldReadFunction, revisor?: FieldPolicy | FieldReadFunction, status?: FieldPolicy | FieldReadFunction, subject?: FieldPolicy | FieldReadFunction, @@ -1163,12 +1316,12 @@ export type RevisionEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; -export type RevisionResultKeySpecifier = ('fieldName' | 'id' | 'newlyCreated' | 'revisionsetId' | RevisionResultKeySpecifier)[]; +export type RevisionResultKeySpecifier = ('fieldName' | 'id' | 'newlyCreated' | 'revisionSetId' | RevisionResultKeySpecifier)[]; export type RevisionResultFieldPolicy = { fieldName?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, newlyCreated?: FieldPolicy | FieldReadFunction, - revisionsetId?: FieldPolicy | FieldReadFunction + revisionSetId?: FieldPolicy | FieldReadFunction }; export type ScalarFieldKeySpecifier = ('value' | ScalarFieldKeySpecifier)[]; export type ScalarFieldFieldPolicy = { @@ -1186,7 +1339,7 @@ export type SearchResultFieldPolicy = { name?: FieldPolicy | FieldReadFunction, resultType?: FieldPolicy | FieldReadFunction }; -export type SourceKeySpecifier = ('abstract' | 'ascoAbstractId' | 'authorString' | 'citation' | 'citationId' | 'clinicalTrials' | 'comments' | 'displayType' | 'events' | 'fullJournalTitle' | 'id' | 'journal' | 'lastCommentEvent' | 'link' | 'name' | 'pmcId' | 'publicationDate' | 'publicationDay' | 'publicationMonth' | 'publicationYear' | 'sourceType' | 'sourceUrl' | 'title' | SourceKeySpecifier)[]; +export type SourceKeySpecifier = ('abstract' | 'ascoAbstractId' | 'authorString' | 'citation' | 'citationId' | 'clinicalTrials' | 'comments' | 'displayType' | 'events' | 'fullJournalTitle' | 'id' | 'journal' | 'lastCommentEvent' | 'link' | 'name' | 'openAccess' | 'pmcId' | 'publicationDate' | 'publicationDay' | 'publicationMonth' | 'publicationYear' | 'sourceType' | 'sourceUrl' | 'title' | SourceKeySpecifier)[]; export type SourceFieldPolicy = { abstract?: FieldPolicy | FieldReadFunction, ascoAbstractId?: FieldPolicy | FieldReadFunction, @@ -1203,6 +1356,7 @@ export type SourceFieldPolicy = { lastCommentEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openAccess?: FieldPolicy | FieldReadFunction, pmcId?: FieldPolicy | FieldReadFunction, publicationDate?: FieldPolicy | FieldReadFunction, publicationDay?: FieldPolicy | FieldReadFunction, @@ -1212,7 +1366,7 @@ export type SourceFieldPolicy = { sourceUrl?: FieldPolicy | FieldReadFunction, title?: FieldPolicy | FieldReadFunction }; -export type SourcePopoverKeySpecifier = ('abstract' | 'ascoAbstractId' | 'authorString' | 'citation' | 'citationId' | 'clinicalTrials' | 'comments' | 'displayType' | 'events' | 'evidenceItemCount' | 'fullJournalTitle' | 'id' | 'journal' | 'lastCommentEvent' | 'link' | 'name' | 'pmcId' | 'publicationDate' | 'publicationDay' | 'publicationMonth' | 'publicationYear' | 'sourceType' | 'sourceUrl' | 'title' | SourcePopoverKeySpecifier)[]; +export type SourcePopoverKeySpecifier = ('abstract' | 'ascoAbstractId' | 'authorString' | 'citation' | 'citationId' | 'clinicalTrials' | 'comments' | 'displayType' | 'events' | 'evidenceItemCount' | 'fullJournalTitle' | 'id' | 'journal' | 'lastCommentEvent' | 'link' | 'name' | 'openAccess' | 'pmcId' | 'publicationDate' | 'publicationDay' | 'publicationMonth' | 'publicationYear' | 'sourceType' | 'sourceUrl' | 'title' | SourcePopoverKeySpecifier)[]; export type SourcePopoverFieldPolicy = { abstract?: FieldPolicy | FieldReadFunction, ascoAbstractId?: FieldPolicy | FieldReadFunction, @@ -1230,6 +1384,7 @@ export type SourcePopoverFieldPolicy = { lastCommentEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, + openAccess?: FieldPolicy | FieldReadFunction, pmcId?: FieldPolicy | FieldReadFunction, publicationDate?: FieldPolicy | FieldReadFunction, publicationDay?: FieldPolicy | FieldReadFunction, @@ -1362,21 +1517,24 @@ export type SuggestVariantRevisionPayloadFieldPolicy = { results?: FieldPolicy | FieldReadFunction, variant?: FieldPolicy | FieldReadFunction }; -export type TherapyKeySpecifier = ('id' | 'link' | 'name' | 'ncitId' | 'therapyAliases' | 'therapyUrl' | TherapyKeySpecifier)[]; +export type TherapyKeySpecifier = ('id' | 'link' | 'myChemInfo' | 'name' | 'ncitId' | 'therapyAliases' | 'therapyUrl' | TherapyKeySpecifier)[]; export type TherapyFieldPolicy = { id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, + myChemInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, ncitId?: FieldPolicy | FieldReadFunction, therapyAliases?: FieldPolicy | FieldReadFunction, therapyUrl?: FieldPolicy | FieldReadFunction }; -export type TherapyPopoverKeySpecifier = ('assertionCount' | 'evidenceItemCount' | 'id' | 'link' | 'name' | 'ncitId' | 'therapyAliases' | 'therapyUrl' | TherapyPopoverKeySpecifier)[]; +export type TherapyPopoverKeySpecifier = ('assertionCount' | 'evidenceItemCount' | 'id' | 'link' | 'molecularProfileCount' | 'myChemInfo' | 'name' | 'ncitId' | 'therapyAliases' | 'therapyUrl' | TherapyPopoverKeySpecifier)[]; export type TherapyPopoverFieldPolicy = { assertionCount?: FieldPolicy | FieldReadFunction, evidenceItemCount?: FieldPolicy | FieldReadFunction, id?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, + molecularProfileCount?: FieldPolicy | FieldReadFunction, + myChemInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, ncitId?: FieldPolicy | FieldReadFunction, therapyAliases?: FieldPolicy | FieldReadFunction, @@ -1409,7 +1567,7 @@ export type UpdateSourceSuggestionStatusPayloadFieldPolicy = { clientMutationId?: FieldPolicy | FieldReadFunction, sourceSuggestion?: FieldPolicy | FieldReadFunction }; -export type UserKeySpecifier = ('areaOfExpertise' | 'bio' | 'country' | 'displayName' | 'email' | 'events' | 'facebookProfile' | 'id' | 'linkedinProfile' | 'mostRecentActionTimestamp' | 'mostRecentConflictOfInterestStatement' | 'mostRecentEvent' | 'mostRecentOrganizationId' | 'name' | 'notifications' | 'orcid' | 'organizations' | 'profileImagePath' | 'role' | 'statsHash' | 'twitterHandle' | 'url' | 'username' | UserKeySpecifier)[]; +export type UserKeySpecifier = ('areaOfExpertise' | 'bio' | 'country' | 'displayName' | 'email' | 'events' | 'facebookProfile' | 'id' | 'linkedinProfile' | 'mostRecentActionTimestamp' | 'mostRecentConflictOfInterestStatement' | 'mostRecentEvent' | 'mostRecentOrg' | 'mostRecentOrganizationId' | 'name' | 'notifications' | 'orcid' | 'organizations' | 'profileImagePath' | 'ranks' | 'role' | 'statsHash' | 'twitterHandle' | 'url' | 'username' | UserKeySpecifier)[]; export type UserFieldPolicy = { areaOfExpertise?: FieldPolicy | FieldReadFunction, bio?: FieldPolicy | FieldReadFunction, @@ -1423,12 +1581,14 @@ export type UserFieldPolicy = { mostRecentActionTimestamp?: FieldPolicy | FieldReadFunction, mostRecentConflictOfInterestStatement?: FieldPolicy | FieldReadFunction, mostRecentEvent?: FieldPolicy | FieldReadFunction, + mostRecentOrg?: FieldPolicy | FieldReadFunction, mostRecentOrganizationId?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, notifications?: FieldPolicy | FieldReadFunction, orcid?: FieldPolicy | FieldReadFunction, organizations?: FieldPolicy | FieldReadFunction, profileImagePath?: FieldPolicy | FieldReadFunction, + ranks?: FieldPolicy | FieldReadFunction, role?: FieldPolicy | FieldReadFunction, statsHash?: FieldPolicy | FieldReadFunction, twitterHandle?: FieldPolicy | FieldReadFunction, @@ -1448,12 +1608,19 @@ export type UserEdgeFieldPolicy = { cursor?: FieldPolicy | FieldReadFunction, node?: FieldPolicy | FieldReadFunction }; +export type UserLeaderboardsKeySpecifier = ('commentsLeaderboard' | 'moderationLeaderboard' | 'revisionsLeaderboard' | 'submissionsLeaderboard' | UserLeaderboardsKeySpecifier)[]; +export type UserLeaderboardsFieldPolicy = { + commentsLeaderboard?: FieldPolicy | FieldReadFunction, + moderationLeaderboard?: FieldPolicy | FieldReadFunction, + revisionsLeaderboard?: FieldPolicy | FieldReadFunction, + submissionsLeaderboard?: FieldPolicy | FieldReadFunction +}; export type ValidationErrorsKeySpecifier = ('genericErrors' | 'validationErrors' | ValidationErrorsKeySpecifier)[]; export type ValidationErrorsFieldPolicy = { genericErrors?: FieldPolicy | FieldReadFunction, validationErrors?: FieldPolicy | FieldReadFunction }; -export type VariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'deprecated' | 'deprecationComment' | 'deprecationEvent' | 'deprecationReason' | 'ensemblVersion' | 'events' | 'flagged' | 'flags' | 'gene' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'primaryCoordinates' | 'referenceBases' | 'referenceBuild' | 'revisions' | 'secondaryCoordinates' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantBases' | 'variantTypes' | VariantKeySpecifier)[]; +export type VariantKeySpecifier = ('alleleRegistryId' | 'clinvarIds' | 'comments' | 'deprecated' | 'deprecationComment' | 'deprecationEvent' | 'deprecationReason' | 'ensemblVersion' | 'events' | 'flagged' | 'flags' | 'gene' | 'hgvsDescriptions' | 'id' | 'lastAcceptedRevisionEvent' | 'lastCommentEvent' | 'lastSubmittedRevisionEvent' | 'link' | 'maneSelectTranscript' | 'molecularProfiles' | 'myVariantInfo' | 'name' | 'openCravatUrl' | 'primaryCoordinates' | 'referenceBases' | 'referenceBuild' | 'revisions' | 'secondaryCoordinates' | 'singleVariantMolecularProfile' | 'singleVariantMolecularProfileId' | 'variantAliases' | 'variantBases' | 'variantTypes' | VariantKeySpecifier)[]; export type VariantFieldPolicy = { alleleRegistryId?: FieldPolicy | FieldReadFunction, clinvarIds?: FieldPolicy | FieldReadFunction, @@ -1473,6 +1640,7 @@ export type VariantFieldPolicy = { lastCommentEvent?: FieldPolicy | FieldReadFunction, lastSubmittedRevisionEvent?: FieldPolicy | FieldReadFunction, link?: FieldPolicy | FieldReadFunction, + maneSelectTranscript?: FieldPolicy | FieldReadFunction, molecularProfiles?: FieldPolicy | FieldReadFunction, myVariantInfo?: FieldPolicy | FieldReadFunction, name?: FieldPolicy | FieldReadFunction, @@ -1853,6 +2021,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | EvidenceItemsByStatusKeySpecifier | (() => undefined | EvidenceItemsByStatusKeySpecifier), fields?: EvidenceItemsByStatusFieldPolicy, }, + FdaCode?: Omit & { + keyFields?: false | FdaCodeKeySpecifier | (() => undefined | FdaCodeKeySpecifier), + fields?: FdaCodeFieldPolicy, + }, FieldName?: Omit & { keyFields?: false | FieldNameKeySpecifier | (() => undefined | FieldNameKeySpecifier), fields?: FieldNameFieldPolicy, @@ -1893,6 +2065,34 @@ export type StrictTypedTypePolicies = { keyFields?: false | GeneEdgeKeySpecifier | (() => undefined | GeneEdgeKeySpecifier), fields?: GeneEdgeFieldPolicy, }, + LeaderboardOrganization?: Omit & { + keyFields?: false | LeaderboardOrganizationKeySpecifier | (() => undefined | LeaderboardOrganizationKeySpecifier), + fields?: LeaderboardOrganizationFieldPolicy, + }, + LeaderboardOrganizationConnection?: Omit & { + keyFields?: false | LeaderboardOrganizationConnectionKeySpecifier | (() => undefined | LeaderboardOrganizationConnectionKeySpecifier), + fields?: LeaderboardOrganizationConnectionFieldPolicy, + }, + LeaderboardOrganizationEdge?: Omit & { + keyFields?: false | LeaderboardOrganizationEdgeKeySpecifier | (() => undefined | LeaderboardOrganizationEdgeKeySpecifier), + fields?: LeaderboardOrganizationEdgeFieldPolicy, + }, + LeaderboardRank?: Omit & { + keyFields?: false | LeaderboardRankKeySpecifier | (() => undefined | LeaderboardRankKeySpecifier), + fields?: LeaderboardRankFieldPolicy, + }, + LeaderboardUser?: Omit & { + keyFields?: false | LeaderboardUserKeySpecifier | (() => undefined | LeaderboardUserKeySpecifier), + fields?: LeaderboardUserFieldPolicy, + }, + LeaderboardUserConnection?: Omit & { + keyFields?: false | LeaderboardUserConnectionKeySpecifier | (() => undefined | LeaderboardUserConnectionKeySpecifier), + fields?: LeaderboardUserConnectionFieldPolicy, + }, + LeaderboardUserEdge?: Omit & { + keyFields?: false | LeaderboardUserEdgeKeySpecifier | (() => undefined | LeaderboardUserEdgeKeySpecifier), + fields?: LeaderboardUserEdgeFieldPolicy, + }, LinkableDisease?: Omit & { keyFields?: false | LinkableDiseaseKeySpecifier | (() => undefined | LinkableDiseaseKeySpecifier), fields?: LinkableDiseaseFieldPolicy, @@ -1909,6 +2109,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | LinkableVariantKeySpecifier | (() => undefined | LinkableVariantKeySpecifier), fields?: LinkableVariantFieldPolicy, }, + LinkableVariantType?: Omit & { + keyFields?: false | LinkableVariantTypeKeySpecifier | (() => undefined | LinkableVariantTypeKeySpecifier), + fields?: LinkableVariantTypeFieldPolicy, + }, LinkoutData?: Omit & { keyFields?: false | LinkoutDataKeySpecifier | (() => undefined | LinkoutDataKeySpecifier), fields?: LinkoutDataFieldPolicy, @@ -1957,6 +2161,14 @@ export type StrictTypedTypePolicies = { keyFields?: false | MutationKeySpecifier | (() => undefined | MutationKeySpecifier), fields?: MutationFieldPolicy, }, + MyChemInfo?: Omit & { + keyFields?: false | MyChemInfoKeySpecifier | (() => undefined | MyChemInfoKeySpecifier), + fields?: MyChemInfoFieldPolicy, + }, + MyDiseaseInfo?: Omit & { + keyFields?: false | MyDiseaseInfoKeySpecifier | (() => undefined | MyDiseaseInfoKeySpecifier), + fields?: MyDiseaseInfoFieldPolicy, + }, MyVariantInfo?: Omit & { keyFields?: false | MyVariantInfoKeySpecifier | (() => undefined | MyVariantInfoKeySpecifier), fields?: MyVariantInfoFieldPolicy, @@ -1997,6 +2209,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | OrganizationEdgeKeySpecifier | (() => undefined | OrganizationEdgeKeySpecifier), fields?: OrganizationEdgeFieldPolicy, }, + OrganizationLeaderboards?: Omit & { + keyFields?: false | OrganizationLeaderboardsKeySpecifier | (() => undefined | OrganizationLeaderboardsKeySpecifier), + fields?: OrganizationLeaderboardsFieldPolicy, + }, PageInfo?: Omit & { keyFields?: false | PageInfoKeySpecifier | (() => undefined | PageInfoKeySpecifier), fields?: PageInfoFieldPolicy, @@ -2013,6 +2229,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | QueryKeySpecifier | (() => undefined | QueryKeySpecifier), fields?: QueryFieldPolicy, }, + Ranks?: Omit & { + keyFields?: false | RanksKeySpecifier | (() => undefined | RanksKeySpecifier), + fields?: RanksFieldPolicy, + }, RejectRevisionsPayload?: Omit & { keyFields?: false | RejectRevisionsPayloadKeySpecifier | (() => undefined | RejectRevisionsPayloadKeySpecifier), fields?: RejectRevisionsPayloadFieldPolicy, @@ -2173,6 +2393,10 @@ export type StrictTypedTypePolicies = { keyFields?: false | UserEdgeKeySpecifier | (() => undefined | UserEdgeKeySpecifier), fields?: UserEdgeFieldPolicy, }, + UserLeaderboards?: Omit & { + keyFields?: false | UserLeaderboardsKeySpecifier | (() => undefined | UserLeaderboardsKeySpecifier), + fields?: UserLeaderboardsFieldPolicy, + }, ValidationErrors?: Omit & { keyFields?: false | ValidationErrorsKeySpecifier | (() => undefined | ValidationErrorsKeySpecifier), fields?: ValidationErrorsFieldPolicy, diff --git a/client/src/app/generated/civic.apollo.ts b/client/src/app/generated/civic.apollo.ts index 4451e49a7..e5067484c 100644 --- a/client/src/app/generated/civic.apollo.ts +++ b/client/src/app/generated/civic.apollo.ts @@ -36,7 +36,7 @@ export type AcceptRevisionsInput = { */ organizationId?: InputMaybe; /** The ID of a revision set. */ - revisionSetId?: InputMaybe; + revisionSetId?: InputMaybe; }; /** Autogenerated return type of AcceptRevisions */ @@ -55,6 +55,8 @@ export type AcmgCode = { code: Scalars['String']; description: Scalars['String']; id: Scalars['Int']; + name: Scalars['String']; + tooltip: Scalars['String']; }; /** Autogenerated input type of AddComment */ @@ -282,7 +284,7 @@ export type AssertionRevisionsArgs = { first?: InputMaybe; last?: InputMaybe; originatingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -505,6 +507,7 @@ export type BrowseGene = Flaggable & { geneAliases?: Maybe>; id: Scalars['Int']; link: Scalars['String']; + molecularProfileCount: Scalars['Int']; name: Scalars['String']; therapies?: Maybe>; variantCount: Scalars['Int']; @@ -639,6 +642,7 @@ export type BrowseSource = { journal?: Maybe; link: Scalars['String']; name?: Maybe; + openAccess: Scalars['Boolean']; publicationYear?: Maybe; sourceSuggestionCount: Scalars['Int']; sourceType: SourceSource; @@ -719,6 +723,7 @@ export type BrowseVariant = { link: Scalars['String']; name: Scalars['String']; therapies: Array; + variantTypes: Array; }; /** The connection type for BrowseVariant. */ @@ -840,7 +845,10 @@ export type ClingenCode = { __typename: 'ClingenCode'; code: Scalars['String']; description: Scalars['String']; + exclusive: Scalars['Boolean']; id: Scalars['Int']; + name: Scalars['String']; + tooltip: Scalars['String']; }; export type ClinicalTrial = { @@ -955,7 +963,7 @@ export type CommentTagSegment = { displayName: Scalars['String']; entityId: Scalars['Int']; link: Scalars['String']; - revisionsetId?: Maybe; + revisionSetId?: Maybe; status?: Maybe; tagType: TaggableEntity; }; @@ -1139,6 +1147,7 @@ export type Disease = { doid?: Maybe; id: Scalars['Int']; link: Scalars['String']; + myDiseaseInfo?: Maybe; name: Scalars['String']; }; @@ -1152,8 +1161,9 @@ export type DiseasePopover = { evidenceItemCount: Scalars['Int']; id: Scalars['Int']; link: Scalars['String']; + molecularProfileCount: Scalars['Int']; + myDiseaseInfo?: Maybe; name: Scalars['String']; - variantCount: Scalars['Int']; }; export type DiseasesSort = { @@ -1430,7 +1440,7 @@ export type EvidenceItemRevisionsArgs = { first?: InputMaybe; last?: InputMaybe; originatingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -1574,6 +1584,12 @@ export enum EvidenceType { Prognostic = 'PROGNOSTIC' } +export type FdaCode = { + __typename: 'FdaCode'; + code: Scalars['String']; + description: Scalars['String']; +}; + export type FieldName = { __typename: 'FieldName'; /** The user facing representation of the field name. */ @@ -1796,7 +1812,7 @@ export type GeneRevisionsArgs = { first?: InputMaybe; last?: InputMaybe; originatingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -1867,6 +1883,7 @@ export enum GenesSortColumns { EntrezSymbol = 'entrezSymbol', EvidenceItemCount = 'evidenceItemCount', GeneAlias = 'geneAlias', + MolecularProfileCount = 'molecularProfileCount', TherapyName = 'therapyName', VariantCount = 'variantCount' } @@ -1886,6 +1903,157 @@ export enum IntSearchOperator { Ne = 'NE' } +export type LeaderboardOrganization = { + __typename: 'LeaderboardOrganization'; + actionCount: Scalars['Int']; + description: Scalars['String']; + eventCount: Scalars['Int']; + events: EventConnection; + id: Scalars['Int']; + memberCount: Scalars['Int']; + members: UserConnection; + mostRecentEvent?: Maybe; + name: Scalars['String']; + orgAndSuborgsStatsHash: Stats; + orgStatsHash: Stats; + profileImagePath?: Maybe; + rank: Scalars['Int']; + ranks: Ranks; + subGroups: Array; + url: Scalars['String']; +}; + + +export type LeaderboardOrganizationEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + +export type LeaderboardOrganizationMembersArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + +export type LeaderboardOrganizationProfileImagePathArgs = { + size?: InputMaybe; +}; + +/** The connection type for LeaderboardOrganization. */ +export type LeaderboardOrganizationConnection = { + __typename: 'LeaderboardOrganizationConnection'; + /** A list of edges. */ + edges: Array; + /** A list of nodes. */ + nodes: Array; + /** Total number of pages, based on filtered count and pagesize. */ + pageCount: Scalars['Int']; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** The total number of records in this filtered collection. */ + totalCount: Scalars['Int']; +}; + +/** An edge in a connection. */ +export type LeaderboardOrganizationEdge = { + __typename: 'LeaderboardOrganizationEdge'; + /** A cursor for use in pagination. */ + cursor: Scalars['String']; + /** The item at the end of the edge. */ + node?: Maybe; +}; + +export type LeaderboardRank = { + __typename: 'LeaderboardRank'; + actionCount: Scalars['Int']; + rank: Scalars['Int']; +}; + +export type LeaderboardUser = { + __typename: 'LeaderboardUser'; + actionCount: Scalars['Int']; + areaOfExpertise?: Maybe; + bio?: Maybe; + country?: Maybe; + displayName: Scalars['String']; + email?: Maybe; + events: EventConnection; + facebookProfile?: Maybe; + id: Scalars['Int']; + linkedinProfile?: Maybe; + mostRecentActionTimestamp?: Maybe; + mostRecentConflictOfInterestStatement?: Maybe; + mostRecentEvent?: Maybe; + mostRecentOrganizationId?: Maybe; + name?: Maybe; + /** Filterable list of notifications for the logged in user. */ + notifications?: Maybe; + orcid?: Maybe; + organizations: Array; + profileImagePath?: Maybe; + rank: Scalars['Int']; + ranks: Ranks; + role: UserRole; + statsHash: Stats; + twitterHandle?: Maybe; + url?: Maybe; + username: Scalars['String']; +}; + + +export type LeaderboardUserEventsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; +}; + + +export type LeaderboardUserNotificationsArgs = { + after?: InputMaybe; + before?: InputMaybe; + eventType?: InputMaybe; + first?: InputMaybe; + includeSeen?: InputMaybe; + last?: InputMaybe; + notificationType?: InputMaybe; + subscriptionId?: InputMaybe; +}; + + +export type LeaderboardUserProfileImagePathArgs = { + size?: InputMaybe; +}; + +/** The connection type for LeaderboardUser. */ +export type LeaderboardUserConnection = { + __typename: 'LeaderboardUserConnection'; + /** A list of edges. */ + edges: Array; + /** A list of nodes. */ + nodes: Array; + /** Total number of pages, based on filtered count and pagesize. */ + pageCount: Scalars['Int']; + /** Information to aid in pagination. */ + pageInfo: PageInfo; + /** The total number of records in this filtered collection. */ + totalCount: Scalars['Int']; +}; + +/** An edge in a connection. */ +export type LeaderboardUserEdge = { + __typename: 'LeaderboardUserEdge'; + /** A cursor for use in pagination. */ + cursor: Scalars['String']; + /** The item at the end of the edge. */ + node?: Maybe; +}; + export type LinkableDisease = { __typename: 'LinkableDisease'; id: Scalars['Int']; @@ -1914,6 +2082,13 @@ export type LinkableVariant = { name: Scalars['String']; }; +export type LinkableVariantType = { + __typename: 'LinkableVariantType'; + id: Scalars['Int']; + link: Scalars['String']; + name: Scalars['String']; +}; + export type LinkoutData = { __typename: 'LinkoutData'; currentValue: ModeratedField; @@ -2031,6 +2206,7 @@ export type MolecularProfile = Commentable & EventOriginObject & EventSubject & /** The human readable full name of this profile, including gene, variant names, and boolean operators. */ fullName: Scalars['String']; id: Scalars['Int']; + isComplex: Scalars['Boolean']; lastAcceptedRevisionEvent?: Maybe; lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; @@ -2111,7 +2287,7 @@ export type MolecularProfileRevisionsArgs = { first?: InputMaybe; last?: InputMaybe; originatingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -2444,6 +2620,37 @@ export type MutationUpdateSourceSuggestionStatusArgs = { input: UpdateSourceSuggestionStatusInput; }; +export type MyChemInfo = { + __typename: 'MyChemInfo'; + chebiDefinition?: Maybe; + chebiId?: Maybe; + chemblId?: Maybe; + chemblMoleculeType?: Maybe; + drugbankId?: Maybe; + fdaEpcCodes: Array; + fdaMoaCodes: Array; + firstApproval?: Maybe; + inchikey?: Maybe; + indications: Array; + pharmgkbId?: Maybe; + pubchemCid?: Maybe; + rxnorm?: Maybe; +}; + +export type MyDiseaseInfo = { + __typename: 'MyDiseaseInfo'; + diseaseOntologyExactSynonyms: Array; + diseaseOntologyRelatedSynonyms: Array; + doDef?: Maybe; + doDefCitations: Array; + icd10?: Maybe; + icdo?: Maybe; + mesh?: Maybe; + mondoDef?: Maybe; + ncit: Array; + omim?: Maybe; +}; + export type MyVariantInfo = { __typename: 'MyVariantInfo'; caddConsequence: Array; @@ -2502,7 +2709,7 @@ export type MyVariantInfo = { polyphen2HvarScore: Array; proveanPrediction: Array; proveanScore: Array; - revelScore?: Maybe; + revelScore?: Maybe>; siftPrediction: Array; siftScore: Array; siphy?: Maybe; @@ -2701,6 +2908,7 @@ export type Organization = { orgAndSuborgsStatsHash: Stats; orgStatsHash: Stats; profileImagePath?: Maybe; + ranks: Ranks; subGroups: Array; url: Scalars['String']; }; @@ -2760,6 +2968,54 @@ export type OrganizationFilter = { name?: InputMaybe; }; +export type OrganizationLeaderboards = { + __typename: 'OrganizationLeaderboards'; + commentsLeaderboard: LeaderboardOrganizationConnection; + moderationLeaderboard: LeaderboardOrganizationConnection; + revisionsLeaderboard: LeaderboardOrganizationConnection; + submissionsLeaderboard: LeaderboardOrganizationConnection; +}; + + +export type OrganizationLeaderboardsCommentsLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + window?: InputMaybe; +}; + + +export type OrganizationLeaderboardsModerationLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + window?: InputMaybe; +}; + + +export type OrganizationLeaderboardsRevisionsLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + window?: InputMaybe; +}; + + +export type OrganizationLeaderboardsSubmissionsLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + window?: InputMaybe; +}; + export type OrganizationSort = { /** Available columns for sorting */ column: OrganizationSortColumns; @@ -2787,6 +3043,7 @@ export type PageInfo = { export type Phenotype = { __typename: 'Phenotype'; + description?: Maybe; hpoId: Scalars['String']; id: Scalars['Int']; link: Scalars['String']; @@ -2797,10 +3054,12 @@ export type Phenotype = { export type PhenotypePopover = { __typename: 'PhenotypePopover'; assertionCount: Scalars['Int']; + description?: Maybe; evidenceItemCount: Scalars['Int']; hpoId: Scalars['String']; id: Scalars['Int']; link: Scalars['String']; + molecularProfileCount: Scalars['Int']; name: Scalars['String']; url: Scalars['String']; }; @@ -2821,6 +3080,8 @@ export enum PhenotypeSortColumns { export type Query = { __typename: 'Query'; + /** Find an ACMG code by CIViC ID */ + acmgCode?: Maybe; /** Retrieve ACMG Code options as a typeahead */ acmgCodesTypeahead: Array; /** Find an assertion by CIViC ID */ @@ -2833,6 +3094,8 @@ export type Query = { browseSources: BrowseSourceConnection; browseVariantGroups: BrowseVariantGroupConnection; browseVariants: BrowseVariantConnection; + /** Find a ClinGen code by CIViC ID */ + clingenCode?: Maybe; /** Retrieve Clingen Code options as a typeahead */ clingenCodesTypeahead: Array; /** Find a clinical trial by CIViC ID */ @@ -2865,7 +3128,7 @@ export type Query = { flag?: Maybe; /** List and filter flags. */ flags: FlagConnection; - /** Find a gene by CIViC ID */ + /** Find a single gene by CIViC ID or Entrez symbol */ gene?: Maybe; /** Retrieve gene typeahead fields for a search term. */ geneTypeahead: Array; @@ -2875,12 +3138,15 @@ export type Query = { molecularProfile?: Maybe; /** List and filter molecular profiles. */ molecularProfiles: MolecularProfileConnection; + /** Find a NCCN Guideline by CIViC ID */ + nccnGuideline?: Maybe; /** Retrieve NCCN Guideline options as a typeahead */ nccnGuidelinesTypeahead: Array; /** List and filter notifications for the logged in user. */ notifications: NotificationConnection; /** Find an organization by CIViC ID */ organization?: Maybe; + organizationLeaderboards: OrganizationLeaderboards; /** List and filter organizations. */ organizations: OrganizationConnection; /** Find a phenotype by CIViC ID */ @@ -2923,6 +3189,7 @@ export type Query = { therapyTypeahead: Array; timepointStats: CivicTimepointStats; user?: Maybe; + userLeaderboards: UserLeaderboards; /** Retrieve user type typeahead fields for a search term. */ userTypeahead: Array; /** List and filter users. */ @@ -2948,6 +3215,11 @@ export type Query = { }; +export type QueryAcmgCodeArgs = { + id: Scalars['Int']; +}; + + export type QueryAcmgCodesTypeaheadArgs = { queryTerm: Scalars['String']; }; @@ -3039,6 +3311,7 @@ export type QueryBrowseSourcesArgs = { journal?: InputMaybe; last?: InputMaybe; name?: InputMaybe; + openAccess?: InputMaybe; sortBy?: InputMaybe; sourceType?: InputMaybe; year?: InputMaybe; @@ -3063,6 +3336,7 @@ export type QueryBrowseVariantsArgs = { diseaseName?: InputMaybe; entrezSymbol?: InputMaybe; first?: InputMaybe; + hasNoVariantType?: InputMaybe; last?: InputMaybe; sortBy?: InputMaybe; therapyName?: InputMaybe; @@ -3070,6 +3344,12 @@ export type QueryBrowseVariantsArgs = { variantGroupId?: InputMaybe; variantName?: InputMaybe; variantTypeId?: InputMaybe; + variantTypeName?: InputMaybe; +}; + + +export type QueryClingenCodeArgs = { + id: Scalars['Int']; }; @@ -3209,7 +3489,8 @@ export type QueryFlagsArgs = { export type QueryGeneArgs = { - id: Scalars['Int']; + entrezSymbol?: InputMaybe; + id?: InputMaybe; }; @@ -3233,6 +3514,7 @@ export type QueryMolecularProfileArgs = { export type QueryMolecularProfilesArgs = { after?: InputMaybe; + alleleRegistryId?: InputMaybe; before?: InputMaybe; evidenceStatusFilter?: InputMaybe; first?: InputMaybe; @@ -3243,6 +3525,11 @@ export type QueryMolecularProfilesArgs = { }; +export type QueryNccnGuidelineArgs = { + id: Scalars['Int']; +}; + + export type QueryNccnGuidelinesTypeaheadArgs = { queryTerm: Scalars['String']; }; @@ -3335,7 +3622,7 @@ export type QueryRevisionsArgs = { last?: InputMaybe; originatingUserId?: InputMaybe; resolvingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; subject?: InputMaybe; @@ -3500,6 +3787,7 @@ export type QueryVariantTypesArgs = { after?: InputMaybe; before?: InputMaybe; first?: InputMaybe; + geneId?: InputMaybe; id?: InputMaybe; last?: InputMaybe; name?: InputMaybe; @@ -3510,12 +3798,23 @@ export type QueryVariantTypesArgs = { export type QueryVariantsArgs = { after?: InputMaybe; + alleleRegistryId?: InputMaybe; before?: InputMaybe; first?: InputMaybe; geneId?: InputMaybe; + hasNoVariantType?: InputMaybe; last?: InputMaybe; name?: InputMaybe; sortBy?: InputMaybe; + variantTypeIds?: InputMaybe>; +}; + +export type Ranks = { + __typename: 'Ranks'; + commentsRank?: Maybe; + moderationRank?: Maybe; + revisionsRank?: Maybe; + submissionsRank?: Maybe; }; export enum ReadStatus { @@ -3545,7 +3844,7 @@ export type RejectRevisionsInput = { */ organizationId?: InputMaybe; /** The ID of a revision set. */ - revisionSetId?: InputMaybe; + revisionSetId?: InputMaybe; }; /** Autogenerated return type of RejectRevisions */ @@ -3602,7 +3901,7 @@ export type Revision = Commentable & EventOriginObject & EventSubject & { resolvedAt?: Maybe; resolver?: Maybe; resolvingEvent?: Maybe; - revisionsetId: Scalars['String']; + revisionSetId: Scalars['Int']; revisor?: Maybe; status: RevisionStatus; subject: EventSubject; @@ -3679,7 +3978,7 @@ export type RevisionResult = { /** Was this Revision newly created as a result of this request? */ newlyCreated: Scalars['Boolean']; /** An identifier that can be used to group Revisions proposed at the same time. */ - revisionsetId: Scalars['String']; + revisionSetId: Scalars['Int']; }; export enum RevisionStatus { @@ -3742,6 +4041,7 @@ export type Source = Commentable & EventSubject & { lastCommentEvent?: Maybe; link: Scalars['String']; name: Scalars['String']; + openAccess: Scalars['Boolean']; pmcId?: Maybe; publicationDate?: Maybe; publicationDay?: Maybe; @@ -3797,6 +4097,7 @@ export type SourcePopover = Commentable & EventSubject & { lastCommentEvent?: Maybe; link: Scalars['String']; name: Scalars['String']; + openAccess: Scalars['Boolean']; pmcId?: Maybe; publicationDate?: Maybe; publicationDay?: Maybe; @@ -4029,7 +4330,7 @@ export type SubmitVariantGroupInput = { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe; /** A description of the variant group. */ - description: Scalars['String']; + description?: InputMaybe; /** The name of the disease. */ name: Scalars['String']; /** @@ -4406,6 +4707,7 @@ export type Therapy = { __typename: 'Therapy'; id: Scalars['Int']; link: Scalars['String']; + myChemInfo?: Maybe; name: Scalars['String']; ncitId?: Maybe; therapyAliases: Array; @@ -4424,6 +4726,8 @@ export type TherapyPopover = { evidenceItemCount: Scalars['Int']; id: Scalars['Int']; link: Scalars['String']; + molecularProfileCount: Scalars['Int']; + myChemInfo?: Maybe; name: Scalars['String']; ncitId?: Maybe; therapyAliases: Array; @@ -4452,6 +4756,13 @@ export type TimePointCounts = { newThisYear: Scalars['Int']; }; +export enum TimeWindow { + AllTime = 'ALL_TIME', + LastMonth = 'LAST_MONTH', + LastWeek = 'LAST_WEEK', + LastYear = 'LAST_YEAR' +} + /** Autogenerated input type of Unsubscribe */ export type UnsubscribeInput = { /** A unique identifier for the client performing the mutation. */ @@ -4553,6 +4864,7 @@ export type User = { mostRecentActionTimestamp?: Maybe; mostRecentConflictOfInterestStatement?: Maybe; mostRecentEvent?: Maybe; + mostRecentOrg?: Maybe; mostRecentOrganizationId?: Maybe; name?: Maybe; /** Filterable list of notifications for the logged in user. */ @@ -4560,6 +4872,7 @@ export type User = { orcid?: Maybe; organizations: Array; profileImagePath?: Maybe; + ranks: Ranks; role: UserRole; statsHash: Stats; twitterHandle?: Maybe; @@ -4616,6 +4929,58 @@ export type UserEdge = { node?: Maybe; }; +export type UserLeaderboards = { + __typename: 'UserLeaderboards'; + commentsLeaderboard: LeaderboardUserConnection; + moderationLeaderboard: LeaderboardUserConnection; + revisionsLeaderboard: LeaderboardUserConnection; + submissionsLeaderboard: LeaderboardUserConnection; +}; + + +export type UserLeaderboardsCommentsLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + role?: InputMaybe; + window?: InputMaybe; +}; + + +export type UserLeaderboardsModerationLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + role?: InputMaybe; + window?: InputMaybe; +}; + + +export type UserLeaderboardsRevisionsLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + role?: InputMaybe; + window?: InputMaybe; +}; + + +export type UserLeaderboardsSubmissionsLeaderboardArgs = { + after?: InputMaybe; + before?: InputMaybe; + direction?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + role?: InputMaybe; + window?: InputMaybe; +}; + export enum UserRole { Admin = 'ADMIN', Curator = 'CURATOR', @@ -4665,6 +5030,7 @@ export type Variant = Commentable & EventOriginObject & EventSubject & Flaggable lastCommentEvent?: Maybe; lastSubmittedRevisionEvent?: Maybe; link: Scalars['String']; + maneSelectTranscript?: Maybe; molecularProfiles: MolecularProfileConnection; myVariantInfo?: Maybe; name: Scalars['String']; @@ -4735,7 +5101,7 @@ export type VariantRevisionsArgs = { first?: InputMaybe; last?: InputMaybe; originatingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -4873,7 +5239,7 @@ export type VariantGroupRevisionsArgs = { first?: InputMaybe; last?: InputMaybe; originatingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -4914,7 +5280,7 @@ export type VariantGroupEdge = { /** Fields on a VariantGroup that curators may propose revisions to. */ export type VariantGroupFields = { /** The VariantGroups's description/summary text. */ - description: Scalars['String']; + description: NullableStringInput; /** The VariantGroups's name. */ name: Scalars['String']; /** Source IDs cited by the VariantGroup's summary. */ @@ -4952,8 +5318,8 @@ export enum VariantMenuSortColumns { } export enum VariantOrigin { + Combined = 'COMBINED', CommonGermline = 'COMMON_GERMLINE', - Mixed = 'MIXED', Na = 'NA', RareGermline = 'RARE_GERMLINE', Somatic = 'SOMATIC', @@ -5025,7 +5391,7 @@ export type WithRevisionsRevisionsArgs = { first?: InputMaybe; last?: InputMaybe; originatingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; sortBy?: InputMaybe; status?: InputMaybe; }; @@ -5108,25 +5474,25 @@ export type CommentListQueryVariables = Exact<{ }>; -export type CommentListQuery = { __typename: 'Query', comments: { __typename: 'CommentConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean }, uniqueCommenters: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, mentionedUsers: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, mentionedRoles: Array<{ __typename: 'CommentTagSegment', displayName: string, entityId: number, tagType: TaggableEntity, link: string }>, mentionedEntities: Array<{ __typename: 'CommentTagSegment', displayName: string, entityId: number, tagType: TaggableEntity, link: string }>, edges: Array<{ __typename: 'CommentEdge', cursor: string, node?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionsetId?: string | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }> } }; +export type CommentListQuery = { __typename: 'Query', comments: { __typename: 'CommentConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean }, uniqueCommenters: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, mentionedUsers: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, mentionedRoles: Array<{ __typename: 'CommentTagSegment', displayName: string, entityId: number, tagType: TaggableEntity, link: string }>, mentionedEntities: Array<{ __typename: 'CommentTagSegment', displayName: string, entityId: number, tagType: TaggableEntity, link: string }>, edges: Array<{ __typename: 'CommentEdge', cursor: string, node?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }> } }; -export type CommentListNodeFragment = { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionsetId?: string | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> }; +export type CommentListNodeFragment = { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> }; export type CommentPopoverQueryVariables = Exact<{ commentId: Scalars['Int']; }>; -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, profileImagePath?: string | undefined }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string } } | undefined }; +export type CommentPopoverQuery = { __typename: 'Query', comment?: { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string } } | undefined }; -export type CommentPopoverFragment = { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string } }; +export type CommentPopoverFragment = { __typename: 'Comment', id: number, name: string, createdAt: any, title?: string | undefined, comment: string, commenter: { __typename: 'User', id: number, displayName: string, role: UserRole }, commentable: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, name: string, link: string } | { __typename: 'Source', id: number, name: string, link: string } | { __typename: 'SourcePopover', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | { __typename: 'VariantGroup', id: number, name: string, link: string } }; export type DiseasePopoverQueryVariables = Exact<{ diseaseId: Scalars['Int']; }>; -export type DiseasePopoverQuery = { __typename: 'Query', diseasePopover?: { __typename: 'DiseasePopover', id: number, name: string, displayName: string, doid?: string | undefined, diseaseUrl?: string | undefined, diseaseAliases: Array, assertionCount: number, evidenceItemCount: number, variantCount: number, link: string } | undefined }; +export type DiseasePopoverQuery = { __typename: 'Query', diseasePopover?: { __typename: 'DiseasePopover', id: number, name: string, displayName: string, doid?: string | undefined, diseaseUrl?: string | undefined, diseaseAliases: Array, assertionCount: number, evidenceItemCount: number, molecularProfileCount: number, link: string } | undefined }; export type BrowseDiseasesQueryVariables = Exact<{ first?: InputMaybe; @@ -5175,11 +5541,11 @@ export type EventFeedQueryVariables = Exact<{ }>; -export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionsetId: string, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionsetId: string, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; +export type EventFeedQuery = { __typename: 'Query', events: { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> } }; -export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionsetId: string, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionsetId: string, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; +export type EventFeedFragment = { __typename: 'EventConnection', eventTypes?: Array, unfilteredCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean }, uniqueParticipants?: Array<{ __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined }>, participatingOrganizations?: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, edges: Array<{ __typename: 'EventEdge', cursor: string, node?: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionSetId: number, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined } | undefined }> }; -export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionsetId: string, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionsetId: string, name: string, link: string } | { __typename: 'SourceSuggestion', id: number, name: string, link: string } | { __typename: 'Variant', id: number, name: string, link: string } | undefined }; +export type EventFeedNodeFragment = { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', 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']; @@ -5275,9 +5641,9 @@ export type BrowseGenesQueryVariables = Exact<{ }>; -export type BrowseGenesQuery = { __typename: 'Query', browseGenes: { __typename: 'BrowseGeneConnection', totalCount: number, filteredCount: number, pageCount: number, edges: Array<{ __typename: 'BrowseGeneEdge', cursor: string, node?: { __typename: 'BrowseGene', id: number, entrezId: number, name: string, link: string, flagged: boolean, geneAliases?: Array | undefined, variantCount: number, evidenceItemCount: number, assertionCount: number, diseases?: Array<{ __typename: 'Disease', name: string, id: number, link: string }> | undefined, therapies?: Array<{ __typename: 'Therapy', name: string, id: number, link: string }> | undefined } | undefined }>, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean } } }; +export type BrowseGenesQuery = { __typename: 'Query', browseGenes: { __typename: 'BrowseGeneConnection', totalCount: number, filteredCount: number, pageCount: number, edges: Array<{ __typename: 'BrowseGeneEdge', cursor: string, node?: { __typename: 'BrowseGene', id: number, entrezId: number, name: string, link: string, flagged: boolean, geneAliases?: Array | undefined, variantCount: number, evidenceItemCount: number, assertionCount: number, molecularProfileCount: number, diseases?: Array<{ __typename: 'Disease', name: string, id: number, link: string }> | undefined, therapies?: Array<{ __typename: 'Therapy', name: string, id: number, link: string }> | undefined } | undefined }>, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean } } }; -export type BrowseGenesFieldsFragment = { __typename: 'BrowseGene', id: number, entrezId: number, name: string, link: string, flagged: boolean, geneAliases?: Array | undefined, variantCount: number, evidenceItemCount: number, assertionCount: number, diseases?: Array<{ __typename: 'Disease', name: string, id: number, link: string }> | undefined, therapies?: Array<{ __typename: 'Therapy', name: string, id: number, link: string }> | undefined }; +export type BrowseGenesFieldsFragment = { __typename: 'BrowseGene', id: number, entrezId: number, name: string, link: string, flagged: boolean, geneAliases?: Array | undefined, variantCount: number, evidenceItemCount: number, assertionCount: number, molecularProfileCount: number, diseases?: Array<{ __typename: 'Disease', name: string, id: number, link: string }> | undefined, therapies?: Array<{ __typename: 'Therapy', name: string, id: number, link: string }> | undefined }; export type QuicksearchQueryVariables = Exact<{ query: Scalars['String']; @@ -5334,6 +5700,52 @@ export type MolecularProfileMenuQuery = { __typename: 'Query', molecularProfiles export type MenuMolecularProfileFragment = { __typename: 'MolecularProfile', id: number, name: string, link: string, flagged: boolean }; +export type LeaderboardOrganizationFieldsFragment = { __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined }; + +export type OrganizationCommentsLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type OrganizationCommentsLeaderboardQuery = { __typename: 'Query', organizationLeaderboards: { __typename: 'OrganizationLeaderboards', commentsLeaderboard: { __typename: 'LeaderboardOrganizationConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardOrganizationEdge', cursor: string, node?: { __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined }> } } }; + +export type OrganizationRevisionsLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type OrganizationRevisionsLeaderboardQuery = { __typename: 'Query', organizationLeaderboards: { __typename: 'OrganizationLeaderboards', revisionsLeaderboard: { __typename: 'LeaderboardOrganizationConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardOrganizationEdge', cursor: string, node?: { __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined }> } } }; + +export type OrganizationModerationLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type OrganizationModerationLeaderboardQuery = { __typename: 'Query', organizationLeaderboards: { __typename: 'OrganizationLeaderboards', moderationLeaderboard: { __typename: 'LeaderboardOrganizationConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardOrganizationEdge', cursor: string, node?: { __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined }> } } }; + +export type OrganizationSubmissionsLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type OrganizationSubmissionsLeaderboardQuery = { __typename: 'Query', organizationLeaderboards: { __typename: 'OrganizationLeaderboards', submissionsLeaderboard: { __typename: 'LeaderboardOrganizationConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardOrganizationEdge', cursor: string, node?: { __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardOrganization', id: number, name: string, actionCount: number, rank: number, profileImagePath?: string | undefined }> } } }; + export type OrgPopoverQueryVariables = Exact<{ orgId: Scalars['Int']; }>; @@ -5363,7 +5775,7 @@ export type PhenotypePopoverQueryVariables = Exact<{ }>; -export type PhenotypePopoverQuery = { __typename: 'Query', phenotypePopover?: { __typename: 'PhenotypePopover', id: number, name: string, url: string, hpoId: string, assertionCount: number, evidenceItemCount: number, link: string } | undefined }; +export type PhenotypePopoverQuery = { __typename: 'Query', phenotypePopover?: { __typename: 'PhenotypePopover', id: number, name: string, url: string, hpoId: string, assertionCount: number, evidenceItemCount: number, molecularProfileCount: number, link: string } | undefined }; export type PhenotypesBrowseQueryVariables = Exact<{ first?: InputMaybe; @@ -5408,9 +5820,9 @@ export type RevisionPopoverQueryVariables = Exact<{ }>; -export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', 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', id: number, link: string, name: string } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } } | undefined }; +export type RevisionPopoverQuery = { __typename: 'Query', revision?: { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', 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', id: number, link: string, name: string } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string }, creationComment?: { __typename: 'Comment', comment: string } | undefined } | undefined }; -export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', 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', id: number, link: string, name: string } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string } }; +export type RevisionPopoverFragment = { __typename: 'Revision', id: number, name: string, link: string, status: RevisionStatus, createdAt: any, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, subject: { __typename: 'Assertion', id: number, link: string, name: string } | { __typename: 'EvidenceItem', id: number, link: string, name: string } | { __typename: 'Gene', id: number, link: string, name: string } | { __typename: 'MolecularProfile', id: number, link: string, name: string } | { __typename: 'Revision', 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', id: number, link: string, name: string } | { __typename: 'VariantGroup', id: number, link: string, name: string }, linkoutData: { __typename: 'LinkoutData', name: string }, creationComment?: { __typename: 'Comment', comment: string } | undefined }; export type RevisionsQueryVariables = Exact<{ subject?: InputMaybe; @@ -5421,14 +5833,14 @@ export type RevisionsQueryVariables = Exact<{ fieldName?: InputMaybe; originatingUserId?: InputMaybe; resolvingUserId?: InputMaybe; - revisionsetId?: InputMaybe; + revisionSetId?: InputMaybe; status?: InputMaybe; }>; -export type RevisionsQuery = { __typename: 'Query', revisions: { __typename: 'RevisionConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, uniqueRevisors: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, revisedFieldNames: Array<{ __typename: 'FieldName', name: string, displayName: string }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | undefined, startCursor?: string | undefined }, edges: Array<{ __typename: 'RevisionEdge', node?: { __typename: 'Revision', id: number, revisionsetId: string, createdAt: any, resolvedAt?: any | undefined, fieldName: string, currentValue?: any | undefined, suggestedValue?: any | undefined, status: RevisionStatus, linkoutData: { __typename: 'LinkoutData', name: string, diffValue: { __typename: 'ObjectFieldDiff', currentObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, addedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, removedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, keptObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, suggestedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }> } | { __typename: 'ScalarFieldDiff', left: string, right: string } }, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, resolver?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, creationComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, resolutionComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined } | undefined }> } }; +export type RevisionsQuery = { __typename: 'Query', revisions: { __typename: 'RevisionConnection', totalCount: number, unfilteredCountForSubject?: number | undefined, uniqueRevisors: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, uniqueResolvers: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, revisedFieldNames: Array<{ __typename: 'FieldName', name: string, displayName: string }>, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, endCursor?: string | undefined, startCursor?: string | undefined }, edges: Array<{ __typename: 'RevisionEdge', node?: { __typename: 'Revision', id: number, revisionSetId: number, createdAt: any, resolvedAt?: any | undefined, fieldName: string, currentValue?: any | undefined, suggestedValue?: any | undefined, status: RevisionStatus, linkoutData: { __typename: 'LinkoutData', name: string, diffValue: { __typename: 'ObjectFieldDiff', currentObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, addedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, removedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, keptObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, suggestedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }> } | { __typename: 'ScalarFieldDiff', left: string, right: string } }, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, resolver?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, creationComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, resolutionComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined } | undefined }> } }; -export type RevisionFragment = { __typename: 'Revision', id: number, revisionsetId: string, createdAt: any, resolvedAt?: any | undefined, fieldName: string, currentValue?: any | undefined, suggestedValue?: any | undefined, status: RevisionStatus, linkoutData: { __typename: 'LinkoutData', name: string, diffValue: { __typename: 'ObjectFieldDiff', currentObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, addedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, removedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, keptObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, suggestedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }> } | { __typename: 'ScalarFieldDiff', left: string, right: string } }, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, resolver?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, creationComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, resolutionComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }; +export type RevisionFragment = { __typename: 'Revision', id: number, revisionSetId: number, createdAt: any, resolvedAt?: any | undefined, fieldName: string, currentValue?: any | undefined, suggestedValue?: any | undefined, status: RevisionStatus, linkoutData: { __typename: 'LinkoutData', name: string, diffValue: { __typename: 'ObjectFieldDiff', currentObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, addedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, removedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, keptObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }>, suggestedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string, link?: string | undefined, deleted: boolean }> } | { __typename: 'ScalarFieldDiff', left: string, right: string } }, revisor?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, resolver?: { __typename: 'User', id: number, displayName: string, role: UserRole } | undefined, creationComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, resolutionComment?: { __typename: 'Comment', parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, link: string } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }; export type ContributorAvatarsQueryVariables = Exact<{ subscribable: SubscribableInput; @@ -5504,9 +5916,9 @@ export type SourcePopoverQueryVariables = Exact<{ }>; -export type SourcePopoverQuery = { __typename: 'Query', sourcePopover?: { __typename: 'SourcePopover', id: number, name: string, evidenceItemCount: number, citation?: string | undefined, citationId: string, displayType: string, sourceUrl?: string | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', id: number, nctId: string, link: string }> | undefined } | undefined }; +export type SourcePopoverQuery = { __typename: 'Query', sourcePopover?: { __typename: 'SourcePopover', id: number, title?: string | undefined, fullJournalTitle?: string | undefined, evidenceItemCount: number, citation?: string | undefined, citationId: string, displayType: string, sourceUrl?: string | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', id: number, nctId: string, link: string }> | undefined } | undefined }; -export type SourcePopoverFragment = { __typename: 'SourcePopover', id: number, name: string, evidenceItemCount: number, citation?: string | undefined, citationId: string, displayType: string, sourceUrl?: string | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', id: number, nctId: string, link: string }> | undefined }; +export type SourcePopoverFragment = { __typename: 'SourcePopover', id: number, title?: string | undefined, fullJournalTitle?: string | undefined, evidenceItemCount: number, citation?: string | undefined, citationId: string, displayType: string, sourceUrl?: string | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', id: number, nctId: string, link: string }> | undefined }; export type BrowseSourcesQueryVariables = Exact<{ first?: InputMaybe; @@ -5521,19 +5933,20 @@ export type BrowseSourcesQueryVariables = Exact<{ author?: InputMaybe; journal?: InputMaybe; clinicalTrialId?: InputMaybe; + openAccess?: InputMaybe; }>; -export type BrowseSourcesQuery = { __typename: 'Query', browseSources: { __typename: 'BrowseSourceConnection', totalCount: number, filteredCount: number, pageCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, startCursor?: string | undefined, hasPreviousPage: boolean }, edges: Array<{ __typename: 'BrowseSourceEdge', cursor: string, node?: { __typename: 'BrowseSource', id: number, authors: Array, citationId: number, evidenceItemCount: number, sourceSuggestionCount: number, journal?: string | undefined, name?: string | undefined, publicationYear?: number | undefined, sourceType: SourceSource, citation: string, displayType: string, link: string } | undefined }> } }; +export type BrowseSourcesQuery = { __typename: 'Query', browseSources: { __typename: 'BrowseSourceConnection', totalCount: number, filteredCount: number, pageCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, startCursor?: string | undefined, hasPreviousPage: boolean }, edges: Array<{ __typename: 'BrowseSourceEdge', cursor: string, node?: { __typename: 'BrowseSource', id: number, authors: Array, citationId: number, evidenceItemCount: number, sourceSuggestionCount: number, journal?: string | undefined, name?: string | undefined, publicationYear?: number | undefined, sourceType: SourceSource, citation: string, displayType: string, link: string, openAccess: boolean } | undefined }> } }; -export type BrowseSourceRowFieldsFragment = { __typename: 'BrowseSource', id: number, authors: Array, citationId: number, evidenceItemCount: number, sourceSuggestionCount: number, journal?: string | undefined, name?: string | undefined, publicationYear?: number | undefined, sourceType: SourceSource, citation: string, displayType: string, link: string }; +export type BrowseSourceRowFieldsFragment = { __typename: 'BrowseSource', id: number, authors: Array, citationId: number, evidenceItemCount: number, sourceSuggestionCount: number, journal?: string | undefined, name?: string | undefined, publicationYear?: number | undefined, sourceType: SourceSource, citation: string, displayType: string, link: string, openAccess: boolean }; export type TherapyPopoverQueryVariables = Exact<{ therapyId: Scalars['Int']; }>; -export type TherapyPopoverQuery = { __typename: 'Query', therapyPopover?: { __typename: 'TherapyPopover', id: number, name: string, therapyUrl?: string | undefined, ncitId?: string | undefined, therapyAliases: Array, assertionCount: number, evidenceItemCount: number, link: string } | undefined }; +export type TherapyPopoverQuery = { __typename: 'Query', therapyPopover?: { __typename: 'TherapyPopover', id: number, name: string, therapyUrl?: string | undefined, ncitId?: string | undefined, therapyAliases: Array, assertionCount: number, evidenceItemCount: number, molecularProfileCount: number, link: string } | undefined }; export type TherapiesBrowseQueryVariables = Exact<{ first?: InputMaybe; @@ -5550,9 +5963,55 @@ export type TherapiesBrowseQuery = { __typename: 'Query', therapies: { __typenam export type TherapyBrowseTableRowFieldsFragment = { __typename: 'BrowseTherapy', id: number, name: string, ncitId?: string | undefined, therapyUrl?: string | undefined, assertionCount: number, evidenceCount: number, link: string }; -export type UserPopoverQueryVariables = Exact<{ - userId: Scalars['Int']; -}>; +export type LeaderboardUserFieldsFragment = { __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined }; + +export type UserCommentsLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type UserCommentsLeaderboardQuery = { __typename: 'Query', userLeaderboards: { __typename: 'UserLeaderboards', commentsLeaderboard: { __typename: 'LeaderboardUserConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardUserEdge', cursor: string, node?: { __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined }> } } }; + +export type UserRevisionsLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type UserRevisionsLeaderboardQuery = { __typename: 'Query', userLeaderboards: { __typename: 'UserLeaderboards', revisionsLeaderboard: { __typename: 'LeaderboardUserConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardUserEdge', cursor: string, node?: { __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined }> } } }; + +export type UserModerationLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type UserModerationLeaderboardQuery = { __typename: 'Query', userLeaderboards: { __typename: 'UserLeaderboards', moderationLeaderboard: { __typename: 'LeaderboardUserConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardUserEdge', cursor: string, node?: { __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined }> } } }; + +export type UserSubmissionsLeaderboardQueryVariables = Exact<{ + window?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type UserSubmissionsLeaderboardQuery = { __typename: 'Query', userLeaderboards: { __typename: 'UserLeaderboards', submissionsLeaderboard: { __typename: 'LeaderboardUserConnection', pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'LeaderboardUserEdge', cursor: string, node?: { __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined } | undefined }>, nodes: Array<{ __typename: 'LeaderboardUser', id: number, name?: string | undefined, displayName: string, actionCount: number, role: UserRole, rank: number, profileImagePath?: string | undefined }> } } }; + +export type UserPopoverQueryVariables = Exact<{ + userId: Scalars['Int']; +}>; export type UserPopoverQuery = { __typename: 'Query', user?: { __typename: 'User', id: number, profileImagePath?: string | undefined, displayName: string, bio?: string | undefined, role: UserRole, organizations: Array<{ __typename: 'Organization', id: number, name: string }> } | undefined }; @@ -5571,9 +6030,9 @@ export type UsersBrowseQueryVariables = Exact<{ }>; -export type UsersBrowseQuery = { __typename: 'Query', users: { __typename: 'UserConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'UserEdge', cursor: string, node?: { __typename: 'User', id: number, name?: string | undefined, displayName: string, role: UserRole, mostRecentActionTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, statsHash: { __typename: 'Stats', submittedEvidenceItems: number, revisions: number } } | undefined }> } }; +export type UsersBrowseQuery = { __typename: 'Query', users: { __typename: 'UserConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined }, edges: Array<{ __typename: 'UserEdge', cursor: string, node?: { __typename: 'User', id: number, name?: string | undefined, displayName: string, role: UserRole, profileImagePath?: string | undefined, mostRecentActionTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, statsHash: { __typename: 'Stats', submittedEvidenceItems: number, revisions: number } } | undefined }> } }; -export type UserBrowseTableRowFieldsFragment = { __typename: 'User', id: number, name?: string | undefined, displayName: string, role: UserRole, mostRecentActionTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, statsHash: { __typename: 'Stats', submittedEvidenceItems: number, revisions: number } }; +export type UserBrowseTableRowFieldsFragment = { __typename: 'User', id: number, name?: string | undefined, displayName: string, role: UserRole, profileImagePath?: string | undefined, mostRecentActionTimestamp?: any | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, statsHash: { __typename: 'Stats', submittedEvidenceItems: number, revisions: number } }; export type VariantGroupPopoverQueryVariables = Exact<{ variantGroupId: Scalars['Int']; @@ -5645,6 +6104,8 @@ export type VariantPopoverFieldsFragment = { __typename: 'Variant', id: number, export type VariantsMenuQueryVariables = Exact<{ geneId?: InputMaybe; variantName?: InputMaybe; + variantTypeIds?: InputMaybe | Scalars['Int']>; + hasNoVariantType?: InputMaybe; first?: InputMaybe; last?: InputMaybe; before?: InputMaybe; @@ -5655,6 +6116,15 @@ export type VariantsMenuQueryVariables = Exact<{ export type VariantsMenuQuery = { __typename: 'Query', variants: { __typename: 'VariantConnection', totalCount: number, pageInfo: { __typename: 'PageInfo', startCursor?: string | undefined, endCursor?: string | undefined, hasPreviousPage: boolean, hasNextPage: boolean }, edges: Array<{ __typename: 'VariantEdge', cursor: string, node?: { __typename: 'Variant', id: number, name: string, link: string, flagged: boolean } | undefined }> } }; +export type VariantTypesForGeneQueryVariables = Exact<{ + geneId?: InputMaybe; +}>; + + +export type VariantTypesForGeneQuery = { __typename: 'Query', variantTypes: { __typename: 'BrowseVariantTypeConnection', edges: Array<{ __typename: 'BrowseVariantTypeEdge', node?: { __typename: 'BrowseVariantType', id: number, name: string, link: string } | undefined }> } }; + +export type MenuVariantTypeFragment = { __typename: 'BrowseVariantType', id: number, name: string, link: string }; + export type MenuVariantFragment = { __typename: 'Variant', id: number, name: string, link: string, flagged: boolean }; export type BrowseVariantsQueryVariables = Exact<{ @@ -5665,6 +6135,8 @@ export type BrowseVariantsQueryVariables = Exact<{ variantAlias?: InputMaybe; variantTypeId?: InputMaybe; variantGroupId?: InputMaybe; + variantTypeName?: InputMaybe; + hasNoVariantType?: InputMaybe; sortBy?: InputMaybe; first?: InputMaybe; last?: InputMaybe; @@ -5673,9 +6145,9 @@ export type BrowseVariantsQueryVariables = Exact<{ }>; -export type BrowseVariantsQuery = { __typename: 'Query', browseVariants: { __typename: 'BrowseVariantConnection', totalCount: number, filteredCount: number, pageCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, startCursor?: string | undefined, hasPreviousPage: boolean }, edges: Array<{ __typename: 'BrowseVariantEdge', cursor: string, node?: { __typename: 'BrowseVariant', id: number, name: string, link: string, geneId: number, geneName: string, geneLink: string, diseases: Array<{ __typename: 'Disease', id: number, name: string, link: string }>, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, aliases: Array<{ __typename: 'VariantAlias', name: string }> } | undefined }> } }; +export type BrowseVariantsQuery = { __typename: 'Query', browseVariants: { __typename: 'BrowseVariantConnection', totalCount: number, filteredCount: number, pageCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, startCursor?: string | undefined, hasPreviousPage: boolean }, edges: Array<{ __typename: 'BrowseVariantEdge', cursor: string, node?: { __typename: 'BrowseVariant', id: number, name: string, link: string, geneId: number, geneName: string, geneLink: string, diseases: Array<{ __typename: 'Disease', id: number, name: string, link: string }>, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, aliases: Array<{ __typename: 'VariantAlias', name: string }>, variantTypes: Array<{ __typename: 'LinkableVariantType', id: number, name: string, link: string }> } | undefined }> } }; -export type BrowseVariantsFieldsFragment = { __typename: 'BrowseVariant', id: number, name: string, link: string, geneId: number, geneName: string, geneLink: string, diseases: Array<{ __typename: 'Disease', id: number, name: string, link: string }>, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, aliases: Array<{ __typename: 'VariantAlias', name: string }> }; +export type BrowseVariantsFieldsFragment = { __typename: 'BrowseVariant', id: number, name: string, link: string, geneId: number, geneName: string, geneLink: string, diseases: Array<{ __typename: 'Disease', id: number, name: string, link: string }>, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, aliases: Array<{ __typename: 'VariantAlias', name: string }>, variantTypes: Array<{ __typename: 'LinkableVariantType', id: number, name: string, link: string }> }; export type ViewerBaseQueryVariables = Exact<{ [key: string]: never; }>; @@ -5687,35 +6159,12 @@ export type ViewerNotificationCountQueryVariables = Exact<{ [key: string]: never export type ViewerNotificationCountQuery = { __typename: 'Query', notifications: { __typename: 'NotificationConnection', unreadCount: number } }; -export type AssertionRevisableFieldsQueryVariables = Exact<{ - assertionId: Scalars['Int']; -}>; - - -export type AssertionRevisableFieldsQuery = { __typename: 'Query', assertion?: { __typename: 'Assertion', id: number, summary: string, description: string, variantOrigin: VariantOrigin, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, assertionDirection: AssertionDirection, assertionType: AssertionType, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, fdaCompanionTest?: boolean | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, disease?: { __typename: 'Disease', id: number, doid?: string | undefined, name: string, displayName: string, link: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string, link: string }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, hpoId: string, name: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', id: number, code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, evidenceItems: Array<{ __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus }> } | undefined }; - -export type RevisableAssertionFieldsFragment = { __typename: 'Assertion', id: number, summary: string, description: string, variantOrigin: VariantOrigin, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, assertionDirection: AssertionDirection, assertionType: AssertionType, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, fdaCompanionTest?: boolean | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, disease?: { __typename: 'Disease', id: number, doid?: string | undefined, name: string, displayName: string, link: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string, link: string }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, hpoId: string, name: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', id: number, code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, evidenceItems: Array<{ __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus }> }; - -export type SuggestAssertionRevisionMutationVariables = Exact<{ - input: SuggestAssertionRevisionInput; -}>; - - -export type SuggestAssertionRevisionMutation = { __typename: 'Mutation', suggestAssertionRevision?: { __typename: 'SuggestAssertionRevisionPayload', clientMutationId?: string | undefined, assertion: { __typename: 'Assertion', id: number }, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean }> } | undefined }; - -export type SubmitAssertionMutationVariables = Exact<{ - input: SubmitAssertionInput; -}>; - - -export type SubmitAssertionMutation = { __typename: 'Mutation', submitAssertion?: { __typename: 'SubmitAssertionPayload', clientMutationId?: string | undefined, assertion: { __typename: 'Assertion', id: number } } | undefined }; - export type AddCommentMutationVariables = Exact<{ input: AddCommentInput; }>; -export type AddCommentMutation = { __typename: 'Mutation', addComment?: { __typename: 'AddCommentPayload', clientMutationId?: string | undefined, comment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionsetId?: string | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined } | undefined }; +export type AddCommentMutation = { __typename: 'Mutation', addComment?: { __typename: 'AddCommentPayload', clientMutationId?: string | undefined, comment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined } | undefined }; export type PreviewCommentQueryVariables = Exact<{ commentText: Scalars['String']; @@ -5746,203 +6195,115 @@ export type EntityTypeaheadQueryVariables = Exact<{ export type EntityTypeaheadQuery = { __typename: 'Query', entityTypeahead: Array<{ __typename: 'CommentTagSegment', entityId: number, tagType: TaggableEntity, displayName: string }> }; -export type PreviewMolecularProfileNameQueryVariables = Exact<{ - mpStructure?: InputMaybe; -}>; - - -export type PreviewMolecularProfileNameQuery = { __typename: 'Query', previewMolecularProfileName: { __typename: 'MolecularProfileNamePreview', existingMolecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, segments: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string }>, deprecatedVariants: Array<{ __typename: 'Variant', id: number, name: string, link: string }> } }; - -export type CreateMolecularProfileMutationVariables = Exact<{ - mpStructure: MolecularProfileComponentInput; -}>; - - -export type CreateMolecularProfileMutation = { __typename: 'Mutation', createMolecularProfile?: { __typename: 'CreateMolecularProfilePayload', molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | undefined }; - -type PreviewMpName_Gene_Fragment = { __typename: 'Gene', id: number, name: string, link: string }; - -type PreviewMpName_MolecularProfileTextSegment_Fragment = { __typename: 'MolecularProfileTextSegment', text: string }; - -type PreviewMpName_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string }; - -export type PreviewMpNameFragment = PreviewMpName_Gene_Fragment | PreviewMpName_MolecularProfileTextSegment_Fragment | PreviewMpName_Variant_Fragment; - -export type AcmgCodeTypeaheadQueryVariables = Exact<{ - code: Scalars['String']; -}>; - - -export type AcmgCodeTypeaheadQuery = { __typename: 'Query', acmgCodesTypeahead: Array<{ __typename: 'AcmgCode', id: number, code: string, description: string }> }; - -export type ClingenCodeTypeaheadQueryVariables = Exact<{ - code: Scalars['String']; -}>; - - -export type ClingenCodeTypeaheadQuery = { __typename: 'Query', clingenCodesTypeahead: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }> }; - -export type DiseaseTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; -}>; - - -export type DiseaseTypeaheadQuery = { __typename: 'Query', diseaseTypeahead: Array<{ __typename: 'Disease', id: number, name: string, displayName: string, doid?: string | undefined, diseaseAliases: Array }> }; - -export type AddDiseaseMutationVariables = Exact<{ - name: Scalars['String']; - doid?: InputMaybe; -}>; - - -export type AddDiseaseMutation = { __typename: 'Mutation', addDisease?: { __typename: 'AddDiseasePayload', new: boolean, disease: { __typename: 'Disease', id: number, name: string, displayName: string } } | undefined }; - -export type AddDiseaseFieldsFragment = { __typename: 'AddDiseasePayload', new: boolean, disease: { __typename: 'Disease', id: number, name: string, displayName: string } }; - -export type EvidenceTypeaheadQueryVariables = Exact<{ - id: Scalars['Int']; -}>; - - -export type EvidenceTypeaheadQuery = { __typename: 'Query', evidenceItem?: { __typename: 'EvidenceItem', id: number, status: EvidenceStatus, name: string } | undefined }; - -export type GeneTypeaheadQueryVariables = Exact<{ - entrezSymbol: Scalars['String']; -}>; - - -export type GeneTypeaheadQuery = { __typename: 'Query', geneTypeahead: Array<{ __typename: 'Gene', id: number, name: string, geneAliases: Array, entrezId: number }> }; - -export type GeneTypeaheadFieldsFragment = { __typename: 'Gene', id: number, name: string, geneAliases: Array, entrezId: number }; - -export type NccnGuidelineTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; +export type LinkableGeneQueryVariables = Exact<{ + geneId: Scalars['Int']; }>; -export type NccnGuidelineTypeaheadQuery = { __typename: 'Query', nccnGuidelinesTypeahead: Array<{ __typename: 'NccnGuideline', id: number, name: string }> }; +export type LinkableGeneQuery = { __typename: 'Query', gene?: { __typename: 'Gene', id: number, name: string, link: string } | undefined }; -export type PhenotypeTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; +export type LinkableVariantQueryVariables = Exact<{ + variantId: Scalars['Int']; }>; -export type PhenotypeTypeaheadQuery = { __typename: 'Query', phenotypeTypeahead: Array<{ __typename: 'Phenotype', hpoId: string, id: number, name: string }> }; +export type LinkableVariantQuery = { __typename: 'Query', variant?: { __typename: 'Variant', id: number, name: string, link: string } | undefined }; -export type CitationExistenceCheckQueryVariables = Exact<{ - sourceType: SourceSource; - citationId: Scalars['String']; +export type LinkableTherapyQueryVariables = Exact<{ + therapyId: Scalars['Int']; }>; -export type CitationExistenceCheckQuery = { __typename: 'Query', remoteCitation?: string | undefined }; +export type LinkableTherapyQuery = { __typename: 'Query', therapy?: { __typename: 'Therapy', id: number, name: string, link: string } | undefined }; -export type CreateSourceStubMutationVariables = Exact<{ - input: AddRemoteCitationInput; +export type FlagEntityMutationVariables = Exact<{ + input: FlagEntityInput; }>; -export type CreateSourceStubMutation = { __typename: 'Mutation', addRemoteCitation?: { __typename: 'AddRemoteCitationPayload', newSource: { __typename: 'SourceStub', id: number, citationId: number, sourceType: SourceSource } } | undefined }; +export type FlagEntityMutation = { __typename: 'Mutation', flagEntity?: { __typename: 'FlagEntityPayload', flag?: { __typename: 'Flag', id: number } | undefined } | undefined }; -export type CitationTypeaheadQueryVariables = Exact<{ - partialCitationId: Scalars['String']; - sourceType: SourceSource; +export type ResolveFlagMutationVariables = Exact<{ + input: ResolveFlagInput; }>; -export type CitationTypeaheadQuery = { __typename: 'Query', sourceTypeahead: Array<{ __typename: 'Source', id: number, name: string, citation?: string | undefined, citationId: string, sourceType: SourceSource }> }; - -export type SourceTypeaheadResultFragment = { __typename: 'Source', id: number, name: string, citation?: string | undefined, citationId: string, sourceType: SourceSource }; +export type ResolveFlagMutation = { __typename: 'Mutation', resolveFlag?: { __typename: 'ResolveFlagPayload', flag?: { __typename: 'Flag', id: number } | undefined } | undefined }; -export type CheckRemoteCitationQueryVariables = Exact<{ - sourceType: SourceSource; - citationId: Scalars['String']; +export type UpdateSourceSuggestionMutationVariables = Exact<{ + input: UpdateSourceSuggestionStatusInput; }>; -export type CheckRemoteCitationQuery = { __typename: 'Query', remoteCitation?: string | undefined }; +export type UpdateSourceSuggestionMutation = { __typename: 'Mutation', updateSourceSuggestionStatus?: { __typename: 'UpdateSourceSuggestionStatusPayload', sourceSuggestion: { __typename: 'SourceSuggestion', id: number, status: SourceSuggestionStatus } } | undefined }; -export type AddRemoteCitationMutationVariables = Exact<{ - input: AddRemoteCitationInput; +export type UpdateCoiMutationVariables = Exact<{ + input: UpdateCoiInput; }>; -export type AddRemoteCitationMutation = { __typename: 'Mutation', addRemoteCitation?: { __typename: 'AddRemoteCitationPayload', newSource: { __typename: 'SourceStub', id: number, citationId: number, sourceType: SourceSource } } | undefined }; - -export type SourceStubFieldsFragment = { __typename: 'SourceStub', id: number, citationId: number, sourceType: SourceSource }; +export type UpdateCoiMutation = { __typename: 'Mutation', updateCoi?: { __typename: 'UpdateCoiPayload', coiStatement: { __typename: 'Coi', coiPresent: boolean, coiStatus: CoiStatus, createdAt?: any | undefined, id: number } } | undefined }; -export type SourceTypeaheadQueryVariables = Exact<{ - partialCitationId: Scalars['String']; - sourceType: SourceSource; +export type UpdateUserProfileMutationVariables = Exact<{ + input: EditUserInput; }>; -export type SourceTypeaheadQuery = { __typename: 'Query', sourceTypeahead: Array<{ __typename: 'Source', id: number, name: string, citation?: string | undefined, citationId: string, sourceType: SourceSource }> }; - -export type SourceTypeaheadFieldsFragment = { __typename: 'Source', id: number, name: string, citation?: string | undefined, citationId: string, sourceType: SourceSource }; +export type UpdateUserProfileMutation = { __typename: 'Mutation', editUser?: { __typename: 'EditUserPayload', user: { __typename: 'User', id: number } } | undefined }; -export type TherapyTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; -}>; +export type CountriesQueryVariables = Exact<{ [key: string]: never; }>; -export type TherapyTypeaheadQuery = { __typename: 'Query', therapyTypeahead: Array<{ __typename: 'Therapy', id: number, name: string, ncitId?: string | undefined, therapyAliases: Array }> }; +export type CountriesQuery = { __typename: 'Query', countries: Array<{ __typename: 'Country', id: number, name: string }> }; -export type AddTherapyMutationVariables = Exact<{ - name: Scalars['String']; - ncitId?: InputMaybe; +export type DeprecateVariantMutationVariables = Exact<{ + variantId: Scalars['Int']; + deprecationReason: DeprecationReason; + comment: Scalars['String']; + organizationId?: InputMaybe; }>; -export type AddTherapyMutation = { __typename: 'Mutation', addTherapy?: { __typename: 'AddTherapyPayload', new: boolean, therapy: { __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string } } | undefined }; - -export type AddTherapyFieldsFragment = { __typename: 'AddTherapyPayload', new: boolean, therapy: { __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string } }; +export type DeprecateVariantMutation = { __typename: 'Mutation', deprecateVariant?: { __typename: 'DeprecateVariantPayload', newlyDeprecatedMolecularProfiles?: Array<{ __typename: 'MolecularProfile', id: number }> | undefined, variant?: { __typename: 'Variant', id: number, name: string } | undefined } | undefined }; -export type VariantTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; - geneId?: InputMaybe; +export type MolecularProfilesForVariantQueryVariables = Exact<{ + variantId: Scalars['Int']; }>; -export type VariantTypeaheadQuery = { __typename: 'Query', variants: { __typename: 'VariantConnection', nodes: Array<{ __typename: 'Variant', id: number, name: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }> } }; - -export type VariantTypeaheadFieldsFragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }; +export type MolecularProfilesForVariantQuery = { __typename: 'Query', molecularProfiles: { __typename: 'MolecularProfileConnection', nodes: Array<{ __typename: 'MolecularProfile', id: number, name: string, link: string, evidenceCountsByStatus: { __typename: 'EvidenceItemsByStatus', submittedCount: number, acceptedCount: number } }> } }; -export type AddVariantMutationVariables = Exact<{ - name: Scalars['String']; - geneId: Scalars['Int']; +export type AssertionRevisableFieldsQueryVariables = Exact<{ + assertionId: Scalars['Int']; }>; -export type AddVariantMutation = { __typename: 'Mutation', addVariant?: { __typename: 'AddVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'Variant', id: number, name: string, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } } | undefined }; +export type AssertionRevisableFieldsQuery = { __typename: 'Query', assertion?: { __typename: 'Assertion', id: number, summary: string, description: string, variantOrigin: VariantOrigin, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, assertionDirection: AssertionDirection, assertionType: AssertionType, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, fdaCompanionTest?: boolean | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, disease?: { __typename: 'Disease', id: number, doid?: string | undefined, name: string, displayName: string, link: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string, link: string }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, hpoId: string, name: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', id: number, name: string, code: string, description: string, tooltip: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string, name: string, tooltip: string, exclusive: boolean }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, evidenceItems: Array<{ __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus }> } | undefined }; -export type AddVariantFieldsFragment = { __typename: 'AddVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'Variant', id: number, name: string, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } }; +export type RevisableAssertionFieldsFragment = { __typename: 'Assertion', id: number, summary: string, description: string, variantOrigin: VariantOrigin, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, assertionDirection: AssertionDirection, assertionType: AssertionType, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, fdaCompanionTest?: boolean | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, disease?: { __typename: 'Disease', id: number, doid?: string | undefined, name: string, displayName: string, link: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string, link: string }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, hpoId: string, name: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', id: number, name: string, code: string, description: string, tooltip: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string, name: string, tooltip: string, exclusive: boolean }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, evidenceItems: Array<{ __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus }> }; -export type VariantSelectQueryVariables = Exact<{ - name: Scalars['String']; - geneId?: InputMaybe; +export type SuggestAssertionRevisionMutationVariables = Exact<{ + input: SuggestAssertionRevisionInput; }>; -export type VariantSelectQuery = { __typename: 'Query', variants: { __typename: 'VariantConnection', nodes: Array<{ __typename: 'Variant', id: number, name: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }> } }; - -export type VariantSelectFieldsFragment = { __typename: 'Variant', id: number, name: string, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } }; +export type SuggestAssertionRevisionMutation = { __typename: 'Mutation', suggestAssertionRevision?: { __typename: 'SuggestAssertionRevisionPayload', clientMutationId?: string | undefined, assertion: { __typename: 'Assertion', id: number }, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean }> } | undefined }; -export type VariantTypeTypeaheadQueryVariables = Exact<{ - name: Scalars['String']; +export type SubmitAssertionMutationVariables = Exact<{ + input: SubmitAssertionInput; }>; -export type VariantTypeTypeaheadQuery = { __typename: 'Query', variantTypeTypeahead: Array<{ __typename: 'VariantType', name: string, soid: string, id: number }> }; +export type SubmitAssertionMutation = { __typename: 'Mutation', submitAssertion?: { __typename: 'SubmitAssertionPayload', clientMutationId?: string | undefined, assertion: { __typename: 'Assertion', id: number } } | undefined }; export type EvidenceItemRevisableFieldsQueryVariables = Exact<{ evidenceId: Scalars['Int']; }>; -export type EvidenceItemRevisableFieldsQuery = { __typename: 'Query', evidenceItem?: { __typename: 'EvidenceItem', id: number, variantOrigin: VariantOrigin, description: string, significance: EvidenceSignificance, therapyInteractionType?: TherapyInteraction | undefined, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceType: EvidenceType, evidenceRating?: number | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, disease?: { __typename: 'Disease', id: number, doid?: string | undefined, name: string, displayName: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, hpoId: string, name: string }>, source: { __typename: 'Source', id: number, sourceType: SourceSource, citationId: string, citation?: string | undefined } } | undefined }; +export type EvidenceItemRevisableFieldsQuery = { __typename: 'Query', evidenceItem?: { __typename: 'EvidenceItem', id: number, variantOrigin: VariantOrigin, description: string, significance: EvidenceSignificance, therapyInteractionType?: TherapyInteraction | undefined, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceType: EvidenceType, evidenceRating?: number | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array }, disease?: { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string, hpoId: string }>, source: { __typename: 'Source', id: number, name: string, link: string, citation?: string | undefined, citationId: string, sourceType: SourceSource } } | undefined }; -export type RevisableEvidenceFieldsFragment = { __typename: 'EvidenceItem', id: number, variantOrigin: VariantOrigin, description: string, significance: EvidenceSignificance, therapyInteractionType?: TherapyInteraction | undefined, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceType: EvidenceType, evidenceRating?: number | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, disease?: { __typename: 'Disease', id: number, doid?: string | undefined, name: string, displayName: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, ncitId?: string | undefined, name: string }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, hpoId: string, name: string }>, source: { __typename: 'Source', id: number, sourceType: SourceSource, citationId: string, citation?: string | undefined } }; +export type RevisableEvidenceFieldsFragment = { __typename: 'EvidenceItem', id: number, variantOrigin: VariantOrigin, description: string, significance: EvidenceSignificance, therapyInteractionType?: TherapyInteraction | undefined, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceType: EvidenceType, evidenceRating?: number | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array }, disease?: { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string, hpoId: string }>, source: { __typename: 'Source', id: number, name: string, link: string, citation?: string | undefined, citationId: string, sourceType: SourceSource } }; export type SuggestEvidenceItemRevisionMutationVariables = Exact<{ input: SuggestEvidenceItemRevisionInput; @@ -5976,19 +6337,13 @@ export type SubmitEvidenceItemMutationVariables = Exact<{ export type SubmitEvidenceItemMutation = { __typename: 'Mutation', submitEvidence?: { __typename: 'SubmitEvidenceItemPayload', clientMutationId?: string | undefined, evidenceItem: { __typename: 'EvidenceItem', id: number } } | undefined }; -export type FlagEntityMutationVariables = Exact<{ - input: FlagEntityInput; -}>; - - -export type FlagEntityMutation = { __typename: 'Mutation', flagEntity?: { __typename: 'FlagEntityPayload', flag?: { __typename: 'Flag', id: number } | undefined } | undefined }; - -export type ResolveFlagMutationVariables = Exact<{ - input: ResolveFlagInput; +export type ExistingEvidenceCountQueryVariables = Exact<{ + molecularProfileId: Scalars['Int']; + sourceId: Scalars['Int']; }>; -export type ResolveFlagMutation = { __typename: 'Mutation', resolveFlag?: { __typename: 'ResolveFlagPayload', flag?: { __typename: 'Flag', id: number } | undefined } | undefined }; +export type ExistingEvidenceCountQuery = { __typename: 'Query', evidenceItems: { __typename: 'EvidenceItemConnection', totalCount: number } }; export type GeneRevisableFieldsQueryVariables = Exact<{ geneId: Scalars['Int']; @@ -6011,9 +6366,9 @@ export type MolecularProfileRevisableFieldsQueryVariables = Exact<{ }>; -export type MolecularProfileRevisableFieldsQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, description?: string | undefined, molecularProfileAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }> } | undefined }; +export type MolecularProfileRevisableFieldsQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, description?: string | undefined, molecularProfileAliases: Array, isComplex: boolean, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }> } | undefined }; -export type RevisableMolecularProfileFieldsFragment = { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, description?: string | undefined, molecularProfileAliases: Array, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }> }; +export type RevisableMolecularProfileFieldsFragment = { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, description?: string | undefined, molecularProfileAliases: Array, isComplex: boolean, sources: Array<{ __typename: 'Source', id: number, sourceType: SourceSource, citation?: string | undefined, citationId: string }> }; export type SuggestMolecularProfileRevisionMutationVariables = Exact<{ input: SuggestMolecularProfileRevisionInput; @@ -6022,55 +6377,39 @@ export type SuggestMolecularProfileRevisionMutationVariables = Exact<{ export type SuggestMolecularProfileRevisionMutation = { __typename: 'Mutation', suggestMolecularProfileRevision?: { __typename: 'SuggestMolecularProfileRevisionPayload', clientMutationId?: string | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number }, results: Array<{ __typename: 'RevisionResult', newlyCreated: boolean, id: number, fieldName: string }> } | undefined }; -export type SuggestSourceMutationVariables = Exact<{ +export type SubmitSourceMutationVariables = Exact<{ input: SuggestSourceInput; }>; -export type SuggestSourceMutation = { __typename: 'Mutation', suggestSource?: { __typename: 'SuggestSourcePayload', clientMutationId?: string | undefined, sourceSuggestion: { __typename: 'SourceSuggestion', id: number } } | undefined }; +export type SubmitSourceMutation = { __typename: 'Mutation', suggestSource?: { __typename: 'SuggestSourcePayload', clientMutationId?: string | undefined, sourceSuggestion: { __typename: 'SourceSuggestion', id: number } } | undefined }; -export type UpdateSourceSuggestionMutationVariables = Exact<{ - input: UpdateSourceSuggestionStatusInput; +export type VariantRevisableFieldsQueryVariables = Exact<{ + variantId: Scalars['Int']; }>; -export type UpdateSourceSuggestionMutation = { __typename: 'Mutation', updateSourceSuggestionStatus?: { __typename: 'UpdateSourceSuggestionStatusPayload', sourceSuggestion: { __typename: 'SourceSuggestion', id: number, status: SourceSuggestionStatus } } | undefined }; - -export type UpdateCoiMutationVariables = Exact<{ - input: UpdateCoiInput; -}>; +export type VariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'Variant', 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, gene: { __typename: 'Gene', 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 } | undefined }; +export type RevisableVariantFieldsFragment = { __typename: 'Variant', 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, gene: { __typename: 'Gene', 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 UpdateCoiMutation = { __typename: 'Mutation', updateCoi?: { __typename: 'UpdateCoiPayload', coiStatement: { __typename: 'Coi', coiPresent: boolean, coiStatus: CoiStatus, createdAt?: any | undefined, id: number } } | undefined }; +export type CoordinateFieldsFragment = { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined }; -export type UpdateUserProfileMutationVariables = Exact<{ - input: EditUserInput; +export type SuggestVariantRevisionMutationVariables = Exact<{ + input: SuggestVariantRevisionInput; }>; -export type UpdateUserProfileMutation = { __typename: 'Mutation', editUser?: { __typename: 'EditUserPayload', user: { __typename: 'User', id: number } } | undefined }; - -export type CountriesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type CountriesQuery = { __typename: 'Query', countries: Array<{ __typename: 'Country', id: number, name: string }> }; +export type SuggestVariantRevisionMutation = { __typename: 'Mutation', suggestVariantRevision?: { __typename: 'SuggestVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'Variant', id: number }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; -export type DeprecateVariantMutationVariables = Exact<{ - variantId: Scalars['Int']; - deprecationReason: DeprecationReason; - comment: Scalars['String']; - organizationId?: InputMaybe; +export type VariantGroupRevisableFieldsQueryVariables = Exact<{ + variantGroupId: Scalars['Int']; }>; -export type DeprecateVariantMutation = { __typename: 'Mutation', deprecateVariant?: { __typename: 'DeprecateVariantPayload', newlyDeprecatedMolecularProfiles?: Array<{ __typename: 'MolecularProfile', id: number }> | undefined, variant?: { __typename: 'Variant', id: number, name: string } | undefined } | undefined }; - -export type MolecularProfilesForVariantQueryVariables = Exact<{ - variantId: Scalars['Int']; -}>; - +export type VariantGroupRevisableFieldsQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', totalCount: number, edges: Array<{ __typename: 'VariantEdge', cursor: string, node?: { __typename: 'Variant', id: number, name: string, link: string } | undefined }>, nodes: Array<{ __typename: 'Variant', id: number, name: string, link: string }> }, sources: Array<{ __typename: 'Source', id: number, name: string, link: string }> } | undefined }; -export type MolecularProfilesForVariantQuery = { __typename: 'Query', molecularProfiles: { __typename: 'MolecularProfileConnection', nodes: Array<{ __typename: 'MolecularProfile', id: number, name: string, link: string, evidenceCountsByStatus: { __typename: 'EvidenceItemsByStatus', submittedCount: number, acceptedCount: number } }> } }; +export type VariantGroupRevisableFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, variants: { __typename: 'VariantConnection', totalCount: number, edges: Array<{ __typename: 'VariantEdge', cursor: string, node?: { __typename: 'Variant', id: number, name: string, link: string } | undefined }>, nodes: Array<{ __typename: 'Variant', id: number, name: string, link: string }> }, sources: Array<{ __typename: 'Source', id: number, name: string, link: string }> }; export type SuggestVariantGroupRevisionMutationVariables = Exact<{ input: SuggestVariantGroupRevisionInput; @@ -6095,50 +6434,368 @@ export type SubmitVariantGroupMutationVariables = Exact<{ export type SubmitVariantGroupMutation = { __typename: 'Mutation', submitVariantGroup?: { __typename: 'SubmitVariantGroupPayload', clientMutationId?: string | undefined, variantGroup: { __typename: 'VariantGroup', id: number } } | undefined }; -export type VariantRevisableFieldsQueryVariables = Exact<{ +export type EntityTagsTestQueryVariables = Exact<{ + molecularProfileId: Scalars['Int']; + geneId: Scalars['Int']; variantId: Scalars['Int']; + therapyId: Scalars['Int']; + diseaseId: Scalars['Int']; + eid: Scalars['Int']; }>; -export type VariantRevisableFieldsQuery = { __typename: 'Query', variant?: { __typename: 'Variant', 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, gene: { __typename: 'Gene', 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 } | 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: '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 RevisableVariantFieldsFragment = { __typename: 'Variant', 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, gene: { __typename: 'Gene', 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 AcmgCodeSelectTypeaheadQueryVariables = Exact<{ + code: Scalars['String']; +}>; -export type CoordinateFieldsFragment = { __typename: 'Coordinate', chromosome?: string | undefined, representativeTranscript?: string | undefined, start?: number | undefined, stop?: number | undefined }; -export type SuggestVariantRevisionMutationVariables = Exact<{ - input: SuggestVariantRevisionInput; +export type AcmgCodeSelectTypeaheadQuery = { __typename: 'Query', acmgCodesTypeahead: Array<{ __typename: 'AcmgCode', id: number, code: string, name: string, description: string, tooltip: string }> }; + +export type AcmgCodeSelectTagQueryVariables = Exact<{ + id: Scalars['Int']; }>; -export type SuggestVariantRevisionMutation = { __typename: 'Mutation', suggestVariantRevision?: { __typename: 'SuggestVariantRevisionPayload', clientMutationId?: string | undefined, variant: { __typename: 'Variant', id: number, revisions: { __typename: 'RevisionConnection', totalCount: number, edges: Array<{ __typename: 'RevisionEdge', node?: { __typename: 'Revision', id: number, revisionsetId: string, createdAt: any, fieldName: string, currentValue?: any | undefined, suggestedValue?: any | undefined, status: RevisionStatus, linkoutData: { __typename: 'LinkoutData', name: string, diffValue: { __typename: 'ObjectFieldDiff', addedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }>, removedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }>, keptObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }> } | { __typename: 'ScalarFieldDiff', left: string, right: string } }, revisor?: { __typename: 'User', id: number, name?: string | undefined } | undefined } | undefined }> } }, results: Array<{ __typename: 'RevisionResult', id: number, fieldName: string, newlyCreated: boolean }> } | undefined }; +export type AcmgCodeSelectTagQuery = { __typename: 'Query', acmgCode?: { __typename: 'AcmgCode', id: number, code: string, name: string, description: string, tooltip: string } | undefined }; -export type AssertionDetailQueryVariables = Exact<{ - assertionId: Scalars['Int']; -}>; +export type AcmgCodeSelectTypeaheadFieldsFragment = { __typename: 'AcmgCode', id: number, code: string, name: string, description: string, tooltip: string }; +export type ClingenCodeSelectTypeaheadQueryVariables = Exact<{ + code: Scalars['String']; +}>; -export type AssertionDetailQuery = { __typename: 'Query', assertion?: { __typename: 'Assertion', id: number, name: string, status: EvidenceStatus, submissionEvent: { __typename: 'Event', originatingUser: { __typename: 'User', id: number } }, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; -export type AssertionDetailFieldsFragment = { __typename: 'Assertion', id: number, name: string, status: EvidenceStatus, submissionEvent: { __typename: 'Event', originatingUser: { __typename: 'User', id: number } }, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +export type ClingenCodeSelectTypeaheadQuery = { __typename: 'Query', clingenCodesTypeahead: Array<{ __typename: 'ClingenCode', id: number, code: string, name: string, description: string, tooltip: string, exclusive: boolean }> }; -export type AssertionSummaryQueryVariables = Exact<{ - assertionId: Scalars['Int']; +export type ClingenCodeSelectTagQueryVariables = Exact<{ + id: Scalars['Int']; }>; -export type AssertionSummaryQuery = { __typename: 'Query', assertion?: { __typename: 'Assertion', id: number, name: string, summary: string, description: string, status: EvidenceStatus, variantOrigin: VariantOrigin, assertionType: AssertionType, assertionDirection: AssertionDirection, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, regulatoryApprovalLastUpdated?: any | undefined, fdaCompanionTest?: boolean | undefined, fdaCompanionTestLastUpdated?: any | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> }, therapies: Array<{ __typename: 'Therapy', ncitId?: string | undefined, name: string, link: string, id: number }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, acceptanceEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, submissionEvent: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, rejectionEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; +export type ClingenCodeSelectTagQuery = { __typename: 'Query', clingenCode?: { __typename: 'ClingenCode', id: number, code: string, name: string, description: string, tooltip: string, exclusive: boolean } | undefined }; -export type AssertionSummaryFieldsFragment = { __typename: 'Assertion', id: number, name: string, summary: string, description: string, status: EvidenceStatus, variantOrigin: VariantOrigin, assertionType: AssertionType, assertionDirection: AssertionDirection, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, regulatoryApprovalLastUpdated?: any | undefined, fdaCompanionTest?: boolean | undefined, fdaCompanionTestLastUpdated?: any | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> }, therapies: Array<{ __typename: 'Therapy', ncitId?: string | undefined, name: string, link: string, id: number }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, acceptanceEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, submissionEvent: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, rejectionEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; +export type ClingenCodeSelectTypeaheadFieldsFragment = { __typename: 'ClingenCode', id: number, code: string, name: string, description: string, tooltip: string, exclusive: boolean }; -export type ClinicalTrialDetailQueryVariables = Exact<{ - clinicalTrialId: Scalars['Int']; +export type QuickAddDiseaseMutationVariables = Exact<{ + name: Scalars['String']; + doid?: InputMaybe; }>; -export type ClinicalTrialDetailQuery = { __typename: 'Query', clinicalTrial?: { __typename: 'ClinicalTrial', id: number, name: string, nctId: string, description: string, url?: string | undefined, link: string } | undefined }; +export type QuickAddDiseaseMutation = { __typename: 'Mutation', addDisease?: { __typename: 'AddDiseasePayload', new: boolean, disease: { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array } } | undefined }; -export type ClinicalTrialSummaryQueryVariables = Exact<{ +export type QuickAddDiseaseFieldsFragment = { __typename: 'AddDiseasePayload', new: boolean, disease: { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array } }; + +export type DiseaseSelectTypeaheadQueryVariables = Exact<{ + name: Scalars['String']; +}>; + + +export type DiseaseSelectTypeaheadQuery = { __typename: 'Query', diseaseTypeahead: Array<{ __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array }> }; + +export type DiseaseSelectTagQueryVariables = Exact<{ + id: Scalars['Int']; +}>; + + +export type DiseaseSelectTagQuery = { __typename: 'Query', disease?: { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array } | undefined }; + +export type DiseaseSelectTypeaheadFieldsFragment = { __typename: 'Disease', id: number, name: string, link: string, displayName: string, doid?: string | undefined, diseaseAliases: Array }; + +export type EvidenceManagerQueryVariables = Exact<{ + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + id?: InputMaybe; + description?: InputMaybe; + evidenceLevel?: InputMaybe; + evidenceDirection?: InputMaybe; + significance?: InputMaybe; + evidenceType?: InputMaybe; + rating?: InputMaybe; + variantOrigin?: InputMaybe; + variantId?: InputMaybe; + molecularProfileId?: InputMaybe; + assertionId?: InputMaybe; + organizationId?: InputMaybe; + userId?: InputMaybe; + sortBy?: InputMaybe; + phenotypeId?: InputMaybe; + diseaseId?: InputMaybe; + therapyId?: InputMaybe; + sourceId?: InputMaybe; + clinicalTrialId?: InputMaybe; + molecularProfileName?: InputMaybe; + status?: InputMaybe; +}>; + + +export type EvidenceManagerQuery = { __typename: 'Query', evidenceItems: { __typename: 'EvidenceItemConnection', totalCount: number, pageCount: number, pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined, endCursor?: string | undefined }, edges: Array<{ __typename: 'EvidenceItemEdge', cursor: string, node?: { __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus, flagged: boolean, therapyInteractionType?: TherapyInteraction | undefined, description: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> } } | undefined }>, nodes: Array<{ __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus, flagged: boolean, therapyInteractionType?: TherapyInteraction | undefined, description: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> } }> } }; + +export type EvidenceManagerFieldsFragment = { __typename: 'EvidenceItem', id: number, name: string, link: string, status: EvidenceStatus, flagged: boolean, therapyInteractionType?: TherapyInteraction | undefined, description: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> } }; + +export type EvidenceSelectTypeaheadQueryVariables = Exact<{ + eid: Scalars['Int']; +}>; + + +export type EvidenceSelectTypeaheadQuery = { __typename: 'Query', evidenceItems: { __typename: 'EvidenceItemConnection', nodes: Array<{ __typename: 'EvidenceItem', id: number, name: string, link: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, status: EvidenceStatus }> } }; + +export type EvidenceSelectTagQueryVariables = Exact<{ + eid: Scalars['Int']; +}>; + + +export type EvidenceSelectTagQuery = { __typename: 'Query', evidenceItem?: { __typename: 'EvidenceItem', id: number, name: string, link: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, status: EvidenceStatus } | undefined }; + +export type EvidenceSelectTypeaheadFieldsFragment = { __typename: 'EvidenceItem', id: number, name: string, link: string, evidenceType: EvidenceType, evidenceDirection: EvidenceDirection, evidenceLevel: EvidenceLevel, evidenceRating?: number | undefined, significance: EvidenceSignificance, variantOrigin: VariantOrigin, status: EvidenceStatus }; + +export type GeneSelectTypeaheadQueryVariables = Exact<{ + entrezSymbol: Scalars['String']; +}>; + + +export type GeneSelectTypeaheadQuery = { __typename: 'Query', geneTypeahead: Array<{ __typename: 'Gene', id: number, entrezId: number, name: string, geneAliases: Array, link: string }> }; + +export type GeneSelectTagQueryVariables = Exact<{ + geneId: Scalars['Int']; +}>; + + +export type GeneSelectTagQuery = { __typename: 'Query', gene?: { __typename: 'Gene', id: number, entrezId: number, name: string, geneAliases: Array, link: string } | undefined }; + +export type GeneSelectTypeaheadFieldsFragment = { __typename: 'Gene', id: number, entrezId: number, name: string, geneAliases: Array, link: string }; + +export type MolecularProfileSelectTypeaheadQueryVariables = Exact<{ + name: Scalars['String']; + geneId?: InputMaybe; +}>; + + +export type MolecularProfileSelectTypeaheadQuery = { __typename: 'Query', molecularProfiles: { __typename: 'MolecularProfileConnection', nodes: Array<{ __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array }> } }; + +export type MolecularProfileSelectTagQueryVariables = Exact<{ + molecularProfileId: Scalars['Int']; +}>; + + +export type MolecularProfileSelectTagQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } | undefined }; + +export type MolecularProfileSelectTypeaheadFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array }; + +export type PreviewMolecularProfileName2QueryVariables = Exact<{ + mpStructure?: InputMaybe; +}>; + + +export type PreviewMolecularProfileName2Query = { __typename: 'Query', previewMolecularProfileName: { __typename: 'MolecularProfileNamePreview', existingMolecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, link: string } | undefined, segments: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string }>, deprecatedVariants: Array<{ __typename: 'Variant', id: number, name: string, link: string }> } }; + +export type MpExpressionEditorPrepopulateQueryVariables = Exact<{ + mpId: Scalars['Int']; +}>; + + +export type MpExpressionEditorPrepopulateQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, rawName: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> } | undefined }; + +export type CreateMolecularProfile2MutationVariables = Exact<{ + mpStructure: MolecularProfileComponentInput; +}>; + + +export type CreateMolecularProfile2Mutation = { __typename: 'Mutation', createMolecularProfile?: { __typename: 'CreateMolecularProfilePayload', molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string } } | undefined }; + +type PreviewMpName2_Gene_Fragment = { __typename: 'Gene', id: number, name: string, link: string }; + +type PreviewMpName2_MolecularProfileTextSegment_Fragment = { __typename: 'MolecularProfileTextSegment', text: string }; + +type PreviewMpName2_Variant_Fragment = { __typename: 'Variant', id: number, name: string, link: string }; + +export type PreviewMpName2Fragment = PreviewMpName2_Gene_Fragment | PreviewMpName2_MolecularProfileTextSegment_Fragment | PreviewMpName2_Variant_Fragment; + +export type NccnGuidelineSelectTypeaheadQueryVariables = Exact<{ + name: Scalars['String']; +}>; + + +export type NccnGuidelineSelectTypeaheadQuery = { __typename: 'Query', nccnGuidelinesTypeahead: Array<{ __typename: 'NccnGuideline', id: number, name: string }> }; + +export type NccnGuidelineSelectTagQueryVariables = Exact<{ + id: Scalars['Int']; +}>; + + +export type NccnGuidelineSelectTagQuery = { __typename: 'Query', nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined }; + +export type NccnGuidelineSelectTypeaheadFieldsFragment = { __typename: 'NccnGuideline', id: number, name: string }; + +export type PhenotypeSelectTypeaheadQueryVariables = Exact<{ + name: Scalars['String']; +}>; + + +export type PhenotypeSelectTypeaheadQuery = { __typename: 'Query', phenotypeTypeahead: Array<{ __typename: 'Phenotype', id: number, name: string, link: string, hpoId: string }> }; + +export type PhenotypeSelectTagQueryVariables = Exact<{ + id: Scalars['Int']; +}>; + + +export type PhenotypeSelectTagQuery = { __typename: 'Query', phenotype?: { __typename: 'Phenotype', id: number, name: string, link: string, hpoId: string } | undefined }; + +export type PhenotypeSelectTypeaheadFieldsFragment = { __typename: 'Phenotype', id: number, name: string, link: string, hpoId: string }; + +export type QuickAddSourceCheckCitationQueryVariables = Exact<{ + sourceType: SourceSource; + citationId: Scalars['String']; +}>; + + +export type QuickAddSourceCheckCitationQuery = { __typename: 'Query', remoteCitation?: string | undefined }; + +export type QuickAddSourceRemoteCitationMutationVariables = Exact<{ + input: AddRemoteCitationInput; +}>; + + +export type QuickAddSourceRemoteCitationMutation = { __typename: 'Mutation', addRemoteCitation?: { __typename: 'AddRemoteCitationPayload', newSource: { __typename: 'SourceStub', id: number, citationId: number, sourceType: SourceSource } } | undefined }; + +export type SourceSelectTypeaheadQueryVariables = Exact<{ + partialCitationId: Scalars['String']; + sourceType: SourceSource; +}>; + + +export type SourceSelectTypeaheadQuery = { __typename: 'Query', sourceTypeahead: Array<{ __typename: 'Source', id: number, name: string, link: string, citation?: string | undefined, citationId: string, sourceType: SourceSource }> }; + +export type SourceSelectTagQueryVariables = Exact<{ + id: Scalars['Int']; +}>; + + +export type SourceSelectTagQuery = { __typename: 'Query', source?: { __typename: 'Source', id: number, name: string, link: string, citation?: string | undefined, citationId: string, sourceType: SourceSource } | undefined }; + +export type SourceSelectTypeaheadFieldsFragment = { __typename: 'Source', id: number, name: string, link: string, citation?: string | undefined, citationId: string, sourceType: SourceSource }; + +export type QuickAddTherapyMutationVariables = Exact<{ + name: Scalars['String']; + ncitId?: InputMaybe; +}>; + + +export type QuickAddTherapyMutation = { __typename: 'Mutation', addTherapy?: { __typename: 'AddTherapyPayload', new: boolean, therapy: { __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array } } | undefined }; + +export type QuickAddTherapyFieldsFragment = { __typename: 'AddTherapyPayload', new: boolean, therapy: { __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array } }; + +export type TherapySelectTypeaheadQueryVariables = Exact<{ + name: Scalars['String']; +}>; + + +export type TherapySelectTypeaheadQuery = { __typename: 'Query', therapyTypeahead: Array<{ __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array }> }; + +export type TherapySelectTagQueryVariables = Exact<{ + id: Scalars['Int']; +}>; + + +export type TherapySelectTagQuery = { __typename: 'Query', therapy?: { __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array } | undefined }; + +export type TherapySelectTypeaheadFieldsFragment = { __typename: 'Therapy', id: number, name: string, link: string, ncitId?: string | undefined, therapyAliases: Array }; + +export type VariantManagerQueryVariables = Exact<{ + variantName?: InputMaybe; + entrezSymbol?: InputMaybe; + diseaseName?: InputMaybe; + therapyName?: InputMaybe; + variantAlias?: InputMaybe; + variantTypeId?: InputMaybe; + variantGroupId?: InputMaybe; + sortBy?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + before?: InputMaybe; + after?: InputMaybe; +}>; + + +export type VariantManagerQuery = { __typename: 'Query', browseVariants: { __typename: 'BrowseVariantConnection', totalCount: number, filteredCount: number, pageCount: number, pageInfo: { __typename: 'PageInfo', endCursor?: string | undefined, hasNextPage: boolean, startCursor?: string | undefined, hasPreviousPage: boolean }, edges: Array<{ __typename: 'BrowseVariantEdge', cursor: string, node?: { __typename: 'BrowseVariant', id: number, name: string, link: string, geneId: number, geneName: string, geneLink: string, diseases: Array<{ __typename: 'Disease', id: number, name: string, link: string }>, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, aliases: Array<{ __typename: 'VariantAlias', name: string }>, variantTypes: Array<{ __typename: 'LinkableVariantType', id: number, name: string, link: string }> } | undefined }> } }; + +export type VariantManagerFieldsFragment = { __typename: 'BrowseVariant', id: number, name: string, link: string, geneId: number, geneName: string, geneLink: string, diseases: Array<{ __typename: 'Disease', id: number, name: string, link: string }>, therapies: Array<{ __typename: 'Therapy', id: number, name: string, link: string }>, aliases: Array<{ __typename: 'VariantAlias', name: string }> }; + +export type QuickAddVariantMutationVariables = Exact<{ + name: Scalars['String']; + geneId: Scalars['Int']; +}>; + + +export type QuickAddVariantMutation = { __typename: 'Mutation', addVariant?: { __typename: 'AddVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } } | undefined }; + +export type QuickAddVariantFieldsFragment = { __typename: 'AddVariantPayload', clientMutationId?: string | undefined, new: boolean, variant: { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } }; + +export type VariantSelectTypeaheadQueryVariables = Exact<{ + name: Scalars['String']; + geneId?: InputMaybe; +}>; + + +export type VariantSelectTypeaheadQuery = { __typename: 'Query', variants: { __typename: 'VariantConnection', totalCount: number, edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | undefined }>, nodes: Array<{ __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } }> } }; + +export type VariantSelectTagQueryVariables = Exact<{ + variantId: Scalars['Int']; +}>; + + +export type VariantSelectTagQuery = { __typename: 'Query', variant?: { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } } | undefined }; + +export type VariantSelectTypeaheadFieldsFragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, singleVariantMolecularProfileId: number, singleVariantMolecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, molecularProfileAliases: Array } }; + +export type VariantTypeSelectTypeaheadQueryVariables = Exact<{ + name: Scalars['String']; +}>; + + +export type VariantTypeSelectTypeaheadQuery = { __typename: 'Query', variantTypeTypeahead: Array<{ __typename: 'VariantType', id: number, name: string, link: string, soid: string }> }; + +export type VariantTypeSelectTagQueryVariables = Exact<{ + id: Scalars['Int']; +}>; + + +export type VariantTypeSelectTagQuery = { __typename: 'Query', variantType?: { __typename: 'VariantType', id: number, name: string, link: string, soid: string } | undefined }; + +export type VariantTypeSelectTypeaheadFieldsFragment = { __typename: 'VariantType', id: number, name: string, link: string, soid: string }; + +export type AssertionDetailQueryVariables = Exact<{ + assertionId: Scalars['Int']; +}>; + + +export type AssertionDetailQuery = { __typename: 'Query', assertion?: { __typename: 'Assertion', id: number, name: string, status: EvidenceStatus, submissionEvent: { __typename: 'Event', originatingUser: { __typename: 'User', id: number } }, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; + +export type AssertionDetailFieldsFragment = { __typename: 'Assertion', id: number, name: string, status: EvidenceStatus, submissionEvent: { __typename: 'Event', originatingUser: { __typename: 'User', id: number } }, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; + +export type AssertionSummaryQueryVariables = Exact<{ + assertionId: Scalars['Int']; +}>; + + +export type AssertionSummaryQuery = { __typename: 'Query', assertion?: { __typename: 'Assertion', id: number, name: string, summary: string, description: string, status: EvidenceStatus, variantOrigin: VariantOrigin, assertionType: AssertionType, assertionDirection: AssertionDirection, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, regulatoryApprovalLastUpdated?: any | undefined, fdaCompanionTest?: boolean | undefined, fdaCompanionTestLastUpdated?: any | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> }, therapies: Array<{ __typename: 'Therapy', ncitId?: string | undefined, name: string, link: string, id: number }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, acceptanceEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, submissionEvent: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, rejectionEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined } | undefined }; + +export type AssertionSummaryFieldsFragment = { __typename: 'Assertion', id: number, name: string, summary: string, description: string, status: EvidenceStatus, variantOrigin: VariantOrigin, assertionType: AssertionType, assertionDirection: AssertionDirection, significance: AssertionSignificance, therapyInteractionType?: TherapyInteraction | undefined, ampLevel?: AmpLevel | undefined, nccnGuidelineVersion?: string | undefined, regulatoryApproval?: boolean | undefined, regulatoryApprovalLastUpdated?: any | undefined, fdaCompanionTest?: boolean | undefined, fdaCompanionTestLastUpdated?: any | undefined, disease?: { __typename: 'Disease', id: number, name: string, link: string } | undefined, molecularProfile: { __typename: 'MolecularProfile', id: number, name: string, link: string, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> }, therapies: Array<{ __typename: 'Therapy', ncitId?: string | undefined, name: string, link: string, id: number }>, phenotypes: Array<{ __typename: 'Phenotype', id: number, name: string, link: string }>, acmgCodes: Array<{ __typename: 'AcmgCode', code: string, description: string }>, clingenCodes: Array<{ __typename: 'ClingenCode', id: number, code: string, description: string }>, nccnGuideline?: { __typename: 'NccnGuideline', id: number, name: string } | undefined, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, acceptanceEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined, submissionEvent: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } }, rejectionEvent?: { __typename: 'Event', createdAt: any, originatingUser: { __typename: 'User', id: number, displayName: string, role: UserRole, profileImagePath?: string | undefined } } | undefined }; + +export type ClinicalTrialDetailQueryVariables = Exact<{ + clinicalTrialId: Scalars['Int']; +}>; + + +export type ClinicalTrialDetailQuery = { __typename: 'Query', clinicalTrial?: { __typename: 'ClinicalTrial', id: number, name: string, nctId: string, description: string, url?: string | undefined, link: string } | undefined }; + +export type ClinicalTrialSummaryQueryVariables = Exact<{ clinicalTrialId: Scalars['Int']; }>; @@ -6157,9 +6814,11 @@ export type DiseasesSummaryQueryVariables = Exact<{ }>; -export type DiseasesSummaryQuery = { __typename: 'Query', disease?: { __typename: 'Disease', id: number, name: string, doid?: string | undefined, diseaseUrl?: string | undefined, displayName: string, diseaseAliases: Array, link: string } | undefined }; +export type DiseasesSummaryQuery = { __typename: 'Query', disease?: { __typename: 'Disease', id: number, name: string, doid?: string | undefined, diseaseUrl?: string | undefined, displayName: string, diseaseAliases: Array, link: string, myDiseaseInfo?: { __typename: 'MyDiseaseInfo', diseaseOntologyExactSynonyms: Array, diseaseOntologyRelatedSynonyms: Array, mesh?: string | undefined, icdo?: string | undefined, icd10?: string | undefined, ncit: Array, omim?: string | undefined, doDef?: string | undefined, doDefCitations: Array, mondoDef?: string | undefined } | undefined } | undefined }; + +export type MyDiseaseInfoFieldsFragment = { __typename: 'MyDiseaseInfo', diseaseOntologyExactSynonyms: Array, diseaseOntologyRelatedSynonyms: Array, mesh?: string | undefined, icdo?: string | undefined, icd10?: string | undefined, ncit: Array, omim?: string | undefined, doDef?: string | undefined, doDefCitations: Array, mondoDef?: string | undefined }; -export type DiseasesSummaryFieldsFragment = { __typename: 'Disease', id: number, name: string, doid?: string | undefined, diseaseUrl?: string | undefined, displayName: string, diseaseAliases: Array, link: string }; +export type DiseasesSummaryFieldsFragment = { __typename: 'Disease', id: number, name: string, doid?: string | undefined, diseaseUrl?: string | undefined, displayName: string, diseaseAliases: Array, link: string, myDiseaseInfo?: { __typename: 'MyDiseaseInfo', diseaseOntologyExactSynonyms: Array, diseaseOntologyRelatedSynonyms: Array, mesh?: string | undefined, icdo?: string | undefined, icd10?: string | undefined, ncit: Array, omim?: string | undefined, doDef?: string | undefined, doDefCitations: Array, mondoDef?: string | undefined } | undefined }; export type EvidenceDetailQueryVariables = Exact<{ evidenceId: Scalars['Int']; @@ -6193,27 +6852,27 @@ export type GenesSummaryQueryVariables = Exact<{ }>; -export type GenesSummaryQuery = { __typename: 'Query', gene?: { __typename: 'Gene', description: string, entrezId: number, geneAliases: Array, id: number, name: string, officialName: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string } | undefined }> }, 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 } | undefined }; +export type GenesSummaryQuery = { __typename: 'Query', gene?: { __typename: 'Gene', description: string, entrezId: number, geneAliases: Array, id: number, name: string, officialName: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string } | undefined }> }, 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 } | undefined }; -export type GeneSummaryFieldsFragment = { __typename: 'Gene', description: string, entrezId: number, geneAliases: Array, id: number, name: string, officialName: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string } | undefined }> }, 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 }; +export type GeneSummaryFieldsFragment = { __typename: 'Gene', description: string, entrezId: number, geneAliases: Array, id: number, name: string, officialName: string, myGeneInfoDetails?: any | undefined, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, link: string, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string } | undefined }> }, 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 }; export type MolecularProfileDetailQueryVariables = Exact<{ mpId: Scalars['Int']; }>; -export type MolecularProfileDetailQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, molecularProfileAliases: Array, deprecatedVariants: Array<{ __typename: 'Variant', deprecationReason?: DeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionsetId?: string | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; +export type MolecularProfileDetailQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, molecularProfileAliases: Array, deprecatedVariants: Array<{ __typename: 'Variant', deprecationReason?: DeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; -export type MolecularProfileDetailFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, molecularProfileAliases: Array, deprecatedVariants: Array<{ __typename: 'Variant', deprecationReason?: DeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionsetId?: string | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +export type MolecularProfileDetailFieldsFragment = { __typename: 'MolecularProfile', id: number, name: string, deprecated: boolean, molecularProfileAliases: Array, deprecatedVariants: Array<{ __typename: 'Variant', deprecationReason?: DeprecationReason | undefined, id: number, deprecated: boolean, name: string, link: string, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined }>, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type MolecularProfileSummaryQueryVariables = Exact<{ mpId: Scalars['Int']; }>; -export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }>, variants: Array<{ __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, clinvarIds: Array, alleleRegistryId?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, hgvsDescriptions: Array, gene: { __typename: 'Gene', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }>, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> } | undefined }; +export type MolecularProfileSummaryQuery = { __typename: 'Query', molecularProfile?: { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }>, variants: Array<{ __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, clinvarIds: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, hgvsDescriptions: Array, gene: { __typename: 'Gene', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }>, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> } | undefined }; -export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }>, variants: Array<{ __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, clinvarIds: Array, alleleRegistryId?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, hgvsDescriptions: Array, gene: { __typename: 'Gene', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }>, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> }; +export type MolecularProfileSummaryFieldsFragment = { __typename: 'MolecularProfile', id: number, commonName?: string | undefined, name: string, description?: string | undefined, molecularProfileAliases: Array, molecularProfileScore: number, sources: Array<{ __typename: 'Source', id: number, citation?: string | undefined, sourceType: SourceSource, link: string }>, variants: Array<{ __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, clinvarIds: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, hgvsDescriptions: Array, gene: { __typename: 'Gene', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }>, parsedName: Array<{ __typename: 'Gene', id: number, name: string, link: string } | { __typename: 'MolecularProfileTextSegment', text: string } | { __typename: 'Variant', id: number, name: string, link: string, deprecated: boolean }> }; type MolecularProfileParsedName_Gene_Fragment = { __typename: 'Gene', id: number, name: string, link: string }; @@ -6223,25 +6882,25 @@ type MolecularProfileParsedName_Variant_Fragment = { __typename: 'Variant', id: export type MolecularProfileParsedNameFragment = MolecularProfileParsedName_Gene_Fragment | MolecularProfileParsedName_MolecularProfileTextSegment_Fragment | MolecularProfileParsedName_Variant_Fragment; -export type VariantMolecularProfileCardFieldsFragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, clinvarIds: Array, alleleRegistryId?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, hgvsDescriptions: Array, gene: { __typename: 'Gene', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }; +export type VariantMolecularProfileCardFieldsFragment = { __typename: 'Variant', id: number, name: string, link: string, variantAliases: Array, clinvarIds: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, hgvsDescriptions: Array, gene: { __typename: 'Gene', id: number, name: string, link: string }, molecularProfiles: { __typename: 'MolecularProfileConnection', totalCount: number, nodes: Array<{ __typename: 'MolecularProfile', id: number, link: string, name: string, deprecated: boolean }> }, variantTypes: Array<{ __typename: 'VariantType', id: number, link: string, soid: string, name: string }>, primaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined, secondaryCoordinates?: { __typename: 'Coordinate', representativeTranscript?: string | undefined, chromosome?: string | undefined, start?: number | undefined, stop?: number | undefined } | undefined }; export type OrganizationDetailQueryVariables = Exact<{ organizationId: Scalars['Int']; }>; -export type OrganizationDetailQuery = { __typename: 'Query', organization?: { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, orgStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, orgAndSuborgsStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number } } | undefined }; +export type OrganizationDetailQuery = { __typename: 'Query', organization?: { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, orgStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, orgAndSuborgsStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined } } | undefined }; -export type OrganizationDetailFieldsFragment = { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, orgStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, orgAndSuborgsStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number } }; +export type OrganizationDetailFieldsFragment = { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }>, orgStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, orgAndSuborgsStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined } }; export type OrganizationGroupsQueryVariables = Exact<{ organizationId: Scalars['Int']; }>; -export type OrganizationGroupsQuery = { __typename: 'Query', organization?: { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, orgStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, orgAndSuborgsStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, subGroups: Array<{ __typename: 'Organization', id: number, name: string, url: string, profileImagePath?: string | undefined }> }> } | undefined }; +export type OrganizationGroupsQuery = { __typename: 'Query', organization?: { __typename: 'Organization', subGroups: Array<{ __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, url: string }>, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined } }> } | undefined }; -export type OrganizationGroupsFieldsFragment = { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, orgStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, orgAndSuborgsStatsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, subGroups: Array<{ __typename: 'Organization', id: number, name: string, url: string, profileImagePath?: string | undefined }> }; +export type OrganizationGroupsFieldsFragment = { __typename: 'Organization', id: number, name: string, url: string, description: string, profileImagePath?: string | undefined, subGroups: Array<{ __typename: 'Organization', id: number, name: string, url: string }>, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined } }; export type OrganizationMembersQueryVariables = Exact<{ organizationId: Scalars['Int']; @@ -6252,16 +6911,16 @@ export type OrganizationMembersQueryVariables = Exact<{ }>; -export type OrganizationMembersQuery = { __typename: 'Query', users: { __typename: 'UserConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined, endCursor?: string | undefined }, edges: Array<{ __typename: 'UserEdge', cursor: string, node?: { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }> } | undefined }> } }; +export type OrganizationMembersQuery = { __typename: 'Query', users: { __typename: 'UserConnection', pageInfo: { __typename: 'PageInfo', hasNextPage: boolean, hasPreviousPage: boolean, startCursor?: string | undefined, endCursor?: string | undefined }, edges: Array<{ __typename: 'UserEdge', cursor: string, node?: { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }> } | undefined }> } }; -export type OrganizationMembersFieldsFragment = { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }> }; +export type OrganizationMembersFieldsFragment = { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }> }; export type PhenotypeDetailQueryVariables = Exact<{ phenotypeId: Scalars['Int']; }>; -export type PhenotypeDetailQuery = { __typename: 'Query', phenotype?: { __typename: 'Phenotype', id: number, name: string, hpoId: string, url: string, link: string } | undefined }; +export type PhenotypeDetailQuery = { __typename: 'Query', phenotype?: { __typename: 'Phenotype', id: number, name: string, description?: string | undefined, hpoId: string, url: string, link: string } | undefined }; export type DataReleasesQueryVariables = Exact<{ [key: string]: never; }>; @@ -6275,18 +6934,18 @@ export type SourceDetailQueryVariables = Exact<{ }>; -export type SourceDetailQuery = { __typename: 'Query', source?: { __typename: 'Source', id: number, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, citationId: string } | undefined }; +export type SourceDetailQuery = { __typename: 'Query', source?: { __typename: 'Source', id: number, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, citationId: string, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; -export type SourceDetailFieldsFragment = { __typename: 'Source', id: number, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, citationId: string }; +export type SourceDetailFieldsFragment = { __typename: 'Source', id: number, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, citationId: string, comments: { __typename: 'CommentConnection', totalCount: number } }; export type SourceSummaryQueryVariables = Exact<{ sourceId: Scalars['Int']; }>; -export type SourceSummaryQuery = { __typename: 'Query', source?: { __typename: 'Source', id: number, citation?: string | undefined, displayType: string, sourceUrl?: string | undefined, title?: string | undefined, abstract?: string | undefined, publicationDate?: string | undefined, citationId: string, fullJournalTitle?: string | undefined, pmcId?: string | undefined, authorString?: string | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', nctId: string, id: number, link: string }> | undefined } | undefined }; +export type SourceSummaryQuery = { __typename: 'Query', source?: { __typename: 'Source', id: number, citation?: string | undefined, displayType: string, sourceUrl?: string | undefined, title?: string | undefined, abstract?: string | undefined, publicationDate?: string | undefined, citationId: string, fullJournalTitle?: string | undefined, pmcId?: string | undefined, authorString?: string | undefined, ascoAbstractId?: number | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', nctId: string, id: number, link: string }> | undefined } | undefined }; -export type SourceSummaryFieldsFragment = { __typename: 'Source', id: number, citation?: string | undefined, displayType: string, sourceUrl?: string | undefined, title?: string | undefined, abstract?: string | undefined, publicationDate?: string | undefined, citationId: string, fullJournalTitle?: string | undefined, pmcId?: string | undefined, authorString?: string | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', nctId: string, id: number, link: string }> | undefined }; +export type SourceSummaryFieldsFragment = { __typename: 'Source', id: number, citation?: string | undefined, displayType: string, sourceUrl?: string | undefined, title?: string | undefined, abstract?: string | undefined, publicationDate?: string | undefined, citationId: string, fullJournalTitle?: string | undefined, pmcId?: string | undefined, authorString?: string | undefined, ascoAbstractId?: number | undefined, clinicalTrials?: Array<{ __typename: 'ClinicalTrial', nctId: string, id: number, link: string }> | undefined }; export type TherapyDetailQueryVariables = Exact<{ therapyId: Scalars['Int']; @@ -6300,18 +6959,20 @@ export type TherapiesSummaryQueryVariables = Exact<{ }>; -export type TherapiesSummaryQuery = { __typename: 'Query', therapy?: { __typename: 'Therapy', id: number, name: string, ncitId?: string | undefined, therapyUrl?: string | undefined, therapyAliases: Array, link: string } | undefined }; +export type TherapiesSummaryQuery = { __typename: 'Query', therapy?: { __typename: 'Therapy', id: number, name: string, ncitId?: string | undefined, therapyUrl?: string | undefined, therapyAliases: Array, link: string, myChemInfo?: { __typename: 'MyChemInfo', chebiId?: string | undefined, chebiDefinition?: string | undefined, firstApproval?: string | undefined, chemblMoleculeType?: string | undefined, chemblId?: string | undefined, pubchemCid?: string | undefined, pharmgkbId?: string | undefined, rxnorm?: string | undefined, inchikey?: string | undefined, drugbankId?: string | undefined, indications: Array, fdaEpcCodes: Array<{ __typename: 'FdaCode', code: string, description: string }>, fdaMoaCodes: Array<{ __typename: 'FdaCode', code: string, description: string }> } | undefined } | undefined }; -export type TherapiesSummaryFieldsFragment = { __typename: 'Therapy', id: number, name: string, ncitId?: string | undefined, therapyUrl?: string | undefined, therapyAliases: Array, link: string }; +export type TherapiesSummaryFieldsFragment = { __typename: 'Therapy', id: number, name: string, ncitId?: string | undefined, therapyUrl?: string | undefined, therapyAliases: Array, link: string, myChemInfo?: { __typename: 'MyChemInfo', chebiId?: string | undefined, chebiDefinition?: string | undefined, firstApproval?: string | undefined, chemblMoleculeType?: string | undefined, chemblId?: string | undefined, pubchemCid?: string | undefined, pharmgkbId?: string | undefined, rxnorm?: string | undefined, inchikey?: string | undefined, drugbankId?: string | undefined, indications: Array, fdaEpcCodes: Array<{ __typename: 'FdaCode', code: string, description: string }>, fdaMoaCodes: Array<{ __typename: 'FdaCode', code: string, description: string }> } | undefined }; + +export type MyChemInfoFieldsFragment = { __typename: 'MyChemInfo', chebiId?: string | undefined, chebiDefinition?: string | undefined, firstApproval?: string | undefined, chemblMoleculeType?: string | undefined, chemblId?: string | undefined, pubchemCid?: string | undefined, pharmgkbId?: string | undefined, rxnorm?: string | undefined, inchikey?: string | undefined, drugbankId?: string | undefined, indications: Array, fdaEpcCodes: Array<{ __typename: 'FdaCode', code: string, description: string }>, fdaMoaCodes: Array<{ __typename: 'FdaCode', code: string, description: string }> }; export type UserDetailQueryVariables = Exact<{ userId: Scalars['Int']; }>; -export type UserDetailQuery = { __typename: 'Query', user?: { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, email?: string | undefined, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, bio?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, country?: { __typename: 'Country', id: number, name: string } | undefined, statsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, mostRecentConflictOfInterestStatement?: { __typename: 'Coi', id: number, coiPresent: boolean, coiStatement?: string | undefined, coiStatus: CoiStatus, createdAt?: any | undefined, expiresAt: any } | undefined } | undefined }; +export type UserDetailQuery = { __typename: 'Query', user?: { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, email?: string | undefined, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, bio?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }>, country?: { __typename: 'Country', id: number, name: string } | undefined, statsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined }, mostRecentConflictOfInterestStatement?: { __typename: 'Coi', id: number, coiPresent: boolean, coiStatement?: string | undefined, coiStatus: CoiStatus, createdAt?: any | undefined, expiresAt: any } | undefined } | undefined }; -export type UserDetailFieldsFragment = { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, email?: string | undefined, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, bio?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, country?: { __typename: 'Country', id: number, name: string } | undefined, statsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, mostRecentConflictOfInterestStatement?: { __typename: 'Coi', id: number, coiPresent: boolean, coiStatement?: string | undefined, coiStatus: CoiStatus, createdAt?: any | undefined, expiresAt: any } | undefined }; +export type UserDetailFieldsFragment = { __typename: 'User', id: number, name?: string | undefined, displayName: string, username: string, email?: string | undefined, profileImagePath?: string | undefined, role: UserRole, url?: string | undefined, bio?: string | undefined, areaOfExpertise?: AreaOfExpertise | undefined, orcid?: string | undefined, twitterHandle?: string | undefined, facebookProfile?: string | undefined, linkedinProfile?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, url: string }>, country?: { __typename: 'Country', id: number, name: string } | undefined, statsHash: { __typename: 'Stats', comments: number, revisions: number, appliedRevisions: number, submittedEvidenceItems: number, acceptedEvidenceItems: number, suggestedSources: number, submittedAssertions: number, acceptedAssertions: number }, ranks: { __typename: 'Ranks', commentsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, moderationRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, revisionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined, submissionsRank?: { __typename: 'LeaderboardRank', rank: number, actionCount: number } | undefined }, mostRecentConflictOfInterestStatement?: { __typename: 'Coi', id: number, coiPresent: boolean, coiStatement?: string | undefined, coiStatus: CoiStatus, createdAt?: any | undefined, expiresAt: any } | undefined }; export type UserNotificationsQueryVariables = Exact<{ first?: InputMaybe; @@ -6328,7 +6989,7 @@ 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionsetId: string, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionsetId: string, 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }>, originatingUsers: Array<{ __typename: 'User', id: number, displayName: string }>, organizations: Array<{ __typename: 'Organization', id: number, name: string }>, edges: Array<{ __typename: 'NotificationEdge', node?: { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined } | undefined }> } }; export type NotificationOrganizationFragment = { __typename: 'Organization', id: number, name: string }; @@ -6336,14 +6997,14 @@ export type NotificationOriginatingUsersFragment = { __typename: 'User', id: num export type NotificationFeedSubjectsFragment = { __typename: 'EventSubjectWithCount', occuranceCount: number, subject?: { __typename: 'Assertion', id: number, name: string } | { __typename: 'EvidenceItem', id: number, name: string } | { __typename: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } | undefined }; -export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionsetId: string, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionsetId: string, 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; +export type NotificationNodeFragment = { __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }; export type UpdateNotificationStatusMutationVariables = Exact<{ input: UpdateNotificationStatusInput; }>; -export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionsetId: string, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', id: number, name: string, link: string } | { __typename: 'MolecularProfile', id: number, name: string, link: string } | { __typename: 'Revision', id: number, revisionsetId: string, 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; +export type UpdateNotificationStatusMutation = { __typename: 'Mutation', updateNotificationStatus?: { __typename: 'UpdateNotificationStatusPayload', notifications: Array<{ __typename: 'Notification', id: number, type: NotificationReason, seen: boolean, event: { __typename: 'Event', id: number, action: EventAction, createdAt: any, organization?: { __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined } | undefined, originatingUser: { __typename: 'User', id: number, username: string, displayName: string, role: UserRole, profileImagePath?: string | undefined }, subject?: { __typename: 'Assertion', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'EvidenceItem', status: EvidenceStatus, name: string, id: number, link: string } | { __typename: 'Gene', name: string, id: number, link: string } | { __typename: 'MolecularProfile', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'Revision', revisionSetId: number, name: string, id: number, link: string } | { __typename: 'Source', citation?: string | undefined, sourceType: SourceSource, name: string, id: number, link: string } | { __typename: 'SourcePopover', name: string, id: number, link: string } | { __typename: 'SourceSuggestion', name: string, id: number, link: string } | { __typename: 'Variant', deprecated: boolean, name: string, id: number, link: string } | { __typename: 'VariantGroup', name: string, id: number, link: string } | undefined, originatingObject?: { __typename: 'Assertion', id: number, name: string, link: string } | { __typename: 'Comment', id: number, name: string, link: string } | { __typename: 'EvidenceItem', id: number, name: string, link: string } | { __typename: 'Flag', 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: 'Gene', id: number, name: string } | { __typename: 'MolecularProfile', id: number, name: string } | { __typename: 'Revision', id: number, name: string } | { __typename: 'Source', id: number, name: string } | { __typename: 'SourcePopover', id: number, name: string } | { __typename: 'SourceSuggestion', id: number, name: string } | { __typename: 'Variant', id: number, name: string } | { __typename: 'VariantGroup', id: number, name: string } } | undefined }> } | undefined }; export type UnsubscribeMutationVariables = Exact<{ input: UnsubscribeInput; @@ -6381,16 +7042,16 @@ export type VariantGroupRevisionsQueryVariables = Exact<{ }>; -export type VariantGroupRevisionsQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, revisions: { __typename: 'RevisionConnection', totalCount: number, uniqueRevisors: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, revisedFieldNames: Array<{ __typename: 'FieldName', name: string, displayName: string }>, edges: Array<{ __typename: 'RevisionEdge', node?: { __typename: 'Revision', id: number, revisionsetId: string, createdAt: any, fieldName: string, currentValue?: any | undefined, suggestedValue?: any | undefined, status: RevisionStatus, linkoutData: { __typename: 'LinkoutData', name: string, diffValue: { __typename: 'ObjectFieldDiff', addedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }>, removedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }>, keptObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }> } | { __typename: 'ScalarFieldDiff', left: string, right: string } }, revisor?: { __typename: 'User', id: number, name?: string | undefined } | undefined } | undefined }> } } | undefined }; +export type VariantGroupRevisionsQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, revisions: { __typename: 'RevisionConnection', totalCount: number, uniqueRevisors: Array<{ __typename: 'User', username: string, id: number, profileImagePath?: string | undefined }>, revisedFieldNames: Array<{ __typename: 'FieldName', name: string, displayName: string }>, edges: Array<{ __typename: 'RevisionEdge', node?: { __typename: 'Revision', id: number, revisionSetId: number, createdAt: any, fieldName: string, currentValue?: any | undefined, suggestedValue?: any | undefined, status: RevisionStatus, linkoutData: { __typename: 'LinkoutData', name: string, diffValue: { __typename: 'ObjectFieldDiff', addedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }>, removedObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }>, keptObjects: Array<{ __typename: 'ModeratedObjectField', id: number, displayName?: string | undefined, displayType?: string | undefined, entityType: string }> } | { __typename: 'ScalarFieldDiff', left: string, right: string } }, revisor?: { __typename: 'User', id: number, name?: string | undefined } | undefined } | undefined }> } } | undefined }; export type VariantGroupsSummaryQueryVariables = Exact<{ variantGroupId: Scalars['Int']; }>; -export type VariantGroupsSummaryQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string, link: string } | undefined }> } } | undefined }; +export type VariantGroupsSummaryQuery = { __typename: 'Query', variantGroup?: { __typename: 'VariantGroup', id: number, name: string, description: string, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> } | undefined }; -export type VariantGroupSummaryFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }>, variants: { __typename: 'VariantConnection', edges: Array<{ __typename: 'VariantEdge', node?: { __typename: 'Variant', id: number, name: string, link: string } | undefined }> } }; +export type VariantGroupSummaryFieldsFragment = { __typename: 'VariantGroup', id: number, name: string, description: string, sources: Array<{ __typename: 'Source', id: number, link: string, citation?: string | undefined, sourceUrl?: string | undefined, displayType: string, sourceType: SourceSource }> }; export type VariantTypeDetailQueryVariables = Exact<{ variantTypeId: Scalars['Int']; @@ -6404,20 +7065,20 @@ export type VariantDetailQueryVariables = Exact<{ }>; -export type VariantDetailQuery = { __typename: 'Query', variant?: { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: DeprecationReason | undefined, variantAliases: Array, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionsetId?: string | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, gene: { __typename: 'Gene', id: number, name: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; +export type VariantDetailQuery = { __typename: 'Query', variant?: { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: DeprecationReason | undefined, variantAliases: Array, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, gene: { __typename: 'Gene', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } } | undefined }; -export type VariantDetailFieldsFragment = { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: DeprecationReason | undefined, variantAliases: Array, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionsetId?: string | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, gene: { __typename: 'Gene', id: number, name: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; +export type VariantDetailFieldsFragment = { __typename: 'Variant', id: number, name: string, deprecated: boolean, deprecationReason?: DeprecationReason | undefined, variantAliases: Array, deprecationComment?: { __typename: 'Comment', id: number, title?: string | undefined, comment: string, createdAt: any, commenter: { __typename: 'User', id: number, username: string, displayName: string, name?: string | undefined, role: UserRole, profileImagePath?: string | undefined, organizations: Array<{ __typename: 'Organization', id: number, name: string, profileImagePath?: string | undefined }> }, parsedComment: Array<{ __typename: 'CommentTagSegment', entityId: number, displayName: string, tagType: TaggableEntity, status?: EvidenceStatus | undefined, deprecated?: boolean | undefined, link: string, revisionSetId?: number | undefined } | { __typename: 'CommentTextSegment', text: string } | { __typename: 'User', id: number, displayName: string, role: UserRole }> } | undefined, gene: { __typename: 'Gene', id: number, name: string, link: string }, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number } }; export type VariantSummaryQueryVariables = Exact<{ variantId: Scalars['Int']; }>; -export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'Variant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, gene: { __typename: 'Gene', id: number, name: string, link: string }, 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, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, 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?: number | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined, 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 } | undefined }; +export type VariantSummaryQuery = { __typename: 'Query', variant?: { __typename: 'Variant', 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, gene: { __typename: 'Gene', id: number, name: string, link: string }, 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, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, 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, 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 } | undefined }; -export type VariantSummaryFieldsFragment = { __typename: 'Variant', id: number, name: string, variantAliases: Array, alleleRegistryId?: string | undefined, openCravatUrl?: string | undefined, hgvsDescriptions: Array, clinvarIds: Array, referenceBuild?: ReferenceBuild | undefined, ensemblVersion?: number | undefined, referenceBases?: string | undefined, variantBases?: string | undefined, gene: { __typename: 'Gene', id: number, name: string, link: string }, 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, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, 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?: number | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array } | undefined, 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 }; +export type VariantSummaryFieldsFragment = { __typename: 'Variant', 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, gene: { __typename: 'Gene', id: number, name: string, link: string }, 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, flags: { __typename: 'FlagConnection', totalCount: number }, revisions: { __typename: 'RevisionConnection', totalCount: number }, comments: { __typename: 'CommentConnection', totalCount: number }, 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, 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 }; -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?: number | undefined, siftPrediction: Array, siftScore: Array, siphy?: number | undefined, snpeffSnpEffect: Array, snpeffSnpImpact: Array }; +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 }; export const MolecularProfileParsedNameFragmentDoc = gql` fragment MolecularProfileParsedName on MolecularProfileSegment { @@ -6565,7 +7226,6 @@ export const CommentPopoverFragmentDoc = gql` id displayName role - profileImagePath(size: 32) } commentable { id @@ -6621,7 +7281,7 @@ export const EventFeedNodeFragmentDoc = gql` status } ... on Revision { - revisionsetId + revisionSetId } ... on Variant { deprecated @@ -6638,7 +7298,7 @@ export const EventFeedNodeFragmentDoc = gql` __typename ... on Revision { id - revisionsetId + revisionSetId } ... on Comment { id @@ -6924,6 +7584,7 @@ export const BrowseGenesFieldsFragmentDoc = gql` variantCount evidenceItemCount assertionCount + molecularProfileCount } `; export const QuicksearchResultFragmentDoc = gql` @@ -7015,6 +7676,15 @@ export const MenuMolecularProfileFragmentDoc = gql` flagged } `; +export const LeaderboardOrganizationFieldsFragmentDoc = gql` + fragment LeaderboardOrganizationFields on LeaderboardOrganization { + id + name + actionCount + rank + profileImagePath(size: 64) +} + `; export const OrgPopoverFragmentDoc = gql` fragment orgPopover on Organization { id @@ -7078,12 +7748,15 @@ export const RevisionPopoverFragmentDoc = gql` linkoutData { name } + creationComment { + comment + } } `; export const RevisionFragmentDoc = gql` fragment revision on Revision { id - revisionsetId + revisionSetId createdAt resolvedAt fieldName @@ -7258,7 +7931,8 @@ export const BrowseSourceSuggestionRowFieldsFragmentDoc = gql` export const SourcePopoverFragmentDoc = gql` fragment sourcePopover on SourcePopover { id - name + title + fullJournalTitle evidenceItemCount citation citationId @@ -7285,6 +7959,7 @@ export const BrowseSourceRowFieldsFragmentDoc = gql` citation displayType link + openAccess } `; export const TherapyBrowseTableRowFieldsFragmentDoc = gql` @@ -7298,6 +7973,17 @@ export const TherapyBrowseTableRowFieldsFragmentDoc = gql` link } `; +export const LeaderboardUserFieldsFragmentDoc = gql` + fragment LeaderboardUserFields on LeaderboardUser { + id + name + displayName + actionCount + role + rank + profileImagePath(size: 64) +} + `; export const PopoverUserFragmentDoc = gql` fragment popoverUser on User { id @@ -7325,6 +8011,7 @@ export const UserBrowseTableRowFieldsFragmentDoc = gql` submittedEvidenceItems revisions } + profileImagePath(size: 64) mostRecentActionTimestamp } `; @@ -7427,12 +8114,19 @@ export const VariantPopoverFieldsFragmentDoc = gql` } } `; -export const MenuVariantFragmentDoc = gql` - fragment menuVariant on Variant { +export const MenuVariantTypeFragmentDoc = gql` + fragment menuVariantType on BrowseVariantType { id name link - flagged +} + `; +export const MenuVariantFragmentDoc = gql` + fragment menuVariant on Variant { + id + name + link + flagged } `; export const BrowseVariantsFieldsFragmentDoc = gql` @@ -7456,6 +8150,35 @@ export const BrowseVariantsFieldsFragmentDoc = gql` aliases { name } + variantTypes { + id + name + link + } +} + `; +export const PreviewCommentFragmentDoc = gql` + fragment previewComment on CommentBodySegment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + status + deprecated + __typename + } + ... on CommentTextSegment { + text + __typename + } + ... on User { + id + displayName + role + __typename + } } `; export const RevisableAssertionFieldsFragmentDoc = gql` @@ -7494,13 +8217,18 @@ export const RevisableAssertionFieldsFragmentDoc = gql` ampLevel acmgCodes { id + name code description + tooltip } clingenCodes { id code description + name + tooltip + exclusive } nccnGuideline { id @@ -7517,182 +8245,83 @@ export const RevisableAssertionFieldsFragmentDoc = gql` } } `; -export const PreviewCommentFragmentDoc = gql` - fragment previewComment on CommentBodySegment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - status - deprecated - __typename - } - ... on CommentTextSegment { - text - __typename - } - ... on User { - id - displayName - role - __typename - } -} - `; -export const PreviewMpNameFragmentDoc = gql` - fragment previewMpName on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Gene { - id - name - link - } - ... on Variant { - id - name - link - } -} - `; -export const AddDiseaseFieldsFragmentDoc = gql` - fragment AddDiseaseFields on AddDiseasePayload { - new - disease { - id - name - displayName - } -} - `; -export const GeneTypeaheadFieldsFragmentDoc = gql` - fragment GeneTypeaheadFields on Gene { +export const MolecularProfileSelectTypeaheadFieldsFragmentDoc = gql` + fragment MolecularProfileSelectTypeaheadFields on MolecularProfile { id name - geneAliases - entrezId + link + molecularProfileAliases } `; -export const SourceTypeaheadResultFragmentDoc = gql` - fragment SourceTypeaheadResult on Source { +export const DiseaseSelectTypeaheadFieldsFragmentDoc = gql` + fragment DiseaseSelectTypeaheadFields on Disease { id name - citation - citationId - sourceType -} - `; -export const SourceStubFieldsFragmentDoc = gql` - fragment SourceStubFields on SourceStub { - id - citationId - sourceType + link + displayName + doid + diseaseAliases } `; -export const SourceTypeaheadFieldsFragmentDoc = gql` - fragment SourceTypeaheadFields on Source { +export const TherapySelectTypeaheadFieldsFragmentDoc = gql` + fragment TherapySelectTypeaheadFields on Therapy { id name - citation - citationId - sourceType -} - `; -export const AddTherapyFieldsFragmentDoc = gql` - fragment AddTherapyFields on AddTherapyPayload { - new - therapy { - id - ncitId - name - } + link + ncitId + therapyAliases } `; -export const VariantTypeaheadFieldsFragmentDoc = gql` - fragment VariantTypeaheadFields on Variant { +export const PhenotypeSelectTypeaheadFieldsFragmentDoc = gql` + fragment PhenotypeSelectTypeaheadFields on Phenotype { id name - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - } -} - `; -export const AddVariantFieldsFragmentDoc = gql` - fragment AddVariantFields on AddVariantPayload { - clientMutationId - new - variant { - id - name - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - } - } + link + hpoId } `; -export const VariantSelectFieldsFragmentDoc = gql` - fragment VariantSelectFields on Variant { +export const SourceSelectTypeaheadFieldsFragmentDoc = gql` + fragment SourceSelectTypeaheadFields on Source { id name - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - } + link + citation + citationId + sourceType } `; export const RevisableEvidenceFieldsFragmentDoc = gql` fragment RevisableEvidenceFields on EvidenceItem { id molecularProfile { - id - name - link + ...MolecularProfileSelectTypeaheadFields } variantOrigin description significance disease { - id - doid - name - displayName + ...DiseaseSelectTypeaheadFields } therapies { - id - ncitId - name + ...TherapySelectTypeaheadFields } therapyInteractionType evidenceDirection evidenceLevel evidenceType phenotypes { - id - hpoId - name + ...PhenotypeSelectTypeaheadFields } evidenceRating source { - id - sourceType - citationId - citation + ...SourceSelectTypeaheadFields } } - `; + ${MolecularProfileSelectTypeaheadFieldsFragmentDoc} +${DiseaseSelectTypeaheadFieldsFragmentDoc} +${TherapySelectTypeaheadFieldsFragmentDoc} +${PhenotypeSelectTypeaheadFieldsFragmentDoc} +${SourceSelectTypeaheadFieldsFragmentDoc}`; export const SubmittableEvidenceFieldsFragmentDoc = gql` fragment SubmittableEvidenceFields on EvidenceItem { id @@ -7747,31 +8376,7 @@ export const RevisableMolecularProfileFieldsFragmentDoc = gql` citationId } molecularProfileAliases -} - `; -export const SubmittableVariantGroupFieldsFragmentDoc = gql` - fragment SubmittableVariantGroupFields on VariantGroup { - id - name - description - variants(first: 50) { - nodes { - id - name - link - singleVariantMolecularProfile { - id - name - link - } - } - } - sources { - id - link - citation - sourceType - } + isComplex } `; export const CoordinateFieldsFragmentDoc = gql` @@ -7811,58 +8416,283 @@ export const RevisableVariantFieldsFragmentDoc = gql` variantBases } ${CoordinateFieldsFragmentDoc}`; -export const AssertionDetailFieldsFragmentDoc = gql` - fragment AssertionDetailFields on Assertion { +export const VariantGroupRevisableFieldsFragmentDoc = gql` + fragment VariantGroupRevisableFields on VariantGroup { id name - status - submissionEvent { - originatingUser { + description + variants { + totalCount + edges { + cursor + node { + id + name + link + } + } + nodes { id + name + link } } - molecularProfile { + sources { id name link } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } } `; -export const AssertionSummaryFieldsFragmentDoc = gql` - fragment AssertionSummaryFields on Assertion { +export const SubmittableVariantGroupFieldsFragmentDoc = gql` + fragment SubmittableVariantGroupFields on VariantGroup { id name - summary description - status - variantOrigin - disease { - id - name - link + variants(first: 50) { + nodes { + id + name + link + singleVariantMolecularProfile { + id + name + link + } + } } - molecularProfile { + sources { id - name link - parsedName { - ...MolecularProfileParsedName - } + citation + sourceType } - assertionType - assertionDirection - significance - therapies { - ncitId +} + `; +export const AcmgCodeSelectTypeaheadFieldsFragmentDoc = gql` + fragment AcmgCodeSelectTypeaheadFields on AcmgCode { + id + code + name + description + tooltip +} + `; +export const ClingenCodeSelectTypeaheadFieldsFragmentDoc = gql` + fragment ClingenCodeSelectTypeaheadFields on ClingenCode { + id + code + name + description + tooltip + exclusive +} + `; +export const QuickAddDiseaseFieldsFragmentDoc = gql` + fragment QuickAddDiseaseFields on AddDiseasePayload { + new + disease { + ...DiseaseSelectTypeaheadFields + } +} + ${DiseaseSelectTypeaheadFieldsFragmentDoc}`; +export const EvidenceManagerFieldsFragmentDoc = gql` + fragment EvidenceManagerFields on EvidenceItem { + id + name + link + disease { + id + name + link + } + therapies { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + status + flagged + therapyInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin +} + ${MolecularProfileParsedNameFragmentDoc}`; +export const EvidenceSelectTypeaheadFieldsFragmentDoc = gql` + fragment EvidenceSelectTypeaheadFields on EvidenceItem { + id + name + link + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin + status +} + `; +export const GeneSelectTypeaheadFieldsFragmentDoc = gql` + fragment GeneSelectTypeaheadFields on Gene { + id + entrezId + name + geneAliases + link +} + `; +export const PreviewMpName2FragmentDoc = gql` + fragment PreviewMpName2 on MolecularProfileSegment { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Gene { + id + name + link + } + ... on Variant { + id + name + link + } +} + `; +export const NccnGuidelineSelectTypeaheadFieldsFragmentDoc = gql` + fragment NccnGuidelineSelectTypeaheadFields on NccnGuideline { + id + name +} + `; +export const QuickAddTherapyFieldsFragmentDoc = gql` + fragment QuickAddTherapyFields on AddTherapyPayload { + new + therapy { + ...TherapySelectTypeaheadFields + } +} + ${TherapySelectTypeaheadFieldsFragmentDoc}`; +export const VariantManagerFieldsFragmentDoc = gql` + fragment VariantManagerFields on BrowseVariant { + id + name + link + geneId + geneName + geneLink + diseases { + id + name + link + } + therapies { + id + name + link + } + aliases { + name + } +} + `; +export const VariantSelectTypeaheadFieldsFragmentDoc = gql` + fragment VariantSelectTypeaheadFields on Variant { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } +} + `; +export const QuickAddVariantFieldsFragmentDoc = gql` + fragment QuickAddVariantFields on AddVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} + ${VariantSelectTypeaheadFieldsFragmentDoc}`; +export const VariantTypeSelectTypeaheadFieldsFragmentDoc = gql` + fragment VariantTypeSelectTypeaheadFields on VariantType { + id + name + link + soid +} + `; +export const AssertionDetailFieldsFragmentDoc = gql` + fragment AssertionDetailFields on Assertion { + id + name + status + submissionEvent { + originatingUser { + id + } + } + molecularProfile { + id + name + link + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `; +export const AssertionSummaryFieldsFragmentDoc = gql` + fragment AssertionSummaryFields on Assertion { + id + name + summary + description + status + variantOrigin + disease { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + } + assertionType + assertionDirection + significance + therapies { + ncitId name link id @@ -7930,6 +8760,20 @@ export const AssertionSummaryFieldsFragmentDoc = gql` } } ${MolecularProfileParsedNameFragmentDoc}`; +export const MyDiseaseInfoFieldsFragmentDoc = gql` + fragment MyDiseaseInfoFields on MyDiseaseInfo { + diseaseOntologyExactSynonyms + diseaseOntologyRelatedSynonyms + mesh + icdo + icd10 + ncit + omim + doDef + doDefCitations + mondoDef +} + `; export const DiseasesSummaryFieldsFragmentDoc = gql` fragment DiseasesSummaryFields on Disease { id @@ -7939,8 +8783,11 @@ export const DiseasesSummaryFieldsFragmentDoc = gql` displayName diseaseAliases link + myDiseaseInfo { + ...MyDiseaseInfoFields + } } - `; + ${MyDiseaseInfoFieldsFragmentDoc}`; export const EvidenceDetailFieldsFragmentDoc = gql` fragment EvidenceDetailFields on EvidenceItem { id @@ -8089,6 +8936,7 @@ export const GeneSummaryFieldsFragmentDoc = gql` sources { id citation + link sourceUrl displayType sourceType @@ -8148,7 +8996,7 @@ export const CommentListNodeFragmentDoc = gql` status deprecated link - revisionsetId + revisionSetId __typename } ... on CommentTextSegment { @@ -8211,6 +9059,7 @@ export const VariantMolecularProfileCardFieldsFragmentDoc = gql` variantAliases clinvarIds alleleRegistryId + openCravatUrl variantTypes { id link @@ -8249,6 +9098,7 @@ export const MolecularProfileSummaryFieldsFragmentDoc = gql` citation sourceType link + sourceType } variants { ...VariantMolecularProfileCardFields @@ -8291,6 +9141,24 @@ export const OrganizationDetailFieldsFragmentDoc = gql` submittedAssertions acceptedAssertions } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } } `; export const OrganizationGroupsFieldsFragmentDoc = gql` @@ -8299,32 +9167,29 @@ export const OrganizationGroupsFieldsFragmentDoc = gql` name url description - profileImagePath(size: 12) - orgStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - orgAndSuborgsStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } + profileImagePath(size: 128) subGroups { id name url - profileImagePath(size: 12) + } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } } } `; @@ -8334,7 +9199,7 @@ export const OrganizationMembersFieldsFragmentDoc = gql` name displayName username - profileImagePath(size: 32) + profileImagePath(size: 64) role url areaOfExpertise @@ -8345,6 +9210,7 @@ export const OrganizationMembersFieldsFragmentDoc = gql` organizations { id name + url } } `; @@ -8392,6 +9258,9 @@ export const SourceDetailFieldsFragmentDoc = gql` sourceUrl displayType citationId + comments { + totalCount + } } `; export const SourceSummaryFieldsFragmentDoc = gql` @@ -8407,6 +9276,7 @@ export const SourceSummaryFieldsFragmentDoc = gql` fullJournalTitle pmcId authorString + ascoAbstractId clinicalTrials { nctId id @@ -8414,6 +9284,29 @@ export const SourceSummaryFieldsFragmentDoc = gql` } } `; +export const MyChemInfoFieldsFragmentDoc = gql` + fragment MyChemInfoFields on MyChemInfo { + chebiId + chebiDefinition + fdaEpcCodes { + code + description + } + fdaMoaCodes { + code + description + } + firstApproval + chemblMoleculeType + chemblId + pubchemCid + pharmgkbId + rxnorm + inchikey + drugbankId + indications +} + `; export const TherapiesSummaryFieldsFragmentDoc = gql` fragment TherapiesSummaryFields on Therapy { id @@ -8422,8 +9315,11 @@ export const TherapiesSummaryFieldsFragmentDoc = gql` therapyUrl therapyAliases link + myChemInfo { + ...MyChemInfoFields + } } - `; + ${MyChemInfoFieldsFragmentDoc}`; export const UserDetailFieldsFragmentDoc = gql` fragment UserDetailFields on User { id @@ -8443,6 +9339,7 @@ export const UserDetailFieldsFragmentDoc = gql` organizations { id name + url } country { id @@ -8458,6 +9355,24 @@ export const UserDetailFieldsFragmentDoc = gql` submittedAssertions acceptedAssertions } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } mostRecentConflictOfInterestStatement { id coiPresent @@ -8546,15 +9461,6 @@ export const VariantGroupSummaryFieldsFragmentDoc = gql` displayType sourceType } - variants { - edges { - node { - id - name - link - } - } - } } `; export const VariantDetailFieldsFragmentDoc = gql` @@ -8569,6 +9475,7 @@ export const VariantDetailFieldsFragmentDoc = gql` gene { id name + link } variantAliases flags(state: OPEN) { @@ -8660,6 +9567,7 @@ export const VariantSummaryFieldsFragmentDoc = gql` variantAliases alleleRegistryId openCravatUrl + maneSelectTranscript variantTypes { id link @@ -8942,7 +9850,7 @@ export const DiseasePopoverDocument = gql` diseaseAliases assertionCount evidenceItemCount - variantCount + molecularProfileCount link } } @@ -9353,6 +10261,166 @@ export const MolecularProfileMenuDocument = gql` export class MolecularProfileMenuGQL extends Apollo.Query { document = MolecularProfileMenuDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const OrganizationCommentsLeaderboardDocument = gql` + query OrganizationCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + commentsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${LeaderboardOrganizationFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class OrganizationCommentsLeaderboardGQL extends Apollo.Query { + document = OrganizationCommentsLeaderboardDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const OrganizationRevisionsLeaderboardDocument = gql` + query OrganizationRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + revisionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${LeaderboardOrganizationFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class OrganizationRevisionsLeaderboardGQL extends Apollo.Query { + document = OrganizationRevisionsLeaderboardDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const OrganizationModerationLeaderboardDocument = gql` + query OrganizationModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + moderationLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${LeaderboardOrganizationFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class OrganizationModerationLeaderboardGQL extends Apollo.Query { + document = OrganizationModerationLeaderboardDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const OrganizationSubmissionsLeaderboardDocument = gql` + query OrganizationSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + submissionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${LeaderboardOrganizationFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class OrganizationSubmissionsLeaderboardGQL extends Apollo.Query { + document = OrganizationSubmissionsLeaderboardDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } @@ -9422,6 +10490,7 @@ export const PhenotypePopoverDocument = gql` hpoId assertionCount evidenceItemCount + molecularProfileCount link } } @@ -9558,7 +10627,7 @@ export const RevisionPopoverDocument = gql` } } export const RevisionsDocument = gql` - query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionsetId: String, $status: RevisionStatus) { + query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionSetId: Int, $status: RevisionStatus) { revisions( first: $first last: $last @@ -9569,7 +10638,7 @@ export const RevisionsDocument = gql` resolvingUserId: $resolvingUserId subject: $subject status: $status - revisionsetId: $revisionsetId + revisionSetId: $revisionSetId ) { totalCount unfilteredCountForSubject @@ -9831,7 +10900,7 @@ export const SourcePopoverDocument = gql` } } export const BrowseSourcesDocument = gql` - query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int) { + query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int, $openAccess: Boolean) { browseSources( first: $first last: $last @@ -9845,6 +10914,7 @@ export const BrowseSourcesDocument = gql` author: $author journal: $journal clinicalTrialId: $clinicalTrialId + openAccess: $openAccess ) { pageInfo { endCursor @@ -9885,6 +10955,7 @@ export const TherapyPopoverDocument = gql` therapyAliases assertionCount evidenceItemCount + molecularProfileCount link } } @@ -9935,6 +11006,166 @@ export const TherapiesBrowseDocument = gql` export class TherapiesBrowseGQL extends Apollo.Query { document = TherapiesBrowseDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UserCommentsLeaderboardDocument = gql` + query UserCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + commentsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${LeaderboardUserFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class UserCommentsLeaderboardGQL extends Apollo.Query { + document = UserCommentsLeaderboardDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UserRevisionsLeaderboardDocument = gql` + query UserRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + revisionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${LeaderboardUserFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class UserRevisionsLeaderboardGQL extends Apollo.Query { + document = UserRevisionsLeaderboardDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UserModerationLeaderboardDocument = gql` + query UserModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + moderationLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${LeaderboardUserFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class UserModerationLeaderboardGQL extends Apollo.Query { + document = UserModerationLeaderboardDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UserSubmissionsLeaderboardDocument = gql` + query UserSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + submissionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${LeaderboardUserFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class UserSubmissionsLeaderboardGQL extends Apollo.Query { + document = UserSubmissionsLeaderboardDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } @@ -10149,10 +11380,12 @@ export const VariantPopoverDocument = gql` } } export const VariantsMenuDocument = gql` - query VariantsMenu($geneId: Int, $variantName: String, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { + query VariantsMenu($geneId: Int, $variantName: String, $variantTypeIds: [Int!], $hasNoVariantType: Boolean, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { variants( geneId: $geneId name: $variantName + variantTypeIds: $variantTypeIds + hasNoVariantType: $hasNoVariantType first: $first last: $last before: $before @@ -10182,12 +11415,34 @@ export const VariantsMenuDocument = gql` export class VariantsMenuGQL extends Apollo.Query { document = VariantsMenuDocument; + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const VariantTypesForGeneDocument = gql` + query VariantTypesForGene($geneId: Int) { + variantTypes(geneId: $geneId, first: 50) { + edges { + node { + ...menuVariantType + } + } + } +} + ${MenuVariantTypeFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class VariantTypesForGeneGQL extends Apollo.Query { + document = VariantTypesForGeneDocument; + constructor(apollo: Apollo.Apollo) { super(apollo); } } export const BrowseVariantsDocument = gql` - query BrowseVariants($variantName: String, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + query BrowseVariants($variantName: String, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $variantTypeName: String, $hasNoVariantType: Boolean, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { browseVariants( variantName: $variantName entrezSymbol: $entrezSymbol @@ -10196,6 +11451,8 @@ export const BrowseVariantsDocument = gql` variantAlias: $variantAlias variantTypeId: $variantTypeId variantGroupId: $variantGroupId + variantTypeName: $variantTypeName + hasNoVariantType: $hasNoVariantType sortBy: $sortBy first: $first last: $last @@ -10280,55 +11537,49 @@ export const ViewerNotificationCountDocument = gql` super(apollo); } } -export const AssertionRevisableFieldsDocument = gql` - query AssertionRevisableFields($assertionId: Int!) { - assertion(id: $assertionId) { - ...RevisableAssertionFields +export const AddCommentDocument = gql` + mutation AddComment($input: AddCommentInput!) { + addComment(input: $input) { + clientMutationId + comment { + ...commentListNode + } } } - ${RevisableAssertionFieldsFragmentDoc}`; + ${CommentListNodeFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class AssertionRevisableFieldsGQL extends Apollo.Query { - document = AssertionRevisableFieldsDocument; + export class AddCommentGQL extends Apollo.Mutation { + document = AddCommentDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SuggestAssertionRevisionDocument = gql` - mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { - suggestAssertionRevision(input: $input) { - clientMutationId - assertion { - id - } - results { - newlyCreated - } +export const PreviewCommentDocument = gql` + query previewComment($commentText: String!) { + previewCommentText(commentText: $commentText) { + ...previewComment } } - `; + ${PreviewCommentFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SuggestAssertionRevisionGQL extends Apollo.Mutation { - document = SuggestAssertionRevisionDocument; + export class PreviewCommentGQL extends Apollo.Query { + document = PreviewCommentDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SubmitAssertionDocument = gql` - mutation SubmitAssertion($input: SubmitAssertionInput!) { - submitAssertion(input: $input) { - clientMutationId - assertion { - id - } +export const UserTypeaheadDocument = gql` + query userTypeahead($queryTerm: String!) { + userTypeahead(queryTerm: $queryTerm) { + username } } `; @@ -10336,56 +11587,79 @@ export const SubmitAssertionDocument = gql` @Injectable({ providedIn: 'root' }) - export class SubmitAssertionGQL extends Apollo.Mutation { - document = SubmitAssertionDocument; + export class UserTypeaheadGQL extends Apollo.Query { + document = UserTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const AddCommentDocument = gql` - mutation AddComment($input: AddCommentInput!) { - addComment(input: $input) { - clientMutationId - comment { - ...commentListNode +export const EntityTypeaheadDocument = gql` + query entityTypeahead($queryTerm: String!) { + entityTypeahead(queryTerm: $queryTerm) { + entityId + tagType + displayName + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class EntityTypeaheadGQL extends Apollo.Query { + document = EntityTypeaheadDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); } } +export const LinkableGeneDocument = gql` + query LinkableGene($geneId: Int!) { + gene(id: $geneId) { + id + name + link + } } - ${CommentListNodeFragmentDoc}`; + `; @Injectable({ providedIn: 'root' }) - export class AddCommentGQL extends Apollo.Mutation { - document = AddCommentDocument; + export class LinkableGeneGQL extends Apollo.Query { + document = LinkableGeneDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const PreviewCommentDocument = gql` - query previewComment($commentText: String!) { - previewCommentText(commentText: $commentText) { - ...previewComment +export const LinkableVariantDocument = gql` + query LinkableVariant($variantId: Int!) { + variant(id: $variantId) { + id + name + link } } - ${PreviewCommentFragmentDoc}`; + `; @Injectable({ providedIn: 'root' }) - export class PreviewCommentGQL extends Apollo.Query { - document = PreviewCommentDocument; + export class LinkableVariantGQL extends Apollo.Query { + document = LinkableVariantDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const UserTypeaheadDocument = gql` - query userTypeahead($queryTerm: String!) { - userTypeahead(queryTerm: $queryTerm) { - username +export const LinkableTherapyDocument = gql` + query LinkableTherapy($therapyId: Int!) { + therapy(id: $therapyId) { + id + name + link } } `; @@ -10393,19 +11667,19 @@ export const UserTypeaheadDocument = gql` @Injectable({ providedIn: 'root' }) - export class UserTypeaheadGQL extends Apollo.Query { - document = UserTypeaheadDocument; + export class LinkableTherapyGQL extends Apollo.Query { + document = LinkableTherapyDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const EntityTypeaheadDocument = gql` - query entityTypeahead($queryTerm: String!) { - entityTypeahead(queryTerm: $queryTerm) { - entityId - tagType - displayName +export const FlagEntityDocument = gql` + mutation FlagEntity($input: FlagEntityInput!) { + flagEntity(input: $input) { + flag { + id + } } } `; @@ -10413,51 +11687,297 @@ export const EntityTypeaheadDocument = gql` @Injectable({ providedIn: 'root' }) - export class EntityTypeaheadGQL extends Apollo.Query { - document = EntityTypeaheadDocument; + export class FlagEntityGQL extends Apollo.Mutation { + document = FlagEntityDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const PreviewMolecularProfileNameDocument = gql` - query previewMolecularProfileName($mpStructure: MolecularProfileComponentInput) { - previewMolecularProfileName(structure: $mpStructure) { - existingMolecularProfile { +export const ResolveFlagDocument = gql` + mutation ResolveFlag($input: ResolveFlagInput!) { + resolveFlag(input: $input) { + flag { + id + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class ResolveFlagGQL extends Apollo.Mutation { + document = ResolveFlagDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UpdateSourceSuggestionDocument = gql` + mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class UpdateSourceSuggestionGQL extends Apollo.Mutation { + document = UpdateSourceSuggestionDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UpdateCoiDocument = gql` + mutation UpdateCoi($input: UpdateCoiInput!) { + updateCoi(input: $input) { + coiStatement { + coiPresent + coiStatus + createdAt + id + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class UpdateCoiGQL extends Apollo.Mutation { + document = UpdateCoiDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const UpdateUserProfileDocument = gql` + mutation UpdateUserProfile($input: EditUserInput!) { + editUser(input: $input) { + user { + id + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class UpdateUserProfileGQL extends Apollo.Mutation { + document = UpdateUserProfileDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const CountriesDocument = gql` + query Countries { + countries { + id + name + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class CountriesGQL extends Apollo.Query { + document = CountriesDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const DeprecateVariantDocument = gql` + mutation DeprecateVariant($variantId: Int!, $deprecationReason: DeprecationReason!, $comment: String!, $organizationId: Int) { + deprecateVariant( + input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + newlyDeprecatedMolecularProfiles { + id + } + variant { id name - link } - segments { - ...previewMpName + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class DeprecateVariantGQL extends Apollo.Mutation { + document = DeprecateVariantDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); } - deprecatedVariants { + } +export const MolecularProfilesForVariantDocument = gql` + query MolecularProfilesForVariant($variantId: Int!) { + molecularProfiles(variantId: $variantId, first: 50) { + nodes { id name link + evidenceCountsByStatus { + submittedCount + acceptedCount + } } } } - ${PreviewMpNameFragmentDoc}`; + `; @Injectable({ providedIn: 'root' }) - export class PreviewMolecularProfileNameGQL extends Apollo.Query { - document = PreviewMolecularProfileNameDocument; + export class MolecularProfilesForVariantGQL extends Apollo.Query { + document = MolecularProfilesForVariantDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const CreateMolecularProfileDocument = gql` - mutation createMolecularProfile($mpStructure: MolecularProfileComponentInput!) { - createMolecularProfile(input: {structure: $mpStructure}) { +export const AssertionRevisableFieldsDocument = gql` + query AssertionRevisableFields($assertionId: Int!) { + assertion(id: $assertionId) { + ...RevisableAssertionFields + } +} + ${RevisableAssertionFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class AssertionRevisableFieldsGQL extends Apollo.Query { + document = AssertionRevisableFieldsDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SuggestAssertionRevisionDocument = gql` + mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { + suggestAssertionRevision(input: $input) { + clientMutationId + assertion { + id + } + results { + newlyCreated + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SuggestAssertionRevisionGQL extends Apollo.Mutation { + document = SuggestAssertionRevisionDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SubmitAssertionDocument = gql` + mutation SubmitAssertion($input: SubmitAssertionInput!) { + submitAssertion(input: $input) { + clientMutationId + assertion { + id + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SubmitAssertionGQL extends Apollo.Mutation { + document = SubmitAssertionDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const EvidenceItemRevisableFieldsDocument = gql` + query EvidenceItemRevisableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...RevisableEvidenceFields + } +} + ${RevisableEvidenceFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class EvidenceItemRevisableFieldsGQL extends Apollo.Query { + document = EvidenceItemRevisableFieldsDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SuggestEvidenceItemRevisionDocument = gql` + mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { + suggestEvidenceItemRevision(input: $input) { + clientMutationId + evidenceItem { + id + } + results { + newlyCreated + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SuggestEvidenceItemRevisionGQL extends Apollo.Mutation { + document = SuggestEvidenceItemRevisionDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const EvidenceFieldsFromSourceSuggestionDocument = gql` + query EvidenceFieldsFromSourceSuggestion($sourceId: Int, $molecularProfileId: Int, $diseaseId: Int) { + sourceSuggestionValues( + molecularProfileId: $molecularProfileId + diseaseId: $diseaseId + sourceId: $sourceId + ) { molecularProfile { id name link } + disease { + id + name + link + } + source { + id + sourceType + citationId + citation + link + } } } `; @@ -10465,19 +11985,162 @@ export const CreateMolecularProfileDocument = gql` @Injectable({ providedIn: 'root' }) - export class CreateMolecularProfileGQL extends Apollo.Mutation { - document = CreateMolecularProfileDocument; + export class EvidenceFieldsFromSourceSuggestionGQL extends Apollo.Query { + document = EvidenceFieldsFromSourceSuggestionDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const AcmgCodeTypeaheadDocument = gql` - query AcmgCodeTypeahead($code: String!) { - acmgCodesTypeahead(queryTerm: $code) { - id - code - description +export const EvidenceSubmittableFieldsDocument = gql` + query EvidenceSubmittableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...SubmittableEvidenceFields + } +} + ${SubmittableEvidenceFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class EvidenceSubmittableFieldsGQL extends Apollo.Query { + document = EvidenceSubmittableFieldsDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SubmitEvidenceItemDocument = gql` + mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { + submitEvidence(input: $input) { + clientMutationId + evidenceItem { + id + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SubmitEvidenceItemGQL extends Apollo.Mutation { + document = SubmitEvidenceItemDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const ExistingEvidenceCountDocument = gql` + query ExistingEvidenceCount($molecularProfileId: Int!, $sourceId: Int!) { + evidenceItems(molecularProfileId: $molecularProfileId, sourceId: $sourceId) { + totalCount + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class ExistingEvidenceCountGQL extends Apollo.Query { + document = ExistingEvidenceCountDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const GeneRevisableFieldsDocument = gql` + query GeneRevisableFields($geneId: Int!) { + gene(id: $geneId) { + ...RevisableGeneFields + } +} + ${RevisableGeneFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class GeneRevisableFieldsGQL extends Apollo.Query { + document = GeneRevisableFieldsDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SuggestGeneRevisionDocument = gql` + mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { + suggestGeneRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SuggestGeneRevisionGQL extends Apollo.Mutation { + document = SuggestGeneRevisionDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const MolecularProfileRevisableFieldsDocument = gql` + query MolecularProfileRevisableFields($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...RevisableMolecularProfileFields + } +} + ${RevisableMolecularProfileFieldsFragmentDoc}`; + + @Injectable({ + providedIn: 'root' + }) + export class MolecularProfileRevisableFieldsGQL extends Apollo.Query { + document = MolecularProfileRevisableFieldsDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SuggestMolecularProfileRevisionDocument = gql` + mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { + suggestMolecularProfileRevision(input: $input) { + clientMutationId + molecularProfile { + id + } + results { + newlyCreated + id + fieldName + } + } +} + `; + + @Injectable({ + providedIn: 'root' + }) + export class SuggestMolecularProfileRevisionGQL extends Apollo.Mutation { + document = SuggestMolecularProfileRevisionDocument; + + constructor(apollo: Apollo.Apollo) { + super(apollo); + } + } +export const SubmitSourceDocument = gql` + mutation SubmitSource($input: SuggestSourceInput!) { + suggestSource(input: $input) { + clientMutationId + sourceSuggestion { + id + } } } `; @@ -10485,41 +12148,43 @@ export const AcmgCodeTypeaheadDocument = gql` @Injectable({ providedIn: 'root' }) - export class AcmgCodeTypeaheadGQL extends Apollo.Query { - document = AcmgCodeTypeaheadDocument; + export class SubmitSourceGQL extends Apollo.Mutation { + document = SubmitSourceDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const ClingenCodeTypeaheadDocument = gql` - query ClingenCodeTypeahead($code: String!) { - clingenCodesTypeahead(queryTerm: $code) { - id - code - description +export const VariantRevisableFieldsDocument = gql` + query VariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + ...RevisableVariantFields } } - `; + ${RevisableVariantFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class ClingenCodeTypeaheadGQL extends Apollo.Query { - document = ClingenCodeTypeaheadDocument; + export class VariantRevisableFieldsGQL extends Apollo.Query { + document = VariantRevisableFieldsDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const DiseaseTypeaheadDocument = gql` - query DiseaseTypeahead($name: String!) { - diseaseTypeahead(queryTerm: $name) { - id - name - displayName - doid - diseaseAliases +export const SuggestVariantRevisionDocument = gql` + mutation SuggestVariantRevision($input: SuggestVariantRevisionInput!) { + suggestVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } } } `; @@ -10527,37 +12192,43 @@ export const DiseaseTypeaheadDocument = gql` @Injectable({ providedIn: 'root' }) - export class DiseaseTypeaheadGQL extends Apollo.Query { - document = DiseaseTypeaheadDocument; + export class SuggestVariantRevisionGQL extends Apollo.Mutation { + document = SuggestVariantRevisionDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const AddDiseaseDocument = gql` - mutation AddDisease($name: String!, $doid: String) { - addDisease(input: {name: $name, doid: $doid}) { - ...AddDiseaseFields +export const VariantGroupRevisableFieldsDocument = gql` + query VariantGroupRevisableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupRevisableFields } } - ${AddDiseaseFieldsFragmentDoc}`; + ${VariantGroupRevisableFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class AddDiseaseGQL extends Apollo.Mutation { - document = AddDiseaseDocument; + export class VariantGroupRevisableFieldsGQL extends Apollo.Query { + document = VariantGroupRevisableFieldsDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const EvidenceTypeaheadDocument = gql` - query EvidenceTypeahead($id: Int!) { - evidenceItem(id: $id) { - id - status - name +export const SuggestVariantGroupRevisionDocument = gql` + mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { + suggestVariantGroupRevision(input: $input) { + clientMutationId + variantGroup { + id + } + results { + newlyCreated + id + fieldName + } } } `; @@ -10565,36 +12236,38 @@ export const EvidenceTypeaheadDocument = gql` @Injectable({ providedIn: 'root' }) - export class EvidenceTypeaheadGQL extends Apollo.Query { - document = EvidenceTypeaheadDocument; + export class SuggestVariantGroupRevisionGQL extends Apollo.Mutation { + document = SuggestVariantGroupRevisionDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const GeneTypeaheadDocument = gql` - query GeneTypeahead($entrezSymbol: String!) { - geneTypeahead(queryTerm: $entrezSymbol) { - ...GeneTypeaheadFields +export const VariantGroupSubmittableFieldsDocument = gql` + query VariantGroupSubmittableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...SubmittableVariantGroupFields } } - ${GeneTypeaheadFieldsFragmentDoc}`; + ${SubmittableVariantGroupFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class GeneTypeaheadGQL extends Apollo.Query { - document = GeneTypeaheadDocument; + export class VariantGroupSubmittableFieldsGQL extends Apollo.Query { + document = VariantGroupSubmittableFieldsDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const NccnGuidelineTypeaheadDocument = gql` - query NccnGuidelineTypeahead($name: String!) { - nccnGuidelinesTypeahead(queryTerm: $name) { - id - name +export const SubmitVariantGroupDocument = gql` + mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { + submitVariantGroup(input: $input) { + clientMutationId + variantGroup { + id + } } } `; @@ -10602,19 +12275,44 @@ export const NccnGuidelineTypeaheadDocument = gql` @Injectable({ providedIn: 'root' }) - export class NccnGuidelineTypeaheadGQL extends Apollo.Query { - document = NccnGuidelineTypeaheadDocument; + export class SubmitVariantGroupGQL extends Apollo.Mutation { + document = SubmitVariantGroupDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const PhenotypeTypeaheadDocument = gql` - query PhenotypeTypeahead($name: String!) { - phenotypeTypeahead(queryTerm: $name) { - hpoId +export const EntityTagsTestDocument = gql` + query EntityTagsTest($molecularProfileId: Int!, $geneId: Int!, $variantId: Int!, $therapyId: Int!, $diseaseId: Int!, $eid: Int!) { + evidenceItem(id: $eid) { + id + name + link + } + molecularProfile(id: $molecularProfileId) { + id + name + link + } + gene(id: $geneId) { + id + name + link + } + variant(id: $variantId) { + id + name + link + } + therapy(id: $therapyId) { + id + name + link + } + disease(id: $diseaseId) { id name + link } } `; @@ -10622,364 +12320,372 @@ export const PhenotypeTypeaheadDocument = gql` @Injectable({ providedIn: 'root' }) - export class PhenotypeTypeaheadGQL extends Apollo.Query { - document = PhenotypeTypeaheadDocument; + export class EntityTagsTestGQL extends Apollo.Query { + document = EntityTagsTestDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const CitationExistenceCheckDocument = gql` - query CitationExistenceCheck($sourceType: SourceSource!, $citationId: String!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) +export const AcmgCodeSelectTypeaheadDocument = gql` + query AcmgCodeSelectTypeahead($code: String!) { + acmgCodesTypeahead(queryTerm: $code) { + ...AcmgCodeSelectTypeaheadFields + } } - `; + ${AcmgCodeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class CitationExistenceCheckGQL extends Apollo.Query { - document = CitationExistenceCheckDocument; + export class AcmgCodeSelectTypeaheadGQL extends Apollo.Query { + document = AcmgCodeSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const CreateSourceStubDocument = gql` - mutation CreateSourceStub($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - id - citationId - sourceType - } +export const AcmgCodeSelectTagDocument = gql` + query AcmgCodeSelectTag($id: Int!) { + acmgCode(id: $id) { + ...AcmgCodeSelectTypeaheadFields } } - `; + ${AcmgCodeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class CreateSourceStubGQL extends Apollo.Mutation { - document = CreateSourceStubDocument; + export class AcmgCodeSelectTagGQL extends Apollo.Query { + document = AcmgCodeSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const CitationTypeaheadDocument = gql` - query CitationTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceTypeaheadResult +export const ClingenCodeSelectTypeaheadDocument = gql` + query ClingenCodeSelectTypeahead($code: String!) { + clingenCodesTypeahead(queryTerm: $code) { + ...ClingenCodeSelectTypeaheadFields } } - ${SourceTypeaheadResultFragmentDoc}`; + ${ClingenCodeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class CitationTypeaheadGQL extends Apollo.Query { - document = CitationTypeaheadDocument; + export class ClingenCodeSelectTypeaheadGQL extends Apollo.Query { + document = ClingenCodeSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const CheckRemoteCitationDocument = gql` - query CheckRemoteCitation($sourceType: SourceSource!, $citationId: String!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) +export const ClingenCodeSelectTagDocument = gql` + query ClingenCodeSelectTag($id: Int!) { + clingenCode(id: $id) { + ...ClingenCodeSelectTypeaheadFields + } } - `; + ${ClingenCodeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class CheckRemoteCitationGQL extends Apollo.Query { - document = CheckRemoteCitationDocument; + export class ClingenCodeSelectTagGQL extends Apollo.Query { + document = ClingenCodeSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const AddRemoteCitationDocument = gql` - mutation AddRemoteCitation($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - ...SourceStubFields - } +export const QuickAddDiseaseDocument = gql` + mutation QuickAddDisease($name: String!, $doid: String) { + addDisease(input: {name: $name, doid: $doid}) { + ...QuickAddDiseaseFields } } - ${SourceStubFieldsFragmentDoc}`; + ${QuickAddDiseaseFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class AddRemoteCitationGQL extends Apollo.Mutation { - document = AddRemoteCitationDocument; + export class QuickAddDiseaseGQL extends Apollo.Mutation { + document = QuickAddDiseaseDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SourceTypeaheadDocument = gql` - query SourceTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceTypeaheadResult +export const DiseaseSelectTypeaheadDocument = gql` + query DiseaseSelectTypeahead($name: String!) { + diseaseTypeahead(queryTerm: $name) { + ...DiseaseSelectTypeaheadFields } } - ${SourceTypeaheadResultFragmentDoc}`; + ${DiseaseSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SourceTypeaheadGQL extends Apollo.Query { - document = SourceTypeaheadDocument; + export class DiseaseSelectTypeaheadGQL extends Apollo.Query { + document = DiseaseSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const TherapyTypeaheadDocument = gql` - query TherapyTypeahead($name: String!) { - therapyTypeahead(queryTerm: $name) { - id - name - ncitId - therapyAliases +export const DiseaseSelectTagDocument = gql` + query DiseaseSelectTag($id: Int!) { + disease(id: $id) { + ...DiseaseSelectTypeaheadFields } } - `; + ${DiseaseSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class TherapyTypeaheadGQL extends Apollo.Query { - document = TherapyTypeaheadDocument; + export class DiseaseSelectTagGQL extends Apollo.Query { + document = DiseaseSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const AddTherapyDocument = gql` - mutation AddTherapy($name: String!, $ncitId: String) { - addTherapy(input: {name: $name, ncitId: $ncitId}) { - ...AddTherapyFields +export const EvidenceManagerDocument = gql` + query EvidenceManager($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { + evidenceItems( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + therapyName: $therapyName + id: $id + description: $description + evidenceLevel: $evidenceLevel + evidenceDirection: $evidenceDirection + significance: $significance + evidenceType: $evidenceType + evidenceRating: $rating + variantOrigin: $variantOrigin + variantId: $variantId + molecularProfileId: $molecularProfileId + assertionId: $assertionId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + diseaseId: $diseaseId + therapyId: $therapyId + sourceId: $sourceId + clinicalTrialId: $clinicalTrialId + molecularProfileName: $molecularProfileName + status: $status + sortBy: $sortBy + ) { + totalCount + pageCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...EvidenceManagerFields + } + } + nodes { + ...EvidenceManagerFields + } } } - ${AddTherapyFieldsFragmentDoc}`; + ${EvidenceManagerFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class AddTherapyGQL extends Apollo.Mutation { - document = AddTherapyDocument; + export class EvidenceManagerGQL extends Apollo.Query { + document = EvidenceManagerDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const VariantTypeaheadDocument = gql` - query VariantTypeahead($name: String!, $geneId: Int) { - variants(name: $name, geneId: $geneId, first: 20) { +export const EvidenceSelectTypeaheadDocument = gql` + query EvidenceSelectTypeahead($eid: Int!) { + evidenceItems(id: $eid) { nodes { - ...VariantTypeaheadFields + ...EvidenceSelectTypeaheadFields } } } - ${VariantTypeaheadFieldsFragmentDoc}`; + ${EvidenceSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class VariantTypeaheadGQL extends Apollo.Query { - document = VariantTypeaheadDocument; + export class EvidenceSelectTypeaheadGQL extends Apollo.Query { + document = EvidenceSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const AddVariantDocument = gql` - mutation AddVariant($name: String!, $geneId: Int!) { - addVariant(input: {name: $name, geneId: $geneId}) { - ...AddVariantFields +export const EvidenceSelectTagDocument = gql` + query EvidenceSelectTag($eid: Int!) { + evidenceItem(id: $eid) { + ...EvidenceSelectTypeaheadFields } } - ${AddVariantFieldsFragmentDoc}`; + ${EvidenceSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class AddVariantGQL extends Apollo.Mutation { - document = AddVariantDocument; + export class EvidenceSelectTagGQL extends Apollo.Query { + document = EvidenceSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const VariantSelectDocument = gql` - query VariantSelect($name: String!, $geneId: Int) { - variants(name: $name, first: 20, geneId: $geneId) { - nodes { - ...VariantTypeaheadFields - } +export const GeneSelectTypeaheadDocument = gql` + query GeneSelectTypeahead($entrezSymbol: String!) { + geneTypeahead(queryTerm: $entrezSymbol) { + ...GeneSelectTypeaheadFields } } - ${VariantTypeaheadFieldsFragmentDoc}`; + ${GeneSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class VariantSelectGQL extends Apollo.Query { - document = VariantSelectDocument; + export class GeneSelectTypeaheadGQL extends Apollo.Query { + document = GeneSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const VariantTypeTypeaheadDocument = gql` - query VariantTypeTypeahead($name: String!) { - variantTypeTypeahead(queryTerm: $name) { - name - soid - id +export const GeneSelectTagDocument = gql` + query GeneSelectTag($geneId: Int!) { + gene(id: $geneId) { + ...GeneSelectTypeaheadFields } } - `; + ${GeneSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class VariantTypeTypeaheadGQL extends Apollo.Query { - document = VariantTypeTypeaheadDocument; + export class GeneSelectTagGQL extends Apollo.Query { + document = GeneSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const EvidenceItemRevisableFieldsDocument = gql` - query EvidenceItemRevisableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...RevisableEvidenceFields +export const MolecularProfileSelectTypeaheadDocument = gql` + query MolecularProfileSelectTypeahead($name: String!, $geneId: Int) { + molecularProfiles(name: $name, geneId: $geneId, first: 25) { + nodes { + ...MolecularProfileSelectTypeaheadFields + } } } - ${RevisableEvidenceFieldsFragmentDoc}`; + ${MolecularProfileSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class EvidenceItemRevisableFieldsGQL extends Apollo.Query { - document = EvidenceItemRevisableFieldsDocument; + export class MolecularProfileSelectTypeaheadGQL extends Apollo.Query { + document = MolecularProfileSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SuggestEvidenceItemRevisionDocument = gql` - mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { - suggestEvidenceItemRevision(input: $input) { - clientMutationId - evidenceItem { - id - } - results { - newlyCreated - } +export const MolecularProfileSelectTagDocument = gql` + query MolecularProfileSelectTag($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...MolecularProfileSelectTypeaheadFields } } - `; + ${MolecularProfileSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SuggestEvidenceItemRevisionGQL extends Apollo.Mutation { - document = SuggestEvidenceItemRevisionDocument; + export class MolecularProfileSelectTagGQL extends Apollo.Query { + document = MolecularProfileSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const EvidenceFieldsFromSourceSuggestionDocument = gql` - query EvidenceFieldsFromSourceSuggestion($sourceId: Int, $molecularProfileId: Int, $diseaseId: Int) { - sourceSuggestionValues( - molecularProfileId: $molecularProfileId - diseaseId: $diseaseId - sourceId: $sourceId - ) { - molecularProfile { +export const PreviewMolecularProfileName2Document = gql` + query PreviewMolecularProfileName2($mpStructure: MolecularProfileComponentInput) { + previewMolecularProfileName(structure: $mpStructure) { + existingMolecularProfile { id name link } - disease { - id - name - link + segments { + ...PreviewMpName2 } - source { + deprecatedVariants { id - sourceType - citationId - citation + name link } } } - `; - - @Injectable({ - providedIn: 'root' - }) - export class EvidenceFieldsFromSourceSuggestionGQL extends Apollo.Query { - document = EvidenceFieldsFromSourceSuggestionDocument; - - constructor(apollo: Apollo.Apollo) { - super(apollo); - } - } -export const EvidenceSubmittableFieldsDocument = gql` - query EvidenceSubmittableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...SubmittableEvidenceFields - } -} - ${SubmittableEvidenceFieldsFragmentDoc}`; + ${PreviewMpName2FragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class EvidenceSubmittableFieldsGQL extends Apollo.Query { - document = EvidenceSubmittableFieldsDocument; + export class PreviewMolecularProfileName2GQL extends Apollo.Query { + document = PreviewMolecularProfileName2Document; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SubmitEvidenceItemDocument = gql` - mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { - submitEvidence(input: $input) { - clientMutationId - evidenceItem { - id - } - } +export const MpExpressionEditorPrepopulateDocument = gql` + query MpExpressionEditorPrepopulate($mpId: Int!) { + molecularProfile(id: $mpId) { + id + parsedName { + ...MolecularProfileParsedName + } + rawName + } } - `; + ${MolecularProfileParsedNameFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SubmitEvidenceItemGQL extends Apollo.Mutation { - document = SubmitEvidenceItemDocument; + export class MpExpressionEditorPrepopulateGQL extends Apollo.Query { + document = MpExpressionEditorPrepopulateDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const FlagEntityDocument = gql` - mutation FlagEntity($input: FlagEntityInput!) { - flagEntity(input: $input) { - flag { +export const CreateMolecularProfile2Document = gql` + mutation CreateMolecularProfile2($mpStructure: MolecularProfileComponentInput!) { + createMolecularProfile(input: {structure: $mpStructure}) { + molecularProfile { id + name + link } } } @@ -10988,124 +12694,108 @@ export const FlagEntityDocument = gql` @Injectable({ providedIn: 'root' }) - export class FlagEntityGQL extends Apollo.Mutation { - document = FlagEntityDocument; + export class CreateMolecularProfile2GQL extends Apollo.Mutation { + document = CreateMolecularProfile2Document; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const ResolveFlagDocument = gql` - mutation ResolveFlag($input: ResolveFlagInput!) { - resolveFlag(input: $input) { - flag { - id - } +export const NccnGuidelineSelectTypeaheadDocument = gql` + query NccnGuidelineSelectTypeahead($name: String!) { + nccnGuidelinesTypeahead(queryTerm: $name) { + ...NccnGuidelineSelectTypeaheadFields } } - `; + ${NccnGuidelineSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class ResolveFlagGQL extends Apollo.Mutation { - document = ResolveFlagDocument; + export class NccnGuidelineSelectTypeaheadGQL extends Apollo.Query { + document = NccnGuidelineSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const GeneRevisableFieldsDocument = gql` - query GeneRevisableFields($geneId: Int!) { - gene(id: $geneId) { - ...RevisableGeneFields +export const NccnGuidelineSelectTagDocument = gql` + query NccnGuidelineSelectTag($id: Int!) { + nccnGuideline(id: $id) { + ...NccnGuidelineSelectTypeaheadFields } } - ${RevisableGeneFieldsFragmentDoc}`; + ${NccnGuidelineSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class GeneRevisableFieldsGQL extends Apollo.Query { - document = GeneRevisableFieldsDocument; + export class NccnGuidelineSelectTagGQL extends Apollo.Query { + document = NccnGuidelineSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SuggestGeneRevisionDocument = gql` - mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { - suggestGeneRevision(input: $input) { - clientMutationId - results { - newlyCreated - id - fieldName - } +export const PhenotypeSelectTypeaheadDocument = gql` + query PhenotypeSelectTypeahead($name: String!) { + phenotypeTypeahead(queryTerm: $name) { + ...PhenotypeSelectTypeaheadFields } } - `; + ${PhenotypeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SuggestGeneRevisionGQL extends Apollo.Mutation { - document = SuggestGeneRevisionDocument; + export class PhenotypeSelectTypeaheadGQL extends Apollo.Query { + document = PhenotypeSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const MolecularProfileRevisableFieldsDocument = gql` - query MolecularProfileRevisableFields($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...RevisableMolecularProfileFields +export const PhenotypeSelectTagDocument = gql` + query PhenotypeSelectTag($id: Int!) { + phenotype(id: $id) { + ...PhenotypeSelectTypeaheadFields } } - ${RevisableMolecularProfileFieldsFragmentDoc}`; + ${PhenotypeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class MolecularProfileRevisableFieldsGQL extends Apollo.Query { - document = MolecularProfileRevisableFieldsDocument; + export class PhenotypeSelectTagGQL extends Apollo.Query { + document = PhenotypeSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SuggestMolecularProfileRevisionDocument = gql` - mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { - suggestMolecularProfileRevision(input: $input) { - clientMutationId - molecularProfile { - id - } - results { - newlyCreated - id - fieldName - } - } +export const QuickAddSourceCheckCitationDocument = gql` + query QuickAddSourceCheckCitation($sourceType: SourceSource!, $citationId: String!) { + remoteCitation(sourceType: $sourceType, citationId: $citationId) } `; @Injectable({ providedIn: 'root' }) - export class SuggestMolecularProfileRevisionGQL extends Apollo.Mutation { - document = SuggestMolecularProfileRevisionDocument; + export class QuickAddSourceCheckCitationGQL extends Apollo.Query { + document = QuickAddSourceCheckCitationDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SuggestSourceDocument = gql` - mutation SuggestSource($input: SuggestSourceInput!) { - suggestSource(input: $input) { - clientMutationId - sourceSuggestion { +export const QuickAddSourceRemoteCitationDocument = gql` + mutation QuickAddSourceRemoteCitation($input: AddRemoteCitationInput!) { + addRemoteCitation(input: $input) { + newSource { id + citationId + sourceType } } } @@ -11114,299 +12804,241 @@ export const SuggestSourceDocument = gql` @Injectable({ providedIn: 'root' }) - export class SuggestSourceGQL extends Apollo.Mutation { - document = SuggestSourceDocument; + export class QuickAddSourceRemoteCitationGQL extends Apollo.Mutation { + document = QuickAddSourceRemoteCitationDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const UpdateSourceSuggestionDocument = gql` - mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } +export const SourceSelectTypeaheadDocument = gql` + query SourceSelectTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { + sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { + ...SourceSelectTypeaheadFields } } - `; + ${SourceSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class UpdateSourceSuggestionGQL extends Apollo.Mutation { - document = UpdateSourceSuggestionDocument; + export class SourceSelectTypeaheadGQL extends Apollo.Query { + document = SourceSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const UpdateCoiDocument = gql` - mutation UpdateCoi($input: UpdateCoiInput!) { - updateCoi(input: $input) { - coiStatement { - coiPresent - coiStatus - createdAt - id - } +export const SourceSelectTagDocument = gql` + query SourceSelectTag($id: Int!) { + source(id: $id) { + ...SourceSelectTypeaheadFields } } - `; + ${SourceSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class UpdateCoiGQL extends Apollo.Mutation { - document = UpdateCoiDocument; + export class SourceSelectTagGQL extends Apollo.Query { + document = SourceSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const UpdateUserProfileDocument = gql` - mutation UpdateUserProfile($input: EditUserInput!) { - editUser(input: $input) { - user { - id - } +export const QuickAddTherapyDocument = gql` + mutation QuickAddTherapy($name: String!, $ncitId: String) { + addTherapy(input: {name: $name, ncitId: $ncitId}) { + ...QuickAddTherapyFields } } - `; + ${QuickAddTherapyFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class UpdateUserProfileGQL extends Apollo.Mutation { - document = UpdateUserProfileDocument; + export class QuickAddTherapyGQL extends Apollo.Mutation { + document = QuickAddTherapyDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const CountriesDocument = gql` - query Countries { - countries { - id - name +export const TherapySelectTypeaheadDocument = gql` + query TherapySelectTypeahead($name: String!) { + therapyTypeahead(queryTerm: $name) { + ...TherapySelectTypeaheadFields } } - `; + ${TherapySelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class CountriesGQL extends Apollo.Query { - document = CountriesDocument; + export class TherapySelectTypeaheadGQL extends Apollo.Query { + document = TherapySelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const DeprecateVariantDocument = gql` - mutation DeprecateVariant($variantId: Int!, $deprecationReason: DeprecationReason!, $comment: String!, $organizationId: Int) { - deprecateVariant( - input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} - ) { - newlyDeprecatedMolecularProfiles { - id - } - variant { - id - name - } +export const TherapySelectTagDocument = gql` + query TherapySelectTag($id: Int!) { + therapy(id: $id) { + ...TherapySelectTypeaheadFields } } - `; + ${TherapySelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class DeprecateVariantGQL extends Apollo.Mutation { - document = DeprecateVariantDocument; + export class TherapySelectTagGQL extends Apollo.Query { + document = TherapySelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const MolecularProfilesForVariantDocument = gql` - query MolecularProfilesForVariant($variantId: Int!) { - molecularProfiles(variantId: $variantId, first: 50) { - nodes { - id - name - link - evidenceCountsByStatus { - submittedCount - acceptedCount +export const VariantManagerDocument = gql` + query VariantManager($variantName: String, $entrezSymbol: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + browseVariants( + variantName: $variantName + entrezSymbol: $entrezSymbol + diseaseName: $diseaseName + therapyName: $therapyName + variantAlias: $variantAlias + variantTypeId: $variantTypeId + variantGroupId: $variantGroupId + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseVariantsFields } } + totalCount + filteredCount + pageCount } } - `; + ${BrowseVariantsFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class MolecularProfilesForVariantGQL extends Apollo.Query { - document = MolecularProfilesForVariantDocument; + export class VariantManagerGQL extends Apollo.Query { + document = VariantManagerDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SuggestVariantGroupRevisionDocument = gql` - mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { - suggestVariantGroupRevision(input: $input) { - clientMutationId - variantGroup { - id - } - results { - newlyCreated - id - fieldName - } +export const QuickAddVariantDocument = gql` + mutation QuickAddVariant($name: String!, $geneId: Int!) { + addVariant(input: {name: $name, geneId: $geneId}) { + ...QuickAddVariantFields } } - `; + ${QuickAddVariantFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SuggestVariantGroupRevisionGQL extends Apollo.Mutation { - document = SuggestVariantGroupRevisionDocument; + export class QuickAddVariantGQL extends Apollo.Mutation { + document = QuickAddVariantDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const VariantGroupSubmittableFieldsDocument = gql` - query VariantGroupSubmittableFields($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...SubmittableVariantGroupFields +export const VariantSelectTypeaheadDocument = gql` + query VariantSelectTypeahead($name: String!, $geneId: Int) { + variants(name: $name, geneId: $geneId, first: 50) { + totalCount + edges { + node { + ...VariantSelectTypeaheadFields + } + } + nodes { + ...VariantSelectTypeaheadFields + } } } - ${SubmittableVariantGroupFieldsFragmentDoc}`; + ${VariantSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class VariantGroupSubmittableFieldsGQL extends Apollo.Query { - document = VariantGroupSubmittableFieldsDocument; + export class VariantSelectTypeaheadGQL extends Apollo.Query { + document = VariantSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SubmitVariantGroupDocument = gql` - mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { - submitVariantGroup(input: $input) { - clientMutationId - variantGroup { - id - } +export const VariantSelectTagDocument = gql` + query VariantSelectTag($variantId: Int!) { + variant(id: $variantId) { + ...VariantSelectTypeaheadFields } } - `; + ${VariantSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SubmitVariantGroupGQL extends Apollo.Mutation { - document = SubmitVariantGroupDocument; + export class VariantSelectTagGQL extends Apollo.Query { + document = VariantSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const VariantRevisableFieldsDocument = gql` - query VariantRevisableFields($variantId: Int!) { - variant(id: $variantId) { - ...RevisableVariantFields +export const VariantTypeSelectTypeaheadDocument = gql` + query VariantTypeSelectTypeahead($name: String!) { + variantTypeTypeahead(queryTerm: $name) { + ...VariantTypeSelectTypeaheadFields } } - ${RevisableVariantFieldsFragmentDoc}`; + ${VariantTypeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class VariantRevisableFieldsGQL extends Apollo.Query { - document = VariantRevisableFieldsDocument; + export class VariantTypeSelectTypeaheadGQL extends Apollo.Query { + document = VariantTypeSelectTypeaheadDocument; constructor(apollo: Apollo.Apollo) { super(apollo); } } -export const SuggestVariantRevisionDocument = gql` - mutation SuggestVariantRevision($input: SuggestVariantRevisionInput!) { - suggestVariantRevision(input: $input) { - clientMutationId - variant { - id - revisions { - totalCount - edges { - node { - id - revisionsetId - createdAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - addedObjects { - id - displayName - displayType - entityType - } - removedObjects { - id - displayName - displayType - entityType - } - keptObjects { - id - displayName - displayType - entityType - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - revisor { - id - name - } - status - } - } - } - } - results { - id - fieldName - newlyCreated - } +export const VariantTypeSelectTagDocument = gql` + query VariantTypeSelectTag($id: Int!) { + variantType(id: $id) { + ...VariantTypeSelectTypeaheadFields } } - `; + ${VariantTypeSelectTypeaheadFieldsFragmentDoc}`; @Injectable({ providedIn: 'root' }) - export class SuggestVariantRevisionGQL extends Apollo.Mutation { - document = SuggestVariantRevisionDocument; + export class VariantTypeSelectTagGQL extends Apollo.Query { + document = VariantTypeSelectTagDocument; constructor(apollo: Apollo.Apollo) { super(apollo); @@ -11665,11 +13297,6 @@ export const OrganizationDetailDocument = gql` export const OrganizationGroupsDocument = gql` query OrganizationGroups($organizationId: Int!) { organization(id: $organizationId) { - id - name - url - description - profileImagePath(size: 256) subGroups { ...OrganizationGroupsFields } @@ -11727,6 +13354,7 @@ export const PhenotypeDetailDocument = gql` phenotype(id: $phenotypeId) { id name + description hpoId url link @@ -12013,7 +13641,7 @@ export const VariantGroupRevisionsDocument = gql` edges { node { id - revisionsetId + revisionSetId createdAt fieldName currentValue diff --git a/server/db/schema.rb b/server/db/schema.rb index 0c8ca47e9..0803e3501 100644 --- a/server/db/schema.rb +++ b/server/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2023_01_23_170814) do +ActiveRecord::Schema.define(version: 2023_08_31_142739) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -56,6 +56,31 @@ t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true end + create_table "activities", force: :cascade do |t| + t.text "type", null: false + t.bigint "user_id", null: false + t.bigint "organization_id" + t.string "subject_type", null: false + t.bigint "subject_id", null: false + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.text "verbiage" + t.index ["organization_id"], name: "index_activities_on_organization_id" + t.index ["subject_type", "subject_id"], name: "index_activities_on_subject" + t.index ["type"], name: "index_activities_on_type" + t.index ["user_id"], name: "index_activities_on_user_id" + end + + create_table "activity_linked_entities", force: :cascade do |t| + t.string "entity_type", null: false + t.bigint "entity_id", null: false + t.bigint "activity_id", null: false + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + t.index ["activity_id"], name: "index_activity_linked_entities_on_activity_id" + t.index ["entity_type", "entity_id"], name: "index_activity_linked_entities_on_entity" + end + create_table "advanced_searches", id: :serial, force: :cascade do |t| t.datetime "created_at" t.datetime "updated_at" @@ -358,6 +383,7 @@ t.text "user_role" t.string "originating_object_type" t.bigint "originating_object_id" + t.integer "activity_id" t.index ["organization_id"], name: "index_events_on_organization_id" t.index ["originating_object_id", "originating_object_type"], name: "idx_event_originating_obj" t.index ["originating_object_type", "originating_object_id"], name: "index_events_on_originating_object" @@ -556,6 +582,7 @@ create_table "phenotypes", id: :serial, force: :cascade do |t| t.text "hpo_id" t.text "hpo_class" + t.text "description" t.index ["hpo_id"], name: "index_phenotypes_on_hpo_id" end @@ -582,6 +609,11 @@ t.index ["abbreviation"], name: "index_regulatory_agencies_on_abbreviation" end + create_table "revision_sets", force: :cascade do |t| + t.datetime "created_at", precision: 6, null: false + t.datetime "updated_at", precision: 6, null: false + end + create_table "revisions", force: :cascade do |t| t.string "subject_type" t.bigint "subject_id" @@ -591,7 +623,8 @@ t.jsonb "suggested_value" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false - t.uuid "revisionset_id", null: false + t.uuid "revisionset_id" + t.integer "revision_set_id" t.index ["created_at"], name: "index_revisions_on_created_at" t.index ["field_name"], name: "index_revisions_on_field_name" t.index ["revisionset_id"], name: "index_revisions_on_revisionset_id" @@ -637,11 +670,11 @@ t.text "journal" t.string "full_journal_title" t.text "title" - t.text "status", default: "fully curated", null: false t.boolean "is_review" t.integer "source_type", null: false t.integer "asco_abstract_id" t.text "asco_presenter" + t.text "status", default: "fully curated", null: false t.index ["asco_abstract_id"], name: "index_sources_on_asco_abstract_id" t.index ["asco_presenter"], name: "index_sources_on_asco_presenter" t.index ["citation_id"], name: "index_sources_on_citation_id" @@ -851,6 +884,8 @@ add_foreign_key "acmg_codes_assertions", "assertions" add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" + add_foreign_key "activities", "organizations" + add_foreign_key "activities", "users" add_foreign_key "assertions", "nccn_guidelines" add_foreign_key "assertions_clingen_codes", "assertions" add_foreign_key "assertions_clingen_codes", "clingen_codes" @@ -874,6 +909,7 @@ add_foreign_key "disease_aliases_diseases", "diseases" add_foreign_key "domain_expert_tags", "users" add_foreign_key "entity_mentions", "comments" + add_foreign_key "events", "activities" add_foreign_key "events", "organizations" add_foreign_key "events", "users", column: "originating_user_id" add_foreign_key "evidence_items", "diseases" @@ -898,6 +934,7 @@ add_foreign_key "notifications", "users", column: "originating_user_id" add_foreign_key "organizations", "organizations", column: "parent_id" add_foreign_key "regulatory_agencies", "countries" + add_foreign_key "revisions", "revision_sets" add_foreign_key "role_mentions", "comments" add_foreign_key "source_suggestions", "diseases" add_foreign_key "source_suggestions", "molecular_profiles" @@ -936,73 +973,6 @@ JOIN evidence_items ei ON (((mp.id = ei.molecular_profile_id) AND (ei.deleted = false)))) GROUP BY mp.id; SQL - create_view "gene_browse_table_rows", materialized: true, sql_definition: <<-SQL - SELECT outer_genes.id, - outer_genes.name, - outer_genes.entrez_id, - outer_genes.flagged, - array_agg(DISTINCT gene_aliases.name ORDER BY gene_aliases.name) AS alias_names, - json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, - json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, - count(DISTINCT variants.id) AS variant_count, - count(DISTINCT evidence_items.id) AS evidence_item_count, - count(DISTINCT assertions.id) AS assertion_count - FROM ((((((((((((genes outer_genes - LEFT JOIN gene_aliases_genes ON ((gene_aliases_genes.gene_id = outer_genes.id))) - LEFT JOIN gene_aliases ON ((gene_aliases.id = gene_aliases_genes.gene_alias_id))) - JOIN variants ON ((variants.gene_id = outer_genes.id))) - JOIN molecular_profiles_variants ON ((molecular_profiles_variants.variant_id = variants.id))) - JOIN molecular_profiles ON ((molecular_profiles.id = molecular_profiles_variants.molecular_profile_id))) - JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) - LEFT JOIN diseases ON ((diseases.id = evidence_items.disease_id))) - LEFT JOIN evidence_items_therapies ON ((evidence_items_therapies.evidence_item_id = evidence_items.id))) - LEFT JOIN therapies ON ((therapies.id = evidence_items_therapies.therapy_id))) - LEFT JOIN assertions ON ((assertions.molecular_profile_id = molecular_profiles.id))) - LEFT JOIN LATERAL ( SELECT therapies_1.id AS therapy_id, - count(DISTINCT evidence_items_1.id) AS total - FROM (((((evidence_items evidence_items_1 - JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) - JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) - JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) - WHERE (variants_1.gene_id = outer_genes.id) - GROUP BY therapies_1.id) therapy_count ON ((therapies.id = therapy_count.therapy_id))) - LEFT JOIN LATERAL ( SELECT diseases_1.id AS disease_id, - count(DISTINCT evidence_items_1.id) AS total - FROM ((((evidence_items evidence_items_1 - JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) - JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) - JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) - JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) - WHERE (variants_1.gene_id = outer_genes.id) - GROUP BY diseases_1.id) disease_count ON ((diseases.id = disease_count.disease_id))) - WHERE ((evidence_items.status)::text <> 'rejected'::text) - GROUP BY outer_genes.id, outer_genes.name, outer_genes.entrez_id; - SQL - add_index "gene_browse_table_rows", ["id"], name: "index_gene_browse_table_rows_on_id", unique: true - - create_view "source_browse_table_rows", materialized: true, sql_definition: <<-SQL - SELECT sources.id, - sources.source_type, - sources.citation_id, - array_agg(DISTINCT concat(authors.last_name, ', ', authors.fore_name)) FILTER (WHERE ((authors.fore_name <> ''::text) OR (authors.last_name <> ''::text))) AS authors, - sources.publication_year, - sources.asco_presenter, - sources.journal, - sources.title, - sources.citation, - count(DISTINCT evidence_items.id) AS evidence_item_count, - count(DISTINCT source_suggestions.id) AS source_suggestion_count - FROM ((((sources - LEFT JOIN authors_sources ON ((sources.id = authors_sources.source_id))) - LEFT JOIN authors ON ((authors.id = authors_sources.author_id))) - LEFT JOIN evidence_items ON ((evidence_items.source_id = sources.id))) - LEFT JOIN source_suggestions ON ((source_suggestions.source_id = sources.id))) - GROUP BY sources.id, sources.source_type, sources.publication_year, sources.journal, sources.title; - SQL - add_index "source_browse_table_rows", ["id"], name: "index_source_browse_table_rows_on_id", unique: true - create_view "variant_group_browse_table_rows", materialized: true, sql_definition: <<-SQL SELECT variant_groups.id, variant_groups.name, @@ -1093,6 +1063,75 @@ SQL add_index "variant_browse_table_rows", ["id"], name: "index_variant_browse_table_rows_on_id", unique: true + create_view "gene_browse_table_rows", materialized: true, sql_definition: <<-SQL + SELECT outer_genes.id, + outer_genes.name, + outer_genes.entrez_id, + outer_genes.flagged, + array_agg(DISTINCT gene_aliases.name ORDER BY gene_aliases.name) AS alias_names, + json_agg(DISTINCT jsonb_build_object('name', diseases.name, 'id', diseases.id, 'total', disease_count.total)) FILTER (WHERE (diseases.name IS NOT NULL)) AS diseases, + json_agg(DISTINCT jsonb_build_object('name', therapies.name, 'id', therapies.id, 'total', therapy_count.total)) FILTER (WHERE (therapies.name IS NOT NULL)) AS therapies, + count(DISTINCT variants.id) AS variant_count, + count(DISTINCT evidence_items.id) AS evidence_item_count, + count(DISTINCT assertions.id) AS assertion_count, + count(DISTINCT molecular_profiles.id) AS molecular_profile_count + FROM ((((((((((((genes outer_genes + LEFT JOIN gene_aliases_genes ON ((gene_aliases_genes.gene_id = outer_genes.id))) + LEFT JOIN gene_aliases ON ((gene_aliases.id = gene_aliases_genes.gene_alias_id))) + JOIN variants ON ((variants.gene_id = outer_genes.id))) + JOIN molecular_profiles_variants ON ((molecular_profiles_variants.variant_id = variants.id))) + JOIN molecular_profiles ON ((molecular_profiles.id = molecular_profiles_variants.molecular_profile_id))) + JOIN evidence_items ON ((evidence_items.molecular_profile_id = molecular_profiles.id))) + LEFT JOIN diseases ON ((diseases.id = evidence_items.disease_id))) + LEFT JOIN evidence_items_therapies ON ((evidence_items_therapies.evidence_item_id = evidence_items.id))) + LEFT JOIN therapies ON ((therapies.id = evidence_items_therapies.therapy_id))) + LEFT JOIN assertions ON ((assertions.molecular_profile_id = molecular_profiles.id))) + LEFT JOIN LATERAL ( SELECT therapies_1.id AS therapy_id, + count(DISTINCT evidence_items_1.id) AS total + FROM (((((evidence_items evidence_items_1 + JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) + JOIN evidence_items_therapies evidence_items_therapies_1 ON ((evidence_items_therapies_1.evidence_item_id = evidence_items_1.id))) + JOIN therapies therapies_1 ON ((therapies_1.id = evidence_items_therapies_1.therapy_id))) + WHERE (variants_1.gene_id = outer_genes.id) + GROUP BY therapies_1.id) therapy_count ON ((therapies.id = therapy_count.therapy_id))) + LEFT JOIN LATERAL ( SELECT diseases_1.id AS disease_id, + count(DISTINCT evidence_items_1.id) AS total + FROM ((((evidence_items evidence_items_1 + JOIN molecular_profiles molecular_profiles_1 ON ((molecular_profiles_1.id = evidence_items_1.molecular_profile_id))) + JOIN molecular_profiles_variants molecular_profiles_variants_1 ON ((molecular_profiles_variants_1.molecular_profile_id = molecular_profiles_1.id))) + JOIN variants variants_1 ON ((variants_1.id = molecular_profiles_variants_1.variant_id))) + JOIN diseases diseases_1 ON ((diseases_1.id = evidence_items_1.disease_id))) + WHERE (variants_1.gene_id = outer_genes.id) + GROUP BY diseases_1.id) disease_count ON ((diseases.id = disease_count.disease_id))) + WHERE (((evidence_items.status)::text <> 'rejected'::text) AND (molecular_profiles.deprecated = false) AND (variants.deprecated = false)) + GROUP BY outer_genes.id, outer_genes.name, outer_genes.entrez_id; + SQL + add_index "gene_browse_table_rows", ["id"], name: "index_gene_browse_table_rows_on_id", unique: true + + create_view "source_browse_table_rows", materialized: true, sql_definition: <<-SQL + SELECT sources.id, + sources.source_type, + sources.citation_id, + array_agg(DISTINCT concat(authors.last_name, ', ', authors.fore_name)) FILTER (WHERE ((authors.fore_name <> ''::text) OR (authors.last_name <> ''::text))) AS authors, + sources.publication_year, + sources.asco_presenter, + sources.journal, + sources.title, + sources.citation, + sources.open_access, + count(DISTINCT evidence_items.id) AS evidence_item_count, + count(DISTINCT source_suggestions.id) AS source_suggestion_count + FROM ((((sources + LEFT JOIN authors_sources ON ((sources.id = authors_sources.source_id))) + LEFT JOIN authors ON ((authors.id = authors_sources.author_id))) + LEFT JOIN evidence_items ON ((evidence_items.source_id = sources.id))) + LEFT JOIN source_suggestions ON ((source_suggestions.source_id = sources.id))) + GROUP BY sources.id, sources.source_type, sources.publication_year, sources.journal, sources.title; + SQL + add_index "source_browse_table_rows", ["id"], name: "index_source_browse_table_rows_on_id", unique: true + create_view "molecular_profile_browse_table_rows", materialized: true, sql_definition: <<-SQL SELECT outer_mps.id, outer_mps.raw_name,