) => {
+ const labelComponent = props.label && (
+
+ );
+
+ return (
+
+ {labelComponent}
+ ,
+ key: `${props.firebasePath}-write`,
+ },
+ {
+ title: 'Preview',
+ getContent: () => ,
+ key: `${props.firebasePath}-preview`,
+ },
+ ]}
+ toolbars={{
+ default: (
+
+ ),
+ }}
+ >
+
+ );
+};
+
/**
* Checkbox and Radio inputs
*/
diff --git a/src/main/webapp/app/shared/tab/TabsContainer.tsx b/src/main/webapp/app/shared/tab/TabsContainer.tsx
new file mode 100644
index 000000000..98bdc2359
--- /dev/null
+++ b/src/main/webapp/app/shared/tab/TabsContainer.tsx
@@ -0,0 +1,55 @@
+import React, { useMemo, useState } from 'react';
+import './tabs-container.scss';
+
+export type Tabs = {
+ title: string;
+ getContent: () => JSX.Element;
+ key: string;
+}[];
+
+export type ToolbarMap = {
+ [K in T[number]['key']]?: React.ReactNode;
+} & {
+ // Toolbar shown on all tabs if no specific key matches
+ default?: React.ReactNode;
+};
+
+export interface ITabsContainer {
+ tabs: Tabs;
+ toolbars?: ToolbarMap;
+}
+
+export default function TabsContainer({ tabs, toolbars }: ITabsContainer) {
+ const [selectedTab, setSelectedTab] = useState(tabs[0].key);
+
+ const activeToolbar = useMemo(() => {
+ if (toolbars?.[selectedTab]) {
+ return toolbars[selectedTab];
+ }
+ if (toolbars?.default) {
+ return toolbars.default;
+ }
+ return <>>;
+ }, []);
+
+ const activeTabIndex = tabs.findIndex(value => value.key === selectedTab);
+
+ return (
+
+
+
+ {tabs.map(tab => (
+ -
+
+
+ ))}
+
+
{activeToolbar}
+
+
+
{activeTabIndex > -1 ? tabs[activeTabIndex].getContent() : <>>}
+
+ );
+}
diff --git a/src/main/webapp/app/shared/tab/tabs-container.scss b/src/main/webapp/app/shared/tab/tabs-container.scss
new file mode 100644
index 000000000..c249c3758
--- /dev/null
+++ b/src/main/webapp/app/shared/tab/tabs-container.scss
@@ -0,0 +1,70 @@
+.comment-box {
+ background-color: #ffffff;
+ border: 1px solid #d0d7de;
+ border-radius: 6px;
+
+ .nav-tabs {
+ margin-bottom: 0;
+
+ .nav-link {
+ border: none;
+ border-bottom: 2px solid transparent;
+ color: #57606a;
+ font-weight: 500;
+
+ &.active {
+ color: #24292f;
+ border-bottom-color: #0969da;
+ background-color: transparent;
+ }
+
+ &:hover {
+ color: #1f2328;
+ }
+ }
+ }
+
+ .toolbar {
+ button {
+ padding: 2px 4px;
+ font-size: 23px;
+ line-height: 1.5;
+ border-radius: 6px;
+ height: 32px;
+ width: 32px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ &:hover {
+ background-color: #f3f4f6;
+ }
+ }
+ }
+
+ .preview {
+ background-color: #ffffff;
+ border: 1px solid #d0d7de;
+ border-radius: 6px;
+ min-height: 10rem;
+
+ p {
+ margin-bottom: 0.5rem;
+ }
+ }
+
+ .btn-primary {
+ background-color: #2da44e;
+ border-color: #2da44e;
+
+ &:hover {
+ background-color: #218739;
+ border-color: #1f7a32;
+ }
+
+ &:disabled {
+ background-color: #94d3a2;
+ border-color: #94d3a2;
+ }
+ }
+}
From 8755f9972aa7824523919f1cabcf8b3d69a912e1 Mon Sep 17 00:00:00 2001
From: Calvin Lu <59149377+calvinlu3@users.noreply.github.com>
Date: Tue, 29 Apr 2025 16:20:33 -0400
Subject: [PATCH 2/3] Add textarea preview
---
.../security/SecurityConfigurationOAuth.java | 1 +
.../oncokb/curation/web/rest/ApiProxy.java | 2 +-
.../collapsible/CancerTypeCollapsible.tsx | 10 +
.../collapsible/MutationCollapsible.tsx | 2 +
.../collapsible/TherapyCollapsible.tsx | 2 +
src/main/webapp/app/shared/api/clients.ts | 3 +
.../api/generated/defaultCore/.gitignore | 4 +
.../api/generated/defaultCore/.npmignore | 1 +
.../defaultCore/.openapi-generator-ignore | 23 +
.../defaultCore/.openapi-generator/FILES | 61 +
.../defaultCore/.openapi-generator/VERSION | 1 +
.../shared/api/generated/defaultCore/api.ts | 5902 +++++++++++++++++
.../shared/api/generated/defaultCore/base.ts | 91 +
.../api/generated/defaultCore/common.ts | 148 +
.../generated/defaultCore/configuration.ts | 122 +
.../generated/defaultCore/docs/Alteration.md | 35 +
.../AnnotateMutationByGenomicChangeQuery.md | 27 +
.../docs/AnnotateMutationByHGVSgQuery.md | 27 +
.../defaultCore/docs/AnnotatedVariant.md | 45 +
.../defaultCore/docs/ApiHttpError.md | 27 +
.../api/generated/defaultCore/docs/Article.md | 41 +
.../defaultCore/docs/ArticleAbstract.md | 21 +
.../defaultCore/docs/BiologicalVariant.md | 33 +
.../defaultCore/docs/CancerTypeCount.md | 21 +
.../generated/defaultCore/docs/Citations.md | 21 +
.../defaultCore/docs/ClinicalVariant.md | 41 +
.../defaultCore/docs/CplAnnotationRequest.md | 27 +
.../defaultCore/docs/DownloadAvailability.md | 31 +
.../api/generated/defaultCore/docs/Drug.md | 21 +
.../generated/defaultCore/docs/DrugSynonym.md | 23 +
.../generated/defaultCore/docs/DrugsApi.md | 58 +
.../generated/defaultCore/docs/EnsemblGene.md | 31 +
.../defaultCore/docs/EnsemblTranscript.md | 39 +
.../generated/defaultCore/docs/Evidence.md | 55 +
.../api/generated/defaultCore/docs/Exon.md | 29 +
.../api/generated/defaultCore/docs/Gene.md | 37 +
.../generated/defaultCore/docs/GeneNumber.md | 33 +
.../api/generated/defaultCore/docs/Geneset.md | 25 +
.../docs/GenomeNexusAnnotatedVariantInfo.md | 37 +
.../generated/defaultCore/docs/Implication.md | 29 +
.../docs/IndicatorQueryTreatment.md | 37 +
.../generated/defaultCore/docs/LevelNumber.md | 21 +
.../generated/defaultCore/docs/MainNumber.md | 27 +
.../defaultCore/docs/MainNumberLevel.md | 21 +
.../generated/defaultCore/docs/MainType.md | 25 +
.../defaultCore/docs/MatchVariant.md | 21 +
.../defaultCore/docs/MatchVariantRequest.md | 21 +
.../defaultCore/docs/MatchVariantResult.md | 21 +
.../defaultCore/docs/MutationEffectResp.md | 23 +
.../defaultCore/docs/PfamDomainRange.md | 23 +
.../defaultCore/docs/PortalAlteration.md | 33 +
.../api/generated/defaultCore/docs/Query.md | 47 +
.../docs/RelevantCancerTypeQuery.md | 21 +
.../generated/defaultCore/docs/SearchApi.md | 262 +
.../defaultCore/docs/TranscriptApi.md | 212 +
.../docs/TranscriptCoverageFilterResult.md | 21 +
.../defaultCore/docs/TranscriptResult.md | 23 +
.../generated/defaultCore/docs/Treatment.md | 23 +
.../defaultCore/docs/TreatmentDrug.md | 21 +
.../defaultCore/docs/TreatmentDrugId.md | 19 +
.../generated/defaultCore/docs/TumorType.md | 35 +
.../defaultCore/docs/TypeaheadSearchResp.md | 43 +
.../defaultCore/docs/UntranslatedRegion.md | 25 +
.../generated/defaultCore/docs/UtilsApi.md | 1394 ++++
.../defaultCore/docs/VariantAnnotation.md | 73 +
.../docs/VariantAnnotationTumorType.md | 23 +
.../defaultCore/docs/VariantConsequence.md | 23 +
.../api/generated/defaultCore/git_push.sh | 57 +
.../shared/api/generated/defaultCore/index.ts | 16 +
.../shared/firebase/input/PreviewTextArea.tsx | 87 +
.../firebase/input/RealtimeBasicInput.tsx | 6 +-
.../shared/firebase/input/RealtimeInputs.tsx | 9 +-
src/main/webapp/app/shared/util/utils.tsx | 5 +
webpack/webpack.dev.js | 2 +-
74 files changed, 9898 insertions(+), 9 deletions(-)
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/.gitignore
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/.npmignore
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/.openapi-generator-ignore
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/.openapi-generator/FILES
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/.openapi-generator/VERSION
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/api.ts
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/base.ts
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/common.ts
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/configuration.ts
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Alteration.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/AnnotateMutationByGenomicChangeQuery.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/AnnotateMutationByHGVSgQuery.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/AnnotatedVariant.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/ApiHttpError.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Article.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/ArticleAbstract.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/BiologicalVariant.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/CancerTypeCount.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Citations.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/ClinicalVariant.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/CplAnnotationRequest.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/DownloadAvailability.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Drug.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/DrugSynonym.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/DrugsApi.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/EnsemblGene.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/EnsemblTranscript.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Evidence.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Exon.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Gene.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/GeneNumber.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Geneset.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/GenomeNexusAnnotatedVariantInfo.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Implication.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/IndicatorQueryTreatment.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/LevelNumber.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/MainNumber.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/MainNumberLevel.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/MainType.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/MatchVariant.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/MatchVariantRequest.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/MatchVariantResult.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/MutationEffectResp.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/PfamDomainRange.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/PortalAlteration.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Query.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/RelevantCancerTypeQuery.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/SearchApi.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/TranscriptApi.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/TranscriptCoverageFilterResult.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/TranscriptResult.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/Treatment.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/TreatmentDrug.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/TreatmentDrugId.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/TumorType.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/TypeaheadSearchResp.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/UntranslatedRegion.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/UtilsApi.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/VariantAnnotation.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/VariantAnnotationTumorType.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/docs/VariantConsequence.md
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/git_push.sh
create mode 100644 src/main/webapp/app/shared/api/generated/defaultCore/index.ts
create mode 100644 src/main/webapp/app/shared/firebase/input/PreviewTextArea.tsx
diff --git a/src/main/java/org/mskcc/oncokb/curation/config/security/SecurityConfigurationOAuth.java b/src/main/java/org/mskcc/oncokb/curation/config/security/SecurityConfigurationOAuth.java
index 2ada4ec46..764dddf49 100644
--- a/src/main/java/org/mskcc/oncokb/curation/config/security/SecurityConfigurationOAuth.java
+++ b/src/main/java/org/mskcc/oncokb/curation/config/security/SecurityConfigurationOAuth.java
@@ -94,6 +94,7 @@ public SecurityFilterChain oauthFilterChain(HttpSecurity http, MvcRequestMatcher
.requestMatchers(mvc.pattern("/websocket/**")).hasAnyAuthority(AuthoritiesConstants.CURATOR, AuthoritiesConstants.USER)
.requestMatchers(mvc.pattern("/api/**")).hasAnyAuthority(AuthoritiesConstants.CURATOR, AuthoritiesConstants.USER, AuthoritiesConstants.ADMIN)
.requestMatchers(mvc.pattern("/legacy-api/**")).hasAnyAuthority(AuthoritiesConstants.CURATOR, AuthoritiesConstants.USER, AuthoritiesConstants.ADMIN)
+ .requestMatchers(mvc.pattern("/core/**")).hasAnyAuthority(AuthoritiesConstants.CURATOR, AuthoritiesConstants.USER, AuthoritiesConstants.ADMIN)
.requestMatchers(mvc.pattern("/v3/api-docs/**")).hasAuthority(AuthoritiesConstants.ADMIN)
.requestMatchers(mvc.pattern("/management/**")).hasAuthority(AuthoritiesConstants.ADMIN)
)
diff --git a/src/main/java/org/mskcc/oncokb/curation/web/rest/ApiProxy.java b/src/main/java/org/mskcc/oncokb/curation/web/rest/ApiProxy.java
index 27105face..99318a97c 100644
--- a/src/main/java/org/mskcc/oncokb/curation/web/rest/ApiProxy.java
+++ b/src/main/java/org/mskcc/oncokb/curation/web/rest/ApiProxy.java
@@ -20,7 +20,7 @@
import org.springframework.web.server.ResponseStatusException;
@RestController
-@RequestMapping({ "/legacy-api" })
+@RequestMapping({ "/legacy-api", "/api/v1/utils" })
public class ApiProxy {
private final ApiProxyService apiProxyService;
diff --git a/src/main/webapp/app/pages/curation/collapsible/CancerTypeCollapsible.tsx b/src/main/webapp/app/pages/curation/collapsible/CancerTypeCollapsible.tsx
index 8a6207891..2f5824fb1 100644
--- a/src/main/webapp/app/pages/curation/collapsible/CancerTypeCollapsible.tsx
+++ b/src/main/webapp/app/pages/curation/collapsible/CancerTypeCollapsible.tsx
@@ -146,6 +146,8 @@ function CancerTypeCollapsible({
firebasePath={`${cancerTypePath}/summary`}
inputClass={styles.summaryTextarea}
label="Therapeutic Summary (Optional)"
+ mutationName={mutationName}
+ cancerTypeName={cancerTypeName}
labelIcon={
@@ -260,6 +268,8 @@ function CancerTypeCollapsible({
firebasePath={`${cancerTypePath}/prognostic/description`}
inputClass={styles.textarea}
label="Description of Evidence"
+ mutationName={mutationName}
+ cancerTypeName={cancerTypeName}
name="evidenceDescription"
parseRefs
/>
diff --git a/src/main/webapp/app/pages/curation/collapsible/MutationCollapsible.tsx b/src/main/webapp/app/pages/curation/collapsible/MutationCollapsible.tsx
index 920c6c018..082fd4524 100644
--- a/src/main/webapp/app/pages/curation/collapsible/MutationCollapsible.tsx
+++ b/src/main/webapp/app/pages/curation/collapsible/MutationCollapsible.tsx
@@ -359,6 +359,7 @@ const MutationCollapsible = ({
firebasePath={`${mutationPath}/summary`}
inputClass={styles.summaryTextarea}
label="Mutation Summary (Optional)"
+ mutationName={mutationName}
labelIcon={
}
+ * @memberof Alteration
+ */
+ referenceGenomes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof Alteration
+ */
+ variantResidues?: string;
+}
+
+export const AlterationReferenceGenomesEnum = {
+ Grch37: 'GRCh37',
+ Grch38: 'GRCh38',
+} as const;
+
+export type AlterationReferenceGenomesEnum = (typeof AlterationReferenceGenomesEnum)[keyof typeof AlterationReferenceGenomesEnum];
+
+/**
+ *
+ * @export
+ * @interface AnnotateMutationByGenomicChangeQuery
+ */
+export interface AnnotateMutationByGenomicChangeQuery {
+ /**
+ *
+ * @type {Array}
+ * @memberof AnnotateMutationByGenomicChangeQuery
+ */
+ evidenceTypes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByGenomicChangeQuery
+ */
+ genomicLocation?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByGenomicChangeQuery
+ */
+ id?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByGenomicChangeQuery
+ */
+ referenceGenome?: AnnotateMutationByGenomicChangeQueryReferenceGenomeEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByGenomicChangeQuery
+ */
+ tumorType?: string;
+}
+
+export const AnnotateMutationByGenomicChangeQueryEvidenceTypesEnum = {
+ GeneSummary: 'GENE_SUMMARY',
+ MutationSummary: 'MUTATION_SUMMARY',
+ TumorTypeSummary: 'TUMOR_TYPE_SUMMARY',
+ GeneTumorTypeSummary: 'GENE_TUMOR_TYPE_SUMMARY',
+ PrognosticSummary: 'PROGNOSTIC_SUMMARY',
+ DiagnosticSummary: 'DIAGNOSTIC_SUMMARY',
+ GeneBackground: 'GENE_BACKGROUND',
+ Oncogenic: 'ONCOGENIC',
+ MutationEffect: 'MUTATION_EFFECT',
+ Vus: 'VUS',
+ PrognosticImplication: 'PROGNOSTIC_IMPLICATION',
+ DiagnosticImplication: 'DIAGNOSTIC_IMPLICATION',
+ StandardTherapeuticImplicationsForDrugSensitivity: 'STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY',
+ StandardTherapeuticImplicationsForDrugResistance: 'STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE',
+ InvestigationalTherapeuticImplicationsDrugSensitivity: 'INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY',
+ InvestigationalTherapeuticImplicationsDrugResistance: 'INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE',
+} as const;
+
+export type AnnotateMutationByGenomicChangeQueryEvidenceTypesEnum =
+ (typeof AnnotateMutationByGenomicChangeQueryEvidenceTypesEnum)[keyof typeof AnnotateMutationByGenomicChangeQueryEvidenceTypesEnum];
+export const AnnotateMutationByGenomicChangeQueryReferenceGenomeEnum = {
+ Grch37: 'GRCh37',
+ Grch38: 'GRCh38',
+} as const;
+
+export type AnnotateMutationByGenomicChangeQueryReferenceGenomeEnum =
+ (typeof AnnotateMutationByGenomicChangeQueryReferenceGenomeEnum)[keyof typeof AnnotateMutationByGenomicChangeQueryReferenceGenomeEnum];
+
+/**
+ *
+ * @export
+ * @interface AnnotateMutationByHGVSgQuery
+ */
+export interface AnnotateMutationByHGVSgQuery {
+ /**
+ *
+ * @type {Array}
+ * @memberof AnnotateMutationByHGVSgQuery
+ */
+ evidenceTypes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByHGVSgQuery
+ */
+ hgvsg?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByHGVSgQuery
+ */
+ id?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByHGVSgQuery
+ */
+ referenceGenome?: AnnotateMutationByHGVSgQueryReferenceGenomeEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotateMutationByHGVSgQuery
+ */
+ tumorType?: string;
+}
+
+export const AnnotateMutationByHGVSgQueryEvidenceTypesEnum = {
+ GeneSummary: 'GENE_SUMMARY',
+ MutationSummary: 'MUTATION_SUMMARY',
+ TumorTypeSummary: 'TUMOR_TYPE_SUMMARY',
+ GeneTumorTypeSummary: 'GENE_TUMOR_TYPE_SUMMARY',
+ PrognosticSummary: 'PROGNOSTIC_SUMMARY',
+ DiagnosticSummary: 'DIAGNOSTIC_SUMMARY',
+ GeneBackground: 'GENE_BACKGROUND',
+ Oncogenic: 'ONCOGENIC',
+ MutationEffect: 'MUTATION_EFFECT',
+ Vus: 'VUS',
+ PrognosticImplication: 'PROGNOSTIC_IMPLICATION',
+ DiagnosticImplication: 'DIAGNOSTIC_IMPLICATION',
+ StandardTherapeuticImplicationsForDrugSensitivity: 'STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY',
+ StandardTherapeuticImplicationsForDrugResistance: 'STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE',
+ InvestigationalTherapeuticImplicationsDrugSensitivity: 'INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY',
+ InvestigationalTherapeuticImplicationsDrugResistance: 'INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE',
+} as const;
+
+export type AnnotateMutationByHGVSgQueryEvidenceTypesEnum =
+ (typeof AnnotateMutationByHGVSgQueryEvidenceTypesEnum)[keyof typeof AnnotateMutationByHGVSgQueryEvidenceTypesEnum];
+export const AnnotateMutationByHGVSgQueryReferenceGenomeEnum = {
+ Grch37: 'GRCh37',
+ Grch38: 'GRCh38',
+} as const;
+
+export type AnnotateMutationByHGVSgQueryReferenceGenomeEnum =
+ (typeof AnnotateMutationByHGVSgQueryReferenceGenomeEnum)[keyof typeof AnnotateMutationByHGVSgQueryReferenceGenomeEnum];
+
+/**
+ *
+ * @export
+ * @interface AnnotatedVariant
+ */
+export interface AnnotatedVariant {
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ description?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof AnnotatedVariant
+ */
+ entrezGeneId?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ gene?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ grch37Isoform?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ grch37RefSeq?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ grch38Isoform?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ grch38RefSeq?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ mutationEffect?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ mutationEffectAbstracts?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ mutationEffectPmids?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ oncogenicity?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ proteinChange?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ referenceGenome?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AnnotatedVariant
+ */
+ variant?: string;
+}
+/**
+ *
+ * @export
+ * @interface ApiHttpError
+ */
+export interface ApiHttpError {
+ /**
+ *
+ * @type {string}
+ * @memberof ApiHttpError
+ */
+ detail?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ApiHttpError
+ */
+ message?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ApiHttpError
+ */
+ path?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof ApiHttpError
+ */
+ status?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof ApiHttpError
+ */
+ title?: string;
+}
+/**
+ *
+ * @export
+ * @interface Article
+ */
+export interface Article {
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ abstract?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ authors?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ elocationId?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ issue?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ journal?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ link?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ pages?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ pmid?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ pubDate?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ reference?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ title?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Article
+ */
+ volume?: string;
+}
+/**
+ *
+ * @export
+ * @interface ArticleAbstract
+ */
+export interface ArticleAbstract {
+ /**
+ *
+ * @type {string}
+ * @memberof ArticleAbstract
+ */
+ abstract?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ArticleAbstract
+ */
+ link?: string;
+}
+/**
+ *
+ * @export
+ * @interface BiologicalVariant
+ */
+export interface BiologicalVariant {
+ /**
+ *
+ * @type {string}
+ * @memberof BiologicalVariant
+ */
+ mutationEffect?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof BiologicalVariant
+ */
+ mutationEffectAbstracts?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof BiologicalVariant
+ */
+ mutationEffectDescription?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof BiologicalVariant
+ */
+ mutationEffectPmids?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof BiologicalVariant
+ */
+ oncogenic?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof BiologicalVariant
+ */
+ oncogenicAbstracts?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof BiologicalVariant
+ */
+ oncogenicPmids?: Array;
+ /**
+ *
+ * @type {Alteration}
+ * @memberof BiologicalVariant
+ */
+ variant?: Alteration;
+}
+/**
+ *
+ * @export
+ * @interface CancerTypeCount
+ */
+export interface CancerTypeCount {
+ /**
+ *
+ * @type {string}
+ * @memberof CancerTypeCount
+ */
+ cancerType?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof CancerTypeCount
+ */
+ count?: number;
+}
+/**
+ *
+ * @export
+ * @interface Citations
+ */
+export interface Citations {
+ /**
+ * Set of Abstract sources
+ * @type {Array}
+ * @memberof Citations
+ */
+ abstracts?: Array;
+ /**
+ * Set of PubMed article ids
+ * @type {Array}
+ * @memberof Citations
+ */
+ pmids?: Array;
+}
+/**
+ *
+ * @export
+ * @interface ClinicalVariant
+ */
+export interface ClinicalVariant {
+ /**
+ *
+ * @type {Array}
+ * @memberof ClinicalVariant
+ */
+ cancerTypes?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof ClinicalVariant
+ */
+ drug?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof ClinicalVariant
+ */
+ drugAbstracts?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof ClinicalVariant
+ */
+ drugDescription?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof ClinicalVariant
+ */
+ drugPmids?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof ClinicalVariant
+ */
+ excludedCancerTypes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof ClinicalVariant
+ */
+ fdaLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ClinicalVariant
+ */
+ level?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ClinicalVariant
+ */
+ liquidPropagationLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ClinicalVariant
+ */
+ oncogenic?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof ClinicalVariant
+ */
+ solidPropagationLevel?: string;
+ /**
+ *
+ * @type {Alteration}
+ * @memberof ClinicalVariant
+ */
+ variant?: Alteration;
+}
+/**
+ *
+ * @export
+ * @interface CplAnnotationRequest
+ */
+export interface CplAnnotationRequest {
+ /**
+ *
+ * @type {string}
+ * @memberof CplAnnotationRequest
+ */
+ alteration?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof CplAnnotationRequest
+ */
+ cancerType?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof CplAnnotationRequest
+ */
+ hugoSymbol?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof CplAnnotationRequest
+ */
+ referenceGenome?: CplAnnotationRequestReferenceGenomeEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof CplAnnotationRequest
+ */
+ template?: string;
+}
+
+export const CplAnnotationRequestReferenceGenomeEnum = {
+ Grch37: 'GRCh37',
+ Grch38: 'GRCh38',
+} as const;
+
+export type CplAnnotationRequestReferenceGenomeEnum =
+ (typeof CplAnnotationRequestReferenceGenomeEnum)[keyof typeof CplAnnotationRequestReferenceGenomeEnum];
+
+/**
+ *
+ * @export
+ * @interface DownloadAvailability
+ */
+export interface DownloadAvailability {
+ /**
+ *
+ * @type {boolean}
+ * @memberof DownloadAvailability
+ */
+ hasAllActionableVariants?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof DownloadAvailability
+ */
+ hasAllAnnotatedVariants?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof DownloadAvailability
+ */
+ hasAllCuratedGenes?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof DownloadAvailability
+ */
+ hasCancerGeneList?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof DownloadAvailability
+ */
+ hasReadme?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof DownloadAvailability
+ */
+ hasSqlDump?: boolean;
+ /**
+ *
+ * @type {string}
+ * @memberof DownloadAvailability
+ */
+ version?: string;
+}
+/**
+ *
+ * @export
+ * @interface Drug
+ */
+export interface Drug {
+ /**
+ *
+ * @type {string}
+ * @memberof Drug
+ */
+ drugName?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Drug
+ */
+ ncitCode?: string;
+}
+/**
+ *
+ * @export
+ * @interface DrugSynonym
+ */
+export interface DrugSynonym {
+ /**
+ *
+ * @type {Drug}
+ * @memberof DrugSynonym
+ */
+ drug?: Drug;
+ /**
+ *
+ * @type {number}
+ * @memberof DrugSynonym
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof DrugSynonym
+ */
+ name?: string;
+}
+/**
+ *
+ * @export
+ * @interface EnsemblGene
+ */
+export interface EnsemblGene {
+ /**
+ *
+ * @type {boolean}
+ * @memberof EnsemblGene
+ */
+ canonical?: boolean;
+ /**
+ *
+ * @type {string}
+ * @memberof EnsemblGene
+ */
+ chromosome?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof EnsemblGene
+ */
+ end?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof EnsemblGene
+ */
+ ensemblGeneId?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof EnsemblGene
+ */
+ referenceGenome?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof EnsemblGene
+ */
+ start?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof EnsemblGene
+ */
+ strand?: number;
+}
+/**
+ *
+ * @export
+ * @interface EnsemblTranscript
+ */
+export interface EnsemblTranscript {
+ /**
+ * Consensus CDS (CCDS) ID
+ * @type {string}
+ * @memberof EnsemblTranscript
+ */
+ ccdsId?: string;
+ /**
+ * Exon information
+ * @type {Array}
+ * @memberof EnsemblTranscript
+ */
+ exons?: Array;
+ /**
+ * Ensembl gene id
+ * @type {string}
+ * @memberof EnsemblTranscript
+ */
+ geneId: string;
+ /**
+ * Hugo symbols
+ * @type {Array}
+ * @memberof EnsemblTranscript
+ */
+ hugoSymbols?: Array;
+ /**
+ * Pfam domains
+ * @type {Array}
+ * @memberof EnsemblTranscript
+ */
+ pfamDomains?: Array;
+ /**
+ * Ensembl protein id
+ * @type {string}
+ * @memberof EnsemblTranscript
+ */
+ proteinId: string;
+ /**
+ * Length of protein
+ * @type {number}
+ * @memberof EnsemblTranscript
+ */
+ proteinLength?: number;
+ /**
+ * RefSeq mRNA ID
+ * @type {string}
+ * @memberof EnsemblTranscript
+ */
+ refseqMrnaId?: string;
+ /**
+ * Ensembl transcript id
+ * @type {string}
+ * @memberof EnsemblTranscript
+ */
+ transcriptId: string;
+ /**
+ *
+ * @type {string}
+ * @memberof EnsemblTranscript
+ */
+ uniprotId?: string;
+ /**
+ * UTR information
+ * @type {Array}
+ * @memberof EnsemblTranscript
+ */
+ utrs?: Array;
+}
+/**
+ *
+ * @export
+ * @interface Evidence
+ */
+export interface Evidence {
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ additionalInfo?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof Evidence
+ */
+ alterations?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof Evidence
+ */
+ articles?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof Evidence
+ */
+ cancerTypes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ description?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ evidenceType?: EvidenceEvidenceTypeEnum;
+ /**
+ *
+ * @type {Array}
+ * @memberof Evidence
+ */
+ excludedCancerTypes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ fdaLevel?: EvidenceFdaLevelEnum;
+ /**
+ *
+ * @type {Gene}
+ * @memberof Evidence
+ */
+ gene?: Gene;
+ /**
+ *
+ * @type {number}
+ * @memberof Evidence
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ knownEffect?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ lastEdit?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ lastReview?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ levelOfEvidence?: EvidenceLevelOfEvidenceEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ liquidPropagationLevel?: EvidenceLiquidPropagationLevelEnum;
+ /**
+ *
+ * @type {Array}
+ * @memberof Evidence
+ */
+ relevantCancerTypes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ solidPropagationLevel?: EvidenceSolidPropagationLevelEnum;
+ /**
+ *
+ * @type {Array}
+ * @memberof Evidence
+ */
+ treatments?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof Evidence
+ */
+ uuid?: string;
+}
+
+export const EvidenceEvidenceTypeEnum = {
+ GeneSummary: 'GENE_SUMMARY',
+ MutationSummary: 'MUTATION_SUMMARY',
+ TumorTypeSummary: 'TUMOR_TYPE_SUMMARY',
+ GeneTumorTypeSummary: 'GENE_TUMOR_TYPE_SUMMARY',
+ PrognosticSummary: 'PROGNOSTIC_SUMMARY',
+ DiagnosticSummary: 'DIAGNOSTIC_SUMMARY',
+ GeneBackground: 'GENE_BACKGROUND',
+ Oncogenic: 'ONCOGENIC',
+ MutationEffect: 'MUTATION_EFFECT',
+ Vus: 'VUS',
+ PrognosticImplication: 'PROGNOSTIC_IMPLICATION',
+ DiagnosticImplication: 'DIAGNOSTIC_IMPLICATION',
+ StandardTherapeuticImplicationsForDrugSensitivity: 'STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY',
+ StandardTherapeuticImplicationsForDrugResistance: 'STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE',
+ InvestigationalTherapeuticImplicationsDrugSensitivity: 'INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY',
+ InvestigationalTherapeuticImplicationsDrugResistance: 'INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE',
+} as const;
+
+export type EvidenceEvidenceTypeEnum = (typeof EvidenceEvidenceTypeEnum)[keyof typeof EvidenceEvidenceTypeEnum];
+export const EvidenceFdaLevelEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type EvidenceFdaLevelEnum = (typeof EvidenceFdaLevelEnum)[keyof typeof EvidenceFdaLevelEnum];
+export const EvidenceLevelOfEvidenceEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type EvidenceLevelOfEvidenceEnum = (typeof EvidenceLevelOfEvidenceEnum)[keyof typeof EvidenceLevelOfEvidenceEnum];
+export const EvidenceLiquidPropagationLevelEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type EvidenceLiquidPropagationLevelEnum =
+ (typeof EvidenceLiquidPropagationLevelEnum)[keyof typeof EvidenceLiquidPropagationLevelEnum];
+export const EvidenceSolidPropagationLevelEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type EvidenceSolidPropagationLevelEnum = (typeof EvidenceSolidPropagationLevelEnum)[keyof typeof EvidenceSolidPropagationLevelEnum];
+
+/**
+ *
+ * @export
+ * @interface Exon
+ */
+export interface Exon {
+ /**
+ * End position of exon
+ * @type {number}
+ * @memberof Exon
+ */
+ exonEnd: number;
+ /**
+ * Exon id
+ * @type {string}
+ * @memberof Exon
+ */
+ exonId: string;
+ /**
+ * Start position of exon
+ * @type {number}
+ * @memberof Exon
+ */
+ exonStart: number;
+ /**
+ * Number of exon in transcript
+ * @type {number}
+ * @memberof Exon
+ */
+ rank: number;
+ /**
+ * Strand exon is on, -1 for - and 1 for +
+ * @type {number}
+ * @memberof Exon
+ */
+ strand: number;
+ /**
+ * Exon version
+ * @type {number}
+ * @memberof Exon
+ */
+ version: number;
+}
+/**
+ *
+ * @export
+ * @interface Gene
+ */
+export interface Gene {
+ /**
+ *
+ * @type {number}
+ * @memberof Gene
+ */
+ entrezGeneId?: number;
+ /**
+ *
+ * @type {Array}
+ * @memberof Gene
+ */
+ geneAliases?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof Gene
+ */
+ genesets?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof Gene
+ */
+ grch37Isoform?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Gene
+ */
+ grch37RefSeq?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Gene
+ */
+ grch38Isoform?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Gene
+ */
+ grch38RefSeq?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Gene
+ */
+ hugoSymbol?: string;
+ /**
+ *
+ * @type {boolean}
+ * @memberof Gene
+ */
+ oncogene?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof Gene
+ */
+ tsg?: boolean;
+}
+/**
+ *
+ * @export
+ * @interface GeneNumber
+ */
+export interface GeneNumber {
+ /**
+ *
+ * @type {number}
+ * @memberof GeneNumber
+ */
+ alteration?: number;
+ /**
+ *
+ * @type {Gene}
+ * @memberof GeneNumber
+ */
+ gene?: Gene;
+ /**
+ *
+ * @type {string}
+ * @memberof GeneNumber
+ */
+ highestDiagnosticImplicationLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GeneNumber
+ */
+ highestFdaLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GeneNumber
+ */
+ highestPrognosticImplicationLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GeneNumber
+ */
+ highestResistanceLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GeneNumber
+ */
+ highestSensitiveLevel?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof GeneNumber
+ */
+ tumorType?: number;
+}
+/**
+ *
+ * @export
+ * @interface Geneset
+ */
+export interface Geneset {
+ /**
+ *
+ * @type {Array}
+ * @memberof Geneset
+ */
+ genes?: Array;
+ /**
+ *
+ * @type {number}
+ * @memberof Geneset
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Geneset
+ */
+ name?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Geneset
+ */
+ uuid?: string;
+}
+/**
+ *
+ * @export
+ * @interface GenomeNexusAnnotatedVariantInfo
+ */
+export interface GenomeNexusAnnotatedVariantInfo {
+ /**
+ *
+ * @type {string}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ consequenceTerms?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ entrezGeneId?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ genomicLocation?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ hgvsg?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ hgvspShort?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ hugoSymbol?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ originalVariantQuery?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ proteinEnd?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ proteinStart?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof GenomeNexusAnnotatedVariantInfo
+ */
+ referenceGenome?: GenomeNexusAnnotatedVariantInfoReferenceGenomeEnum;
+}
+
+export const GenomeNexusAnnotatedVariantInfoReferenceGenomeEnum = {
+ Grch37: 'GRCh37',
+ Grch38: 'GRCh38',
+} as const;
+
+export type GenomeNexusAnnotatedVariantInfoReferenceGenomeEnum =
+ (typeof GenomeNexusAnnotatedVariantInfoReferenceGenomeEnum)[keyof typeof GenomeNexusAnnotatedVariantInfoReferenceGenomeEnum];
+
+/**
+ *
+ * @export
+ * @interface Implication
+ */
+export interface Implication {
+ /**
+ * List of abstracts cited to support the level of evidence. Defaulted to empty list
+ * @type {Array}
+ * @memberof Implication
+ */
+ abstracts?: Array;
+ /**
+ * List of alterations associated with implication
+ * @type {Array}
+ * @memberof Implication
+ */
+ alterations?: Array;
+ /**
+ * DEPRECATED
+ * @type {string}
+ * @memberof Implication
+ */
+ description?: string;
+ /**
+ * Level associated with implication
+ * @type {string}
+ * @memberof Implication
+ */
+ levelOfEvidence?: ImplicationLevelOfEvidenceEnum;
+ /**
+ * List of PubMed IDs cited to support the level of evidence. Defaulted to empty list
+ * @type {Array}
+ * @memberof Implication
+ */
+ pmids?: Array;
+ /**
+ *
+ * @type {TumorType}
+ * @memberof Implication
+ */
+ tumorType?: TumorType;
+}
+
+export const ImplicationLevelOfEvidenceEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type ImplicationLevelOfEvidenceEnum = (typeof ImplicationLevelOfEvidenceEnum)[keyof typeof ImplicationLevelOfEvidenceEnum];
+
+/**
+ *
+ * @export
+ * @interface IndicatorQueryTreatment
+ */
+export interface IndicatorQueryTreatment {
+ /**
+ * List of abstracts cited in the treatment description. Defaulted to empty list
+ * @type {Array}
+ * @memberof IndicatorQueryTreatment
+ */
+ abstracts?: Array;
+ /**
+ * List of alterations associated with therapeutic implication
+ * @type {Array}
+ * @memberof IndicatorQueryTreatment
+ */
+ alterations?: Array;
+ /**
+ * DEPRECATED
+ * @type {Array}
+ * @memberof IndicatorQueryTreatment
+ */
+ approvedIndications?: Array;
+ /**
+ * Treatment description. Defaulted to \"\"
+ * @type {string}
+ * @memberof IndicatorQueryTreatment
+ */
+ description?: string;
+ /**
+ * List of drugs associated with therapeutic implication
+ * @type {Array}
+ * @memberof IndicatorQueryTreatment
+ */
+ drugs?: Array;
+ /**
+ * FDA level associated with implication
+ * @type {string}
+ * @memberof IndicatorQueryTreatment
+ */
+ fdaLevel?: IndicatorQueryTreatmentFdaLevelEnum;
+ /**
+ * Therapeutic level associated with implication
+ * @type {string}
+ * @memberof IndicatorQueryTreatment
+ */
+ level?: IndicatorQueryTreatmentLevelEnum;
+ /**
+ *
+ * @type {TumorType}
+ * @memberof IndicatorQueryTreatment
+ */
+ levelAssociatedCancerType?: TumorType;
+ /**
+ * Excluded cancer types. Defaulted to empty list
+ * @type {Array}
+ * @memberof IndicatorQueryTreatment
+ */
+ levelExcludedCancerTypes?: Array;
+ /**
+ * List of PubMed IDs cited in the treatment description. Defaulted to empty list
+ * @type {Array}
+ * @memberof IndicatorQueryTreatment
+ */
+ pmids?: Array;
+}
+
+export const IndicatorQueryTreatmentFdaLevelEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type IndicatorQueryTreatmentFdaLevelEnum =
+ (typeof IndicatorQueryTreatmentFdaLevelEnum)[keyof typeof IndicatorQueryTreatmentFdaLevelEnum];
+export const IndicatorQueryTreatmentLevelEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type IndicatorQueryTreatmentLevelEnum = (typeof IndicatorQueryTreatmentLevelEnum)[keyof typeof IndicatorQueryTreatmentLevelEnum];
+
+/**
+ *
+ * @export
+ * @interface LevelNumber
+ */
+export interface LevelNumber {
+ /**
+ *
+ * @type {Array}
+ * @memberof LevelNumber
+ */
+ genes?: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof LevelNumber
+ */
+ level?: LevelNumberLevelEnum;
+}
+
+export const LevelNumberLevelEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type LevelNumberLevelEnum = (typeof LevelNumberLevelEnum)[keyof typeof LevelNumberLevelEnum];
+
+/**
+ *
+ * @export
+ * @interface MainNumber
+ */
+export interface MainNumber {
+ /**
+ *
+ * @type {number}
+ * @memberof MainNumber
+ */
+ alteration?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof MainNumber
+ */
+ drug?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof MainNumber
+ */
+ gene?: number;
+ /**
+ *
+ * @type {Array}
+ * @memberof MainNumber
+ */
+ level?: Array;
+ /**
+ *
+ * @type {number}
+ * @memberof MainNumber
+ */
+ tumorType?: number;
+}
+/**
+ *
+ * @export
+ * @interface MainNumberLevel
+ */
+export interface MainNumberLevel {
+ /**
+ *
+ * @type {string}
+ * @memberof MainNumberLevel
+ */
+ level?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof MainNumberLevel
+ */
+ number?: number;
+}
+/**
+ * OncoTree Cancer Type
+ * @export
+ * @interface MainType
+ */
+export interface MainType {
+ /**
+ *
+ * @type {number}
+ * @memberof MainType
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof MainType
+ */
+ name?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof MainType
+ */
+ tumorForm?: MainTypeTumorFormEnum;
+}
+
+export const MainTypeTumorFormEnum = {
+ Solid: 'SOLID',
+ Liquid: 'LIQUID',
+ Mixed: 'MIXED',
+} as const;
+
+export type MainTypeTumorFormEnum = (typeof MainTypeTumorFormEnum)[keyof typeof MainTypeTumorFormEnum];
+
+/**
+ *
+ * @export
+ * @interface MatchVariant
+ */
+export interface MatchVariant {
+ /**
+ *
+ * @type {string}
+ * @memberof MatchVariant
+ */
+ alteration?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof MatchVariant
+ */
+ hugoSymbol?: string;
+}
+/**
+ *
+ * @export
+ * @interface MatchVariantRequest
+ */
+export interface MatchVariantRequest {
+ /**
+ *
+ * @type {Array}
+ * @memberof MatchVariantRequest
+ */
+ oncokbVariants?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof MatchVariantRequest
+ */
+ queries?: Array;
+}
+/**
+ *
+ * @export
+ * @interface MatchVariantResult
+ */
+export interface MatchVariantResult {
+ /**
+ *
+ * @type {Query}
+ * @memberof MatchVariantResult
+ */
+ query?: Query;
+ /**
+ *
+ * @type {Array}
+ * @memberof MatchVariantResult
+ */
+ result?: Array;
+}
+/**
+ *
+ * @export
+ * @interface MutationEffectResp
+ */
+export interface MutationEffectResp {
+ /**
+ *
+ * @type {Citations}
+ * @memberof MutationEffectResp
+ */
+ citations?: Citations;
+ /**
+ * A brief overview of the biological and oncogenic effect of the variant. Defaulted to \"\"
+ * @type {string}
+ * @memberof MutationEffectResp
+ */
+ description?: string;
+ /**
+ * Indicates the effect of the mutation on the gene. Defaulted to \"\"
+ * @type {string}
+ * @memberof MutationEffectResp
+ */
+ knownEffect?: MutationEffectRespKnownEffectEnum;
+}
+
+export const MutationEffectRespKnownEffectEnum = {
+ GainOfFunction: 'Gain-of-function',
+ Inconclusive: 'Inconclusive',
+ LossOfFunction: 'Loss-of-function',
+ LikelyLossOfFunction: 'Likely Loss-of-function',
+ LikelyGainOfFunction: 'Likely Gain-of-function',
+ Neutral: 'Neutral',
+ Unknown: 'Unknown',
+ LikelySwitchOfFunction: 'Likely Switch-of-function',
+ SwitchOfFunction: 'Switch-of-function',
+ LikelyNeutral: 'Likely Neutral',
+} as const;
+
+export type MutationEffectRespKnownEffectEnum = (typeof MutationEffectRespKnownEffectEnum)[keyof typeof MutationEffectRespKnownEffectEnum];
+
+/**
+ *
+ * @export
+ * @interface PfamDomainRange
+ */
+export interface PfamDomainRange {
+ /**
+ * Pfam domain end amino acid
+ * @type {number}
+ * @memberof PfamDomainRange
+ */
+ pfamDomainEnd: number;
+ /**
+ * Pfam domain id
+ * @type {string}
+ * @memberof PfamDomainRange
+ */
+ pfamDomainId: string;
+ /**
+ * Pfam domain start amino acid
+ * @type {number}
+ * @memberof PfamDomainRange
+ */
+ pfamDomainStart: number;
+}
+/**
+ *
+ * @export
+ * @interface PortalAlteration
+ */
+export interface PortalAlteration {
+ /**
+ *
+ * @type {string}
+ * @memberof PortalAlteration
+ */
+ alterationType?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof PortalAlteration
+ */
+ cancerStudy?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof PortalAlteration
+ */
+ cancerType?: string;
+ /**
+ *
+ * @type {Gene}
+ * @memberof PortalAlteration
+ */
+ gene?: Gene;
+ /**
+ *
+ * @type {string}
+ * @memberof PortalAlteration
+ */
+ proteinChange?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof PortalAlteration
+ */
+ proteinEndPosition?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof PortalAlteration
+ */
+ proteinStartPosition?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof PortalAlteration
+ */
+ sampleId?: string;
+}
+/**
+ * Enriched user annotation query
+ * @export
+ * @interface Query
+ */
+export interface Query {
+ /**
+ * (Nullable) Alteration from original query or the resolved alteration from HGVS variant
+ * @type {string}
+ * @memberof Query
+ */
+ alteration?: string;
+ /**
+ * (Nullable) Alteration type
+ * @type {string}
+ * @memberof Query
+ */
+ alterationType?: QueryAlterationTypeEnum;
+ /**
+ * (Nullable) The OncoKB canonical transcript. See https://www.oncokb.org/cancer-genes
+ * @type {string}
+ * @memberof Query
+ */
+ canonicalTranscript?: string;
+ /**
+ * (Nullable) Variant consequence term from Ensembl. See https://useast.ensembl.org/info/genome/variation/prediction/predicted_data.html
+ * @type {string}
+ * @memberof Query
+ */
+ consequence?: string;
+ /**
+ * (Nullable) Unique gene identifiers from NCBI. May be null if omitted from original query, otherwise filled in by OncoKB
+ * @type {number}
+ * @memberof Query
+ */
+ entrezGeneId?: number;
+ /**
+ * (Nullable) The hgvsg or genomic location from original query
+ * @type {string}
+ * @memberof Query
+ */
+ hgvs?: string;
+ /**
+ * (Nullable) Additional message for \"hgvs\" field. May indicate reason for failed hgvs annotation.
+ * @type {string}
+ * @memberof Query
+ */
+ hgvsInfo?: string;
+ /**
+ * (Nullable) The gene symbol used in Human Genome Organisation
+ * @type {string}
+ * @memberof Query
+ */
+ hugoSymbol?: string;
+ /**
+ * (Nullable) The id passed in request for the user to distinguish the query.
+ * @type {string}
+ * @memberof Query
+ */
+ id?: string;
+ /**
+ * (Nullable) Protein end position
+ * @type {number}
+ * @memberof Query
+ */
+ proteinEnd?: number;
+ /**
+ * (Nullable) Protein start position
+ * @type {number}
+ * @memberof Query
+ */
+ proteinStart?: number;
+ /**
+ * Reference genome build version. Defaulted to GRCh37
+ * @type {string}
+ * @memberof Query
+ */
+ referenceGenome?: QueryReferenceGenomeEnum;
+ /**
+ * (Nullable) Structural variant type
+ * @type {string}
+ * @memberof Query
+ */
+ svType?: QuerySvTypeEnum;
+ /**
+ * (Nullable) Oncotree tumor type name, code, or main type.
+ * @type {string}
+ * @memberof Query
+ */
+ tumorType?: string;
+}
+
+export const QueryAlterationTypeEnum = {
+ Mutation: 'MUTATION',
+ CopyNumberAlteration: 'COPY_NUMBER_ALTERATION',
+ StructuralVariant: 'STRUCTURAL_VARIANT',
+} as const;
+
+export type QueryAlterationTypeEnum = (typeof QueryAlterationTypeEnum)[keyof typeof QueryAlterationTypeEnum];
+export const QueryReferenceGenomeEnum = {
+ Grch37: 'GRCh37',
+ Grch38: 'GRCh38',
+} as const;
+
+export type QueryReferenceGenomeEnum = (typeof QueryReferenceGenomeEnum)[keyof typeof QueryReferenceGenomeEnum];
+export const QuerySvTypeEnum = {
+ Deletion: 'DELETION',
+ Translocation: 'TRANSLOCATION',
+ Duplication: 'DUPLICATION',
+ Insertion: 'INSERTION',
+ Inversion: 'INVERSION',
+ Fusion: 'FUSION',
+ Unknown: 'UNKNOWN',
+} as const;
+
+export type QuerySvTypeEnum = (typeof QuerySvTypeEnum)[keyof typeof QuerySvTypeEnum];
+
+/**
+ *
+ * @export
+ * @interface RelevantCancerTypeQuery
+ */
+export interface RelevantCancerTypeQuery {
+ /**
+ *
+ * @type {string}
+ * @memberof RelevantCancerTypeQuery
+ */
+ code?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof RelevantCancerTypeQuery
+ */
+ mainType?: string;
+}
+/**
+ *
+ * @export
+ * @interface TranscriptCoverageFilterResult
+ */
+export interface TranscriptCoverageFilterResult {
+ /**
+ *
+ * @type {boolean}
+ * @memberof TranscriptCoverageFilterResult
+ */
+ isCovered?: boolean;
+ /**
+ *
+ * @type {string}
+ * @memberof TranscriptCoverageFilterResult
+ */
+ variant?: string;
+}
+/**
+ *
+ * @export
+ * @interface TranscriptResult
+ */
+export interface TranscriptResult {
+ /**
+ *
+ * @type {EnsemblTranscript}
+ * @memberof TranscriptResult
+ */
+ grch37Transcript?: EnsemblTranscript;
+ /**
+ *
+ * @type {EnsemblTranscript}
+ * @memberof TranscriptResult
+ */
+ grch38Transcript?: EnsemblTranscript;
+ /**
+ *
+ * @type {string}
+ * @memberof TranscriptResult
+ */
+ note?: string;
+}
+/**
+ *
+ * @export
+ * @interface Treatment
+ */
+export interface Treatment {
+ /**
+ *
+ * @type {Array}
+ * @memberof Treatment
+ */
+ approvedIndications?: Array;
+ /**
+ *
+ * @type {Array}
+ * @memberof Treatment
+ */
+ drugs?: Array;
+ /**
+ *
+ * @type {number}
+ * @memberof Treatment
+ */
+ priority?: number;
+}
+/**
+ *
+ * @export
+ * @interface TreatmentDrug
+ */
+export interface TreatmentDrug {
+ /**
+ *
+ * @type {number}
+ * @memberof TreatmentDrug
+ */
+ priority?: number;
+ /**
+ *
+ * @type {TreatmentDrugId}
+ * @memberof TreatmentDrug
+ */
+ treatmentDrugId?: TreatmentDrugId;
+}
+/**
+ *
+ * @export
+ * @interface TreatmentDrugId
+ */
+export interface TreatmentDrugId {
+ /**
+ *
+ * @type {Drug}
+ * @memberof TreatmentDrugId
+ */
+ drug?: Drug;
+}
+/**
+ * OncoTree Detailed Cancer Type
+ * @export
+ * @interface TumorType
+ */
+export interface TumorType {
+ /**
+ *
+ * @type {string}
+ * @memberof TumorType
+ */
+ code?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TumorType
+ */
+ color?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof TumorType
+ */
+ id?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof TumorType
+ */
+ level?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof TumorType
+ */
+ mainType?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TumorType
+ */
+ subtype?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TumorType
+ */
+ tissue?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TumorType
+ */
+ tumorForm?: TumorTypeTumorFormEnum;
+}
+
+export const TumorTypeTumorFormEnum = {
+ Solid: 'SOLID',
+ Liquid: 'LIQUID',
+ Mixed: 'MIXED',
+} as const;
+
+export type TumorTypeTumorFormEnum = (typeof TumorTypeTumorFormEnum)[keyof typeof TumorTypeTumorFormEnum];
+
+/**
+ *
+ * @export
+ * @interface TypeaheadSearchResp
+ */
+export interface TypeaheadSearchResp {
+ /**
+ *
+ * @type {string}
+ * @memberof TypeaheadSearchResp
+ */
+ annotation?: string;
+ /**
+ *
+ * @type {{ [key: string]: string; }}
+ * @memberof TypeaheadSearchResp
+ */
+ annotationByLevel?: { [key: string]: string };
+ /**
+ *
+ * @type {Drug}
+ * @memberof TypeaheadSearchResp
+ */
+ drug?: Drug;
+ /**
+ *
+ * @type {Gene}
+ * @memberof TypeaheadSearchResp
+ */
+ gene?: Gene;
+ /**
+ *
+ * @type {string}
+ * @memberof TypeaheadSearchResp
+ */
+ highestResistanceLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TypeaheadSearchResp
+ */
+ highestSensitiveLevel?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TypeaheadSearchResp
+ */
+ link?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TypeaheadSearchResp
+ */
+ oncogenicity?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof TypeaheadSearchResp
+ */
+ queryType?: TypeaheadSearchRespQueryTypeEnum;
+ /**
+ *
+ * @type {Array}
+ * @memberof TypeaheadSearchResp
+ */
+ tumorTypes?: Array;
+ /**
+ *
+ * @type {boolean}
+ * @memberof TypeaheadSearchResp
+ */
+ variantExist?: boolean;
+ /**
+ *
+ * @type {Array}
+ * @memberof TypeaheadSearchResp
+ */
+ variants?: Array;
+ /**
+ *
+ * @type {boolean}
+ * @memberof TypeaheadSearchResp
+ */
+ vus?: boolean;
+}
+
+export const TypeaheadSearchRespQueryTypeEnum = {
+ Gene: 'GENE',
+ Variant: 'VARIANT',
+ Drug: 'DRUG',
+ Text: 'TEXT',
+ Genomic: 'GENOMIC',
+ CancerType: 'CANCER_TYPE',
+} as const;
+
+export type TypeaheadSearchRespQueryTypeEnum = (typeof TypeaheadSearchRespQueryTypeEnum)[keyof typeof TypeaheadSearchRespQueryTypeEnum];
+
+/**
+ *
+ * @export
+ * @interface UntranslatedRegion
+ */
+export interface UntranslatedRegion {
+ /**
+ * End position of UTR
+ * @type {number}
+ * @memberof UntranslatedRegion
+ */
+ end: number;
+ /**
+ * Start position of UTR
+ * @type {number}
+ * @memberof UntranslatedRegion
+ */
+ start: number;
+ /**
+ * Strand UTR is on, -1 for - and 1 for +
+ * @type {number}
+ * @memberof UntranslatedRegion
+ */
+ strand: number;
+ /**
+ * UTR Type
+ * @type {string}
+ * @memberof UntranslatedRegion
+ */
+ type: string;
+}
+/**
+ *
+ * @export
+ * @interface VariantAnnotation
+ */
+export interface VariantAnnotation {
+ /**
+ * Indicates whether the alternate allele has been curated. See SOP Protocol 9.1
+ * @type {boolean}
+ * @memberof VariantAnnotation
+ */
+ alleleExist?: boolean;
+ /**
+ *
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ background?: string;
+ /**
+ * OncoKB data version. See www.oncokb.org/news
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ dataVersion?: string;
+ /**
+ * List of diagnostic implications. Defaulted to empty list
+ * @type {Array}
+ * @memberof VariantAnnotation
+ */
+ diagnosticImplications?: Array;
+ /**
+ * Diagnostic summary. Defaulted to \"\"
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ diagnosticSummary?: string;
+ /**
+ * Indicates whether the gene is curated by OncoKB
+ * @type {boolean}
+ * @memberof VariantAnnotation
+ */
+ geneExist?: boolean;
+ /**
+ * Gene summary. Defaulted to \"\"
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ geneSummary?: string;
+ /**
+ * (Nullable) The highest diagnostic level from a list of diagnostic evidences.
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ highestDiagnosticImplicationLevel?: VariantAnnotationHighestDiagnosticImplicationLevelEnum;
+ /**
+ * (Nullable) The highest FDA level from a list of therapeutic evidences.
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ highestFdaLevel?: VariantAnnotationHighestFdaLevelEnum;
+ /**
+ * (Nullable) The highest prognostic level from a list of prognostic evidences.
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ highestPrognosticImplicationLevel?: VariantAnnotationHighestPrognosticImplicationLevelEnum;
+ /**
+ * (Nullable) The highest resistance level from a list of therapeutic evidences.
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ highestResistanceLevel?: VariantAnnotationHighestResistanceLevelEnum;
+ /**
+ * (Nullable) The highest sensitivity level from a list of therapeutic evidences.
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ highestSensitiveLevel?: VariantAnnotationHighestSensitiveLevelEnum;
+ /**
+ * Whether variant is recurrently found in cancer with statistical significance, as defined in Chang et al. (2017). See SOP Protocol 9.2
+ * @type {boolean}
+ * @memberof VariantAnnotation
+ */
+ hotspot?: boolean;
+ /**
+ * OncoKB data release date. Formatted as MM/DD/YYYY
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ lastUpdate?: string;
+ /**
+ *
+ * @type {MutationEffectResp}
+ * @memberof VariantAnnotation
+ */
+ mutationEffect?: MutationEffectResp;
+ /**
+ * The oncogenicity status of the variant. Defaulted to \"Unknown\".
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ oncogenic?: VariantAnnotationOncogenicEnum;
+ /**
+ * DEPRECATED
+ * @type {Array}
+ * @memberof VariantAnnotation
+ */
+ otherSignificantResistanceLevels?: Array;
+ /**
+ * DEPRECATED
+ * @type {Array}
+ * @memberof VariantAnnotation
+ */
+ otherSignificantSensitiveLevels?: Array;
+ /**
+ * List of prognostic implications. Defaulted to empty list
+ * @type {Array}
+ * @memberof VariantAnnotation
+ */
+ prognosticImplications?: Array;
+ /**
+ * Prognostic summary. Defaulted to \"\"
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ prognosticSummary?: string;
+ /**
+ *
+ * @type {Query}
+ * @memberof VariantAnnotation
+ */
+ query?: Query;
+ /**
+ * List of therapeutic implications implications. Defaulted to empty list
+ * @type {Array}
+ * @memberof VariantAnnotation
+ */
+ treatments?: Array;
+ /**
+ * Tumor type summary. Defaulted to \"\"
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ tumorTypeSummary?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof VariantAnnotation
+ */
+ tumorTypes?: Array;
+ /**
+ * Indicates whether an exact match for the queried variant is curated
+ * @type {boolean}
+ * @memberof VariantAnnotation
+ */
+ variantExist?: boolean;
+ /**
+ * Variant summary. Defaulted to \"\"
+ * @type {string}
+ * @memberof VariantAnnotation
+ */
+ variantSummary?: string;
+ /**
+ *
+ * @type {boolean}
+ * @memberof VariantAnnotation
+ */
+ vue?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof VariantAnnotation
+ */
+ vus?: boolean;
+}
+
+export const VariantAnnotationHighestDiagnosticImplicationLevelEnum = {
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3.',
+} as const;
+
+export type VariantAnnotationHighestDiagnosticImplicationLevelEnum =
+ (typeof VariantAnnotationHighestDiagnosticImplicationLevelEnum)[keyof typeof VariantAnnotationHighestDiagnosticImplicationLevelEnum];
+export const VariantAnnotationHighestFdaLevelEnum = {
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+} as const;
+
+export type VariantAnnotationHighestFdaLevelEnum =
+ (typeof VariantAnnotationHighestFdaLevelEnum)[keyof typeof VariantAnnotationHighestFdaLevelEnum];
+export const VariantAnnotationHighestPrognosticImplicationLevelEnum = {
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+} as const;
+
+export type VariantAnnotationHighestPrognosticImplicationLevelEnum =
+ (typeof VariantAnnotationHighestPrognosticImplicationLevelEnum)[keyof typeof VariantAnnotationHighestPrognosticImplicationLevelEnum];
+export const VariantAnnotationHighestResistanceLevelEnum = {
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+} as const;
+
+export type VariantAnnotationHighestResistanceLevelEnum =
+ (typeof VariantAnnotationHighestResistanceLevelEnum)[keyof typeof VariantAnnotationHighestResistanceLevelEnum];
+export const VariantAnnotationHighestSensitiveLevelEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+} as const;
+
+export type VariantAnnotationHighestSensitiveLevelEnum =
+ (typeof VariantAnnotationHighestSensitiveLevelEnum)[keyof typeof VariantAnnotationHighestSensitiveLevelEnum];
+export const VariantAnnotationOncogenicEnum = {
+ Oncogenic: 'Oncogenic',
+ LikelyOncogenic: 'Likely Oncogenic',
+ LikelyNeutral: 'Likely Neutral',
+ Inconclusive: 'Inconclusive',
+ Resistance: 'Resistance',
+ Unknown: 'Unknown',
+} as const;
+
+export type VariantAnnotationOncogenicEnum = (typeof VariantAnnotationOncogenicEnum)[keyof typeof VariantAnnotationOncogenicEnum];
+export const VariantAnnotationOtherSignificantResistanceLevelsEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type VariantAnnotationOtherSignificantResistanceLevelsEnum =
+ (typeof VariantAnnotationOtherSignificantResistanceLevelsEnum)[keyof typeof VariantAnnotationOtherSignificantResistanceLevelsEnum];
+export const VariantAnnotationOtherSignificantSensitiveLevelsEnum = {
+ Level1: 'LEVEL_1',
+ Level2: 'LEVEL_2',
+ Level3A: 'LEVEL_3A',
+ Level3B: 'LEVEL_3B',
+ Level4: 'LEVEL_4',
+ LevelR1: 'LEVEL_R1',
+ LevelR2: 'LEVEL_R2',
+ LevelPx1: 'LEVEL_Px1',
+ LevelPx2: 'LEVEL_Px2',
+ LevelPx3: 'LEVEL_Px3',
+ LevelDx1: 'LEVEL_Dx1',
+ LevelDx2: 'LEVEL_Dx2',
+ LevelDx3: 'LEVEL_Dx3',
+ LevelFda1: 'LEVEL_Fda1',
+ LevelFda2: 'LEVEL_Fda2',
+ LevelFda3: 'LEVEL_Fda3',
+ No: 'NO',
+} as const;
+
+export type VariantAnnotationOtherSignificantSensitiveLevelsEnum =
+ (typeof VariantAnnotationOtherSignificantSensitiveLevelsEnum)[keyof typeof VariantAnnotationOtherSignificantSensitiveLevelsEnum];
+
+/**
+ *
+ * @export
+ * @interface VariantAnnotationTumorType
+ */
+export interface VariantAnnotationTumorType {
+ /**
+ *
+ * @type {Array}
+ * @memberof VariantAnnotationTumorType
+ */
+ evidences?: Array;
+ /**
+ *
+ * @type {boolean}
+ * @memberof VariantAnnotationTumorType
+ */
+ relevantTumorType?: boolean;
+ /**
+ *
+ * @type {TumorType}
+ * @memberof VariantAnnotationTumorType
+ */
+ tumorType?: TumorType;
+}
+/**
+ *
+ * @export
+ * @interface VariantConsequence
+ */
+export interface VariantConsequence {
+ /**
+ *
+ * @type {string}
+ * @memberof VariantConsequence
+ */
+ description?: string;
+ /**
+ *
+ * @type {boolean}
+ * @memberof VariantConsequence
+ */
+ isGenerallyTruncating?: boolean;
+ /**
+ *
+ * @type {string}
+ * @memberof VariantConsequence
+ */
+ term?: string;
+}
+
+/**
+ * DrugsApi - axios parameter creator
+ * @export
+ */
+export const DrugsApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchDrugGetUsingGET: async (query: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'query' is not null or undefined
+ assertParamExists('searchDrugGetUsingGET', 'query', query);
+ const localVarPath = `/search/ncitDrugs`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (query !== undefined) {
+ localVarQueryParameter['query'] = query;
+ }
+
+ if (limit !== undefined) {
+ localVarQueryParameter['limit'] = limit;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ };
+};
+
+/**
+ * DrugsApi - functional programming interface
+ * @export
+ */
+export const DrugsApiFp = function (configuration?: Configuration) {
+ const localVarAxiosParamCreator = DrugsApiAxiosParamCreator(configuration);
+ return {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async searchDrugGetUsingGET(
+ query: string,
+ limit?: number,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchDrugGetUsingGET(query, limit, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['DrugsApi.searchDrugGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ };
+};
+
+/**
+ * DrugsApi - factory interface
+ * @export
+ */
+export const DrugsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = DrugsApiFp(configuration);
+ return {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchDrugGetUsingGET(query: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise> {
+ return localVarFp.searchDrugGetUsingGET(query, limit, options).then(request => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * DrugsApi - object-oriented interface
+ * @export
+ * @class DrugsApi
+ * @extends {BaseAPI}
+ */
+export class DrugsApi extends BaseAPI {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof DrugsApi
+ */
+ public searchDrugGetUsingGET(query: string, limit?: number, options?: RawAxiosRequestConfig) {
+ return DrugsApiFp(this.configuration)
+ .searchDrugGetUsingGET(query, limit, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+}
+
+/**
+ * SearchApi - axios parameter creator
+ * @export
+ */
+export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchDrugGetUsingGET: async (query: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'query' is not null or undefined
+ assertParamExists('searchDrugGetUsingGET', 'query', query);
+ const localVarPath = `/search/ncitDrugs`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (query !== undefined) {
+ localVarQueryParameter['query'] = query;
+ }
+
+ if (limit !== undefined) {
+ localVarQueryParameter['limit'] = limit;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Search to find treatments.
+ * @summary searchTreatmentsGet
+ * @param {string} gene The search query, it could be hugoSymbol or entrezGeneId.
+ * @param {string} [level] The level of evidence.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchTreatmentsGetUsingGET: async (gene: string, level?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'gene' is not null or undefined
+ assertParamExists('searchTreatmentsGetUsingGET', 'gene', gene);
+ const localVarPath = `/search/treatments`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (gene !== undefined) {
+ localVarQueryParameter['gene'] = gene;
+ }
+
+ if (level !== undefined) {
+ localVarQueryParameter['level'] = level;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Find matches based on blur query.
+ * @summary searchTypeAheadGet
+ * @param {string} query The search query, it could be hugoSymbol, entrezGeneId, variant, or cancer type. At least two characters. Maximum two keywords are supported, separated by space
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchTypeAheadGetUsingGET: async (query: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'query' is not null or undefined
+ assertParamExists('searchTypeAheadGetUsingGET', 'query', query);
+ const localVarPath = `/search/typeahead`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (query !== undefined) {
+ localVarQueryParameter['query'] = query;
+ }
+
+ if (limit !== undefined) {
+ localVarQueryParameter['limit'] = limit;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get annotated variants information for specified gene.
+ * @summary searchVariantsBiologicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchVariantsBiologicalGetUsingGET: async (hugoSymbol?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/search/variants/biological`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get list of variant clinical information for specified gene.
+ * @summary searchVariantsClinicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchVariantsClinicalGetUsingGET: async (hugoSymbol?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/search/variants/clinical`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ };
+};
+
+/**
+ * SearchApi - functional programming interface
+ * @export
+ */
+export const SearchApiFp = function (configuration?: Configuration) {
+ const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
+ return {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async searchDrugGetUsingGET(
+ query: string,
+ limit?: number,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchDrugGetUsingGET(query, limit, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['SearchApi.searchDrugGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Search to find treatments.
+ * @summary searchTreatmentsGet
+ * @param {string} gene The search query, it could be hugoSymbol or entrezGeneId.
+ * @param {string} [level] The level of evidence.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async searchTreatmentsGetUsingGET(
+ gene: string,
+ level?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchTreatmentsGetUsingGET(gene, level, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['SearchApi.searchTreatmentsGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Find matches based on blur query.
+ * @summary searchTypeAheadGet
+ * @param {string} query The search query, it could be hugoSymbol, entrezGeneId, variant, or cancer type. At least two characters. Maximum two keywords are supported, separated by space
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async searchTypeAheadGetUsingGET(
+ query: string,
+ limit?: number,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchTypeAheadGetUsingGET(query, limit, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['SearchApi.searchTypeAheadGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get annotated variants information for specified gene.
+ * @summary searchVariantsBiologicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async searchVariantsBiologicalGetUsingGET(
+ hugoSymbol?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchVariantsBiologicalGetUsingGET(hugoSymbol, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['SearchApi.searchVariantsBiologicalGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get list of variant clinical information for specified gene.
+ * @summary searchVariantsClinicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async searchVariantsClinicalGetUsingGET(
+ hugoSymbol?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchVariantsClinicalGetUsingGET(hugoSymbol, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['SearchApi.searchVariantsClinicalGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ };
+};
+
+/**
+ * SearchApi - factory interface
+ * @export
+ */
+export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = SearchApiFp(configuration);
+ return {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchDrugGetUsingGET(query: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise> {
+ return localVarFp.searchDrugGetUsingGET(query, limit, options).then(request => request(axios, basePath));
+ },
+ /**
+ * Search to find treatments.
+ * @summary searchTreatmentsGet
+ * @param {string} gene The search query, it could be hugoSymbol or entrezGeneId.
+ * @param {string} [level] The level of evidence.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchTreatmentsGetUsingGET(gene: string, level?: string, options?: RawAxiosRequestConfig): AxiosPromise> {
+ return localVarFp.searchTreatmentsGetUsingGET(gene, level, options).then(request => request(axios, basePath));
+ },
+ /**
+ * Find matches based on blur query.
+ * @summary searchTypeAheadGet
+ * @param {string} query The search query, it could be hugoSymbol, entrezGeneId, variant, or cancer type. At least two characters. Maximum two keywords are supported, separated by space
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchTypeAheadGetUsingGET(query: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise> {
+ return localVarFp.searchTypeAheadGetUsingGET(query, limit, options).then(request => request(axios, basePath));
+ },
+ /**
+ * Get annotated variants information for specified gene.
+ * @summary searchVariantsBiologicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchVariantsBiologicalGetUsingGET(hugoSymbol?: string, options?: RawAxiosRequestConfig): AxiosPromise> {
+ return localVarFp.searchVariantsBiologicalGetUsingGET(hugoSymbol, options).then(request => request(axios, basePath));
+ },
+ /**
+ * Get list of variant clinical information for specified gene.
+ * @summary searchVariantsClinicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ searchVariantsClinicalGetUsingGET(hugoSymbol?: string, options?: RawAxiosRequestConfig): AxiosPromise> {
+ return localVarFp.searchVariantsClinicalGetUsingGET(hugoSymbol, options).then(request => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * SearchApi - object-oriented interface
+ * @export
+ * @class SearchApi
+ * @extends {BaseAPI}
+ */
+export class SearchApi extends BaseAPI {
+ /**
+ * Find NCIT matches based on blur query. This is not for search OncoKB curated drugs. Please use drugs/lookup for that purpose.
+ * @summary searchDrugGet
+ * @param {string} query The search query, it could be drug name, NCIT code
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof SearchApi
+ */
+ public searchDrugGetUsingGET(query: string, limit?: number, options?: RawAxiosRequestConfig) {
+ return SearchApiFp(this.configuration)
+ .searchDrugGetUsingGET(query, limit, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Search to find treatments.
+ * @summary searchTreatmentsGet
+ * @param {string} gene The search query, it could be hugoSymbol or entrezGeneId.
+ * @param {string} [level] The level of evidence.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof SearchApi
+ */
+ public searchTreatmentsGetUsingGET(gene: string, level?: string, options?: RawAxiosRequestConfig) {
+ return SearchApiFp(this.configuration)
+ .searchTreatmentsGetUsingGET(gene, level, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Find matches based on blur query.
+ * @summary searchTypeAheadGet
+ * @param {string} query The search query, it could be hugoSymbol, entrezGeneId, variant, or cancer type. At least two characters. Maximum two keywords are supported, separated by space
+ * @param {number} [limit] The limit of returned result.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof SearchApi
+ */
+ public searchTypeAheadGetUsingGET(query: string, limit?: number, options?: RawAxiosRequestConfig) {
+ return SearchApiFp(this.configuration)
+ .searchTypeAheadGetUsingGET(query, limit, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Get annotated variants information for specified gene.
+ * @summary searchVariantsBiologicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof SearchApi
+ */
+ public searchVariantsBiologicalGetUsingGET(hugoSymbol?: string, options?: RawAxiosRequestConfig) {
+ return SearchApiFp(this.configuration)
+ .searchVariantsBiologicalGetUsingGET(hugoSymbol, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Get list of variant clinical information for specified gene.
+ * @summary searchVariantsClinicalGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof SearchApi
+ */
+ public searchVariantsClinicalGetUsingGET(hugoSymbol?: string, options?: RawAxiosRequestConfig) {
+ return SearchApiFp(this.configuration)
+ .searchVariantsClinicalGetUsingGET(hugoSymbol, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+}
+
+/**
+ * TranscriptApi - axios parameter creator
+ * @export
+ */
+export const TranscriptApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * cache Genome Nexus variant info
+ * @summary cacheGenomeNexusVariantInfoPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ cacheGenomeNexusVariantInfoPostUsingPOST: async (
+ body: Array,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('cacheGenomeNexusVariantInfoPostUsingPOST', 'body', body);
+ const localVarPath = `/cacheGnVariantInfo`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Fetch Genome Nexus variant info by genomic change
+ * @summary fetchGenomeNexusVariantInfoByGenomicChangePost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST: async (
+ body: Array,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST', 'body', body);
+ const localVarPath = `/fetchGnVariants/byGenomicChange`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Fetch Genome Nexus variant info by HGVSg
+ * @summary fetchGenomeNexusVariantInfoByHGVSgPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST: async (
+ body: Array,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST', 'body', body);
+ const localVarPath = `/fetchGnVariants/byHGVSg`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get transcript info in both GRCh37 and 38.
+ * @summary getTranscript
+ * @param {string} hugoSymbol hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getTranscriptUsingGET: async (hugoSymbol: string, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'hugoSymbol' is not null or undefined
+ assertParamExists('getTranscriptUsingGET', 'hugoSymbol', hugoSymbol);
+ const localVarPath = `/transcripts/{hugoSymbol}`.replace(`{${'hugoSymbol'}}`, encodeURIComponent(String(hugoSymbol)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ };
+};
+
+/**
+ * TranscriptApi - functional programming interface
+ * @export
+ */
+export const TranscriptApiFp = function (configuration?: Configuration) {
+ const localVarAxiosParamCreator = TranscriptApiAxiosParamCreator(configuration);
+ return {
+ /**
+ * cache Genome Nexus variant info
+ * @summary cacheGenomeNexusVariantInfoPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async cacheGenomeNexusVariantInfoPostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cacheGenomeNexusVariantInfoPostUsingPOST(body, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['TranscriptApi.cacheGenomeNexusVariantInfoPostUsingPOST']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Fetch Genome Nexus variant info by genomic change
+ * @summary fetchGenomeNexusVariantInfoByGenomicChangePost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST(body, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['TranscriptApi.fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Fetch Genome Nexus variant info by HGVSg
+ * @summary fetchGenomeNexusVariantInfoByHGVSgPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST(body, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['TranscriptApi.fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get transcript info in both GRCh37 and 38.
+ * @summary getTranscript
+ * @param {string} hugoSymbol hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async getTranscriptUsingGET(
+ hugoSymbol: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTranscriptUsingGET(hugoSymbol, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['TranscriptApi.getTranscriptUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ };
+};
+
+/**
+ * TranscriptApi - factory interface
+ * @export
+ */
+export const TranscriptApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = TranscriptApiFp(configuration);
+ return {
+ /**
+ * cache Genome Nexus variant info
+ * @summary cacheGenomeNexusVariantInfoPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ cacheGenomeNexusVariantInfoPostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): AxiosPromise {
+ return localVarFp.cacheGenomeNexusVariantInfoPostUsingPOST(body, options).then(request => request(axios, basePath));
+ },
+ /**
+ * Fetch Genome Nexus variant info by genomic change
+ * @summary fetchGenomeNexusVariantInfoByGenomicChangePost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): AxiosPromise> {
+ return localVarFp.fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST(body, options).then(request => request(axios, basePath));
+ },
+ /**
+ * Fetch Genome Nexus variant info by HGVSg
+ * @summary fetchGenomeNexusVariantInfoByHGVSgPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): AxiosPromise> {
+ return localVarFp.fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST(body, options).then(request => request(axios, basePath));
+ },
+ /**
+ * Get transcript info in both GRCh37 and 38.
+ * @summary getTranscript
+ * @param {string} hugoSymbol hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ getTranscriptUsingGET(hugoSymbol: string, options?: RawAxiosRequestConfig): AxiosPromise {
+ return localVarFp.getTranscriptUsingGET(hugoSymbol, options).then(request => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * TranscriptApi - object-oriented interface
+ * @export
+ * @class TranscriptApi
+ * @extends {BaseAPI}
+ */
+export class TranscriptApi extends BaseAPI {
+ /**
+ * cache Genome Nexus variant info
+ * @summary cacheGenomeNexusVariantInfoPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof TranscriptApi
+ */
+ public cacheGenomeNexusVariantInfoPostUsingPOST(body: Array, options?: RawAxiosRequestConfig) {
+ return TranscriptApiFp(this.configuration)
+ .cacheGenomeNexusVariantInfoPostUsingPOST(body, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Fetch Genome Nexus variant info by genomic change
+ * @summary fetchGenomeNexusVariantInfoByGenomicChangePost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof TranscriptApi
+ */
+ public fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ) {
+ return TranscriptApiFp(this.configuration)
+ .fetchGenomeNexusVariantInfoByGenomicChangePostUsingPOST(body, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Fetch Genome Nexus variant info by HGVSg
+ * @summary fetchGenomeNexusVariantInfoByHGVSgPost
+ * @param {Array} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof TranscriptApi
+ */
+ public fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST(body: Array, options?: RawAxiosRequestConfig) {
+ return TranscriptApiFp(this.configuration)
+ .fetchGenomeNexusVariantInfoByHGVSgPostUsingPOST(body, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+
+ /**
+ * Get transcript info in both GRCh37 and 38.
+ * @summary getTranscript
+ * @param {string} hugoSymbol hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof TranscriptApi
+ */
+ public getTranscriptUsingGET(hugoSymbol: string, options?: RawAxiosRequestConfig) {
+ return TranscriptApiFp(this.configuration)
+ .getTranscriptUsingGET(hugoSymbol, options)
+ .then(request => request(this.axios, this.basePath));
+ }
+}
+
+/**
+ * UtilsApi - axios parameter creator
+ * @export
+ */
+export const UtilsApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ * Annotate a string using CPL
+ * @summary utilAnnotateCPL
+ * @param {CplAnnotationRequest} cplRequest CPL Request
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilAnnotateCPLUsingPOST: async (cplRequest: CplAnnotationRequest, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'cplRequest' is not null or undefined
+ assertParamExists('utilAnnotateCPLUsingPOST', 'cplRequest', cplRequest);
+ const localVarPath = `/utils/annotateCPL`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(cplRequest, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get information about what files are available by data version
+ * @summary utilDataAvailabilityGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilDataAvailabilityGetUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/data/availability`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get readme info for specific data release version
+ * @summary utilDataReadmeGet
+ * @param {string} [version] version
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilDataReadmeGetUsingGET: async (version?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/data/readme`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (version !== undefined) {
+ localVarQueryParameter['version'] = version;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary utilDataSqlDumpGet
+ * @param {string} [version] version
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilDataSqlDumpGetUsingGET: async (version?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/data/sqlDump`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (version !== undefined) {
+ localVarQueryParameter['version'] = version;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary utilDataTranscriptSqlDump
+ * @param {string} [version] version
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilDataTranscriptSqlDumpUsingGET: async (version?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/data/transcriptSqlDump`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (version !== undefined) {
+ localVarQueryParameter['version'] = version;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Filter genomic change based on oncokb coverage
+ * @summary utilFilterGenomicChangeBasedOnCoveragePost
+ * @param {Array} body List of queries.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilFilterGenomicChangeBasedOnCoveragePostUsingPOST: async (
+ body: Array,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('utilFilterGenomicChangeBasedOnCoveragePostUsingPOST', 'body', body);
+ const localVarPath = `/utils/filterGenomicChangeBasedOnCoverage`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Filter HGVSg based on oncokb coverage
+ * @summary utilFilterHgvsgBasedOnCoveragePost
+ * @param {Array} body List of queries.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilFilterHgvsgBasedOnCoveragePostUsingPOST: async (
+ body: Array,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('utilFilterHgvsgBasedOnCoveragePostUsingPOST', 'body', body);
+ const localVarPath = `/utils/filterHgvsgBasedOnCoverage`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary utilMutationMapperDataGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilMutationMapperDataGetUsingGET: async (hugoSymbol?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/mutationMapperData`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary utilPortalAlterationSampleCountGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilPortalAlterationSampleCountGetUsingGET: async (hugoSymbol?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/portalAlterationSampleCount`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get the list of relevant alterations
+ * @summary utilRelevantAlterationsGet
+ * @param {string} [referenceGenome] Reference genome, either GRCh37 or GRCh38. The default is GRCh37
+ * @param {number} [entrezGeneId] alteration
+ * @param {string} [alteration] alteration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilRelevantAlterationsGetUsingGET: async (
+ referenceGenome?: string,
+ entrezGeneId?: number,
+ alteration?: string,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ const localVarPath = `/utils/relevantAlterations`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (referenceGenome !== undefined) {
+ localVarQueryParameter['referenceGenome'] = referenceGenome;
+ }
+
+ if (entrezGeneId !== undefined) {
+ localVarQueryParameter['entrezGeneId'] = entrezGeneId;
+ }
+
+ if (alteration !== undefined) {
+ localVarQueryParameter['alteration'] = alteration;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get the list of relevant tumor types.
+ * @summary utilRelevantCancerTypesPost
+ * @param {Array} body List of queries.
+ * @param {UtilRelevantCancerTypesPostUsingPOSTLevelOfEvidenceEnum} [levelOfEvidence] Level of Evidence
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilRelevantCancerTypesPostUsingPOST: async (
+ body: Array,
+ levelOfEvidence?: UtilRelevantCancerTypesPostUsingPOSTLevelOfEvidenceEnum,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('utilRelevantCancerTypesPostUsingPOST', 'body', body);
+ const localVarPath = `/utils/relevantCancerTypes`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (levelOfEvidence !== undefined) {
+ localVarQueryParameter['levelOfEvidence'] = levelOfEvidence;
+ }
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get the list of relevant tumor types.
+ * @summary utilRelevantTumorTypesGet
+ * @param {string} [tumorType] OncoTree tumor type name/main type/code
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilRelevantTumorTypesGetUsingGET: async (tumorType?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/relevantTumorTypes`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (tumorType !== undefined) {
+ localVarQueryParameter['tumorType'] = tumorType;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary utilUpdateTranscriptGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {number} [entrezGeneId] entrezGeneId
+ * @param {string} [grch37Isoform] grch37Isoform
+ * @param {string} [grch37RefSeq] grch37RefSeq
+ * @param {string} [grch38Isoform] grch38Isoform
+ * @param {string} [grch38RefSeq] grch38RefSeq
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilUpdateTranscriptGetUsingGET: async (
+ hugoSymbol?: string,
+ entrezGeneId?: number,
+ grch37Isoform?: string,
+ grch37RefSeq?: string,
+ grch38Isoform?: string,
+ grch38RefSeq?: string,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ const localVarPath = `/utils/updateTranscript`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ if (entrezGeneId !== undefined) {
+ localVarQueryParameter['entrezGeneId'] = entrezGeneId;
+ }
+
+ if (grch37Isoform !== undefined) {
+ localVarQueryParameter['grch37Isoform'] = grch37Isoform;
+ }
+
+ if (grch37RefSeq !== undefined) {
+ localVarQueryParameter['grch37RefSeq'] = grch37RefSeq;
+ }
+
+ if (grch38Isoform !== undefined) {
+ localVarQueryParameter['grch38Isoform'] = grch38Isoform;
+ }
+
+ if (grch38RefSeq !== undefined) {
+ localVarQueryParameter['grch38RefSeq'] = grch38RefSeq;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @summary utilValidateTranscriptUpdateGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {number} [entrezGeneId] entrezGeneId
+ * @param {string} [grch37Isoform] grch37Isoform
+ * @param {string} [grch38Isoform] grch38Isoform
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilValidateTranscriptUpdateGetUsingGET: async (
+ hugoSymbol?: string,
+ entrezGeneId?: number,
+ grch37Isoform?: string,
+ grch38Isoform?: string,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ const localVarPath = `/utils/validateTranscriptUpdate`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ if (entrezGeneId !== undefined) {
+ localVarQueryParameter['entrezGeneId'] = entrezGeneId;
+ }
+
+ if (grch37Isoform !== undefined) {
+ localVarQueryParameter['grch37Isoform'] = grch37Isoform;
+ }
+
+ if (grch38Isoform !== undefined) {
+ localVarQueryParameter['grch38Isoform'] = grch38Isoform;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get all the info for the query
+ * @summary utilVariantAnnotationGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {number} [entrezGeneId] entrezGeneId
+ * @param {string} [referenceGenome] Reference genome, either GRCh37 or GRCh38. The default is GRCh37
+ * @param {string} [alteration] Alteration
+ * @param {string} [hgvsg] HGVS genomic format. Example: 7:g.140453136A>T
+ * @param {string} [genomicChange] Genomic change format. Example: 7,140453136,140453136,A,T
+ * @param {string} [tumorType] OncoTree tumor type name/main type/code
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilVariantAnnotationGetUsingGET: async (
+ hugoSymbol?: string,
+ entrezGeneId?: number,
+ referenceGenome?: string,
+ alteration?: string,
+ hgvsg?: string,
+ genomicChange?: string,
+ tumorType?: string,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ const localVarPath = `/utils/variantAnnotation`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ if (entrezGeneId !== undefined) {
+ localVarQueryParameter['entrezGeneId'] = entrezGeneId;
+ }
+
+ if (referenceGenome !== undefined) {
+ localVarQueryParameter['referenceGenome'] = referenceGenome;
+ }
+
+ if (alteration !== undefined) {
+ localVarQueryParameter['alteration'] = alteration;
+ }
+
+ if (hgvsg !== undefined) {
+ localVarQueryParameter['hgvsg'] = hgvsg;
+ }
+
+ if (genomicChange !== undefined) {
+ localVarQueryParameter['genomicChange'] = genomicChange;
+ }
+
+ if (tumorType !== undefined) {
+ localVarQueryParameter['tumorType'] = tumorType;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get the list of Ensembl genes.
+ * @summary utilsEnsemblGenesGet
+ * @param {number} entrezGeneId Gene entrez id
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsEnsemblGenesGetUsingGET: async (entrezGeneId: number, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'entrezGeneId' is not null or undefined
+ assertParamExists('utilsEnsemblGenesGetUsingGET', 'entrezGeneId', entrezGeneId);
+ const localVarPath = `/utils/ensembleGenes`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (entrezGeneId !== undefined) {
+ localVarQueryParameter['entrezGeneId'] = entrezGeneId;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get the list of evidences by levels.
+ * @summary utilsEvidencesByLevelsGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsEvidencesByLevelsGetUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/evidences/levels`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Determine whether variant is hotspot mutation.
+ * @summary utilsHotspotMutationGet
+ * @param {string} [hugoSymbol] Gene hugo symbol
+ * @param {string} [variant] Variant name
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsHotspotMutationGetUsingGET: async (
+ hugoSymbol?: string,
+ variant?: string,
+ options: RawAxiosRequestConfig = {},
+ ): Promise => {
+ const localVarPath = `/utils/isHotspot`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (hugoSymbol !== undefined) {
+ localVarQueryParameter['hugoSymbol'] = hugoSymbol;
+ }
+
+ if (variant !== undefined) {
+ localVarQueryParameter['variant'] = variant;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get gene related numbers
+ * @summary utilsNumbersGeneGet
+ * @param {string} hugoSymbol The gene symbol used in Human Genome Organisation.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsNumbersGeneGetUsingGET: async (hugoSymbol: string, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'hugoSymbol' is not null or undefined
+ assertParamExists('utilsNumbersGeneGetUsingGET', 'hugoSymbol', hugoSymbol);
+ const localVarPath = `/utils/numbers/gene/{hugoSymbol}`.replace(`{${'hugoSymbol'}}`, encodeURIComponent(String(hugoSymbol)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get gene related numbers of all genes. This is for main page word cloud.
+ * @summary utilsNumbersGenesGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsNumbersGenesGetUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/numbers/genes/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get gene related numbers of all genes. This is for main page word cloud.
+ * @summary utilsNumbersLevelsGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsNumbersLevelsGetUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/numbers/levels/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get numbers served for the main page dashboard.
+ * @summary utilsNumbersMainGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsNumbersMainGetUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/numbers/main/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get All Suggested Variants.
+ * @summary utilsSuggestedVariantsGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsSuggestedVariantsGetUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/suggestedVariants`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Get the full list of TumorTypes.
+ * @summary utilsTumorTypesGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ utilsTumorTypesGetUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/tumorTypes`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Check if clinical trials are valid or not by nctId.
+ * @summary validateTrials
+ * @param {Array} [nctIds] NCTID list
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ validateTrialsUsingGET: async (nctIds?: Array, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/validation/trials`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ if (nctIds) {
+ localVarQueryParameter['nctIds'] = nctIds;
+ }
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Check if the genomic example will be mapped to OncoKB variant.
+ * @summary validateVariantExampleGet
+ * @param {string} [examples] The genomic examples.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ validateVariantExampleGetUsingGET: async (examples?: string, options: RawAxiosRequestConfig = {}): Promise => {
+ const localVarPath = `/utils/match/variant`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(examples, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ * Check which OncoKB variants can be mapped on genomic examples.
+ * @summary validateVariantExamplePost
+ * @param {MatchVariantRequest} body List of queries. Please see swagger.json for request body format.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ validateVariantExamplePostUsingPOST: async (body: MatchVariantRequest, options: RawAxiosRequestConfig = {}): Promise => {
+ // verify required parameter 'body' is not null or undefined
+ assertParamExists('validateVariantExamplePostUsingPOST', 'body', body);
+ const localVarPath = `/utils/match/variant`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ };
+};
+
+/**
+ * UtilsApi - functional programming interface
+ * @export
+ */
+export const UtilsApiFp = function (configuration?: Configuration) {
+ const localVarAxiosParamCreator = UtilsApiAxiosParamCreator(configuration);
+ return {
+ /**
+ * Annotate a string using CPL
+ * @summary utilAnnotateCPL
+ * @param {CplAnnotationRequest} cplRequest CPL Request
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilAnnotateCPLUsingPOST(
+ cplRequest: CplAnnotationRequest,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilAnnotateCPLUsingPOST(cplRequest, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['UtilsApi.utilAnnotateCPLUsingPOST']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get information about what files are available by data version
+ * @summary utilDataAvailabilityGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilDataAvailabilityGetUsingGET(
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilDataAvailabilityGetUsingGET(options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilDataAvailabilityGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get readme info for specific data release version
+ * @summary utilDataReadmeGet
+ * @param {string} [version] version
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilDataReadmeGetUsingGET(
+ version?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilDataReadmeGetUsingGET(version, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath = operationServerMap['UtilsApi.utilDataReadmeGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary utilDataSqlDumpGet
+ * @param {string} [version] version
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilDataSqlDumpGetUsingGET(
+ version?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilDataSqlDumpGetUsingGET(version, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilDataSqlDumpGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary utilDataTranscriptSqlDump
+ * @param {string} [version] version
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilDataTranscriptSqlDumpUsingGET(
+ version?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilDataTranscriptSqlDumpUsingGET(version, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilDataTranscriptSqlDumpUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Filter genomic change based on oncokb coverage
+ * @summary utilFilterGenomicChangeBasedOnCoveragePost
+ * @param {Array} body List of queries.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilFilterGenomicChangeBasedOnCoveragePostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilFilterGenomicChangeBasedOnCoveragePostUsingPOST(body, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilFilterGenomicChangeBasedOnCoveragePostUsingPOST']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Filter HGVSg based on oncokb coverage
+ * @summary utilFilterHgvsgBasedOnCoveragePost
+ * @param {Array} body List of queries.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilFilterHgvsgBasedOnCoveragePostUsingPOST(
+ body: Array,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilFilterHgvsgBasedOnCoveragePostUsingPOST(body, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilFilterHgvsgBasedOnCoveragePostUsingPOST']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary utilMutationMapperDataGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilMutationMapperDataGetUsingGET(
+ hugoSymbol?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilMutationMapperDataGetUsingGET(hugoSymbol, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilMutationMapperDataGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary utilPortalAlterationSampleCountGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilPortalAlterationSampleCountGetUsingGET(
+ hugoSymbol?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilPortalAlterationSampleCountGetUsingGET(hugoSymbol, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilPortalAlterationSampleCountGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get the list of relevant alterations
+ * @summary utilRelevantAlterationsGet
+ * @param {string} [referenceGenome] Reference genome, either GRCh37 or GRCh38. The default is GRCh37
+ * @param {number} [entrezGeneId] alteration
+ * @param {string} [alteration] alteration
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilRelevantAlterationsGetUsingGET(
+ referenceGenome?: string,
+ entrezGeneId?: number,
+ alteration?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilRelevantAlterationsGetUsingGET(
+ referenceGenome,
+ entrezGeneId,
+ alteration,
+ options,
+ );
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilRelevantAlterationsGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get the list of relevant tumor types.
+ * @summary utilRelevantCancerTypesPost
+ * @param {Array} body List of queries.
+ * @param {UtilRelevantCancerTypesPostUsingPOSTLevelOfEvidenceEnum} [levelOfEvidence] Level of Evidence
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilRelevantCancerTypesPostUsingPOST(
+ body: Array,
+ levelOfEvidence?: UtilRelevantCancerTypesPostUsingPOSTLevelOfEvidenceEnum,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilRelevantCancerTypesPostUsingPOST(body, levelOfEvidence, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilRelevantCancerTypesPostUsingPOST']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get the list of relevant tumor types.
+ * @summary utilRelevantTumorTypesGet
+ * @param {string} [tumorType] OncoTree tumor type name/main type/code
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilRelevantTumorTypesGetUsingGET(
+ tumorType?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilRelevantTumorTypesGetUsingGET(tumorType, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilRelevantTumorTypesGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary utilUpdateTranscriptGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {number} [entrezGeneId] entrezGeneId
+ * @param {string} [grch37Isoform] grch37Isoform
+ * @param {string} [grch37RefSeq] grch37RefSeq
+ * @param {string} [grch38Isoform] grch38Isoform
+ * @param {string} [grch38RefSeq] grch38RefSeq
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilUpdateTranscriptGetUsingGET(
+ hugoSymbol?: string,
+ entrezGeneId?: number,
+ grch37Isoform?: string,
+ grch37RefSeq?: string,
+ grch38Isoform?: string,
+ grch38RefSeq?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilUpdateTranscriptGetUsingGET(
+ hugoSymbol,
+ entrezGeneId,
+ grch37Isoform,
+ grch37RefSeq,
+ grch38Isoform,
+ grch38RefSeq,
+ options,
+ );
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilUpdateTranscriptGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ *
+ * @summary utilValidateTranscriptUpdateGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {number} [entrezGeneId] entrezGeneId
+ * @param {string} [grch37Isoform] grch37Isoform
+ * @param {string} [grch38Isoform] grch38Isoform
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilValidateTranscriptUpdateGetUsingGET(
+ hugoSymbol?: string,
+ entrezGeneId?: number,
+ grch37Isoform?: string,
+ grch38Isoform?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilValidateTranscriptUpdateGetUsingGET(
+ hugoSymbol,
+ entrezGeneId,
+ grch37Isoform,
+ grch38Isoform,
+ options,
+ );
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilValidateTranscriptUpdateGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get all the info for the query
+ * @summary utilVariantAnnotationGet
+ * @param {string} [hugoSymbol] hugoSymbol
+ * @param {number} [entrezGeneId] entrezGeneId
+ * @param {string} [referenceGenome] Reference genome, either GRCh37 or GRCh38. The default is GRCh37
+ * @param {string} [alteration] Alteration
+ * @param {string} [hgvsg] HGVS genomic format. Example: 7:g.140453136A>T
+ * @param {string} [genomicChange] Genomic change format. Example: 7,140453136,140453136,A,T
+ * @param {string} [tumorType] OncoTree tumor type name/main type/code
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilVariantAnnotationGetUsingGET(
+ hugoSymbol?: string,
+ entrezGeneId?: number,
+ referenceGenome?: string,
+ alteration?: string,
+ hgvsg?: string,
+ genomicChange?: string,
+ tumorType?: string,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilVariantAnnotationGetUsingGET(
+ hugoSymbol,
+ entrezGeneId,
+ referenceGenome,
+ alteration,
+ hgvsg,
+ genomicChange,
+ tumorType,
+ options,
+ );
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilVariantAnnotationGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get the list of Ensembl genes.
+ * @summary utilsEnsemblGenesGet
+ * @param {number} entrezGeneId Gene entrez id
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilsEnsemblGenesGetUsingGET(
+ entrezGeneId: number,
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.utilsEnsemblGenesGetUsingGET(entrezGeneId, options);
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
+ const localVarOperationServerBasePath =
+ operationServerMap['UtilsApi.utilsEnsemblGenesGetUsingGET']?.[localVarOperationServerIndex]?.url;
+ return (axios, basePath) =>
+ createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
+ },
+ /**
+ * Get the list of evidences by levels.
+ * @summary utilsEvidencesByLevelsGet
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async utilsEvidencesByLevelsGetUsingGET(
+ options?: RawAxiosRequestConfig,
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise