import * as request from "superagent" ; type CallbackHandler = ( err : any , res ? : request . Response ) => void ; export type AggregatedHotspots = { 'genomicLocation' : GenomicLocation ; 'hotspots' : Array < Hotspot > ; 'proteinLocation' : ProteinLocation ; 'transcriptId' : string ; 'variant' : string ; } ; export type AlleleCount = { 'ac' : number ; 'ac_afr' : number ; 'ac_amr' : number ; 'ac_asj' : number ; 'ac_eas' : number ; 'ac_fin' : number ; 'ac_nfe' : number ; 'ac_oth' : number ; 'ac_sas' : number ; } ; export type AlleleFrequency = { 'af' : number ; 'af_afr' : number ; 'af_amr' : number ; 'af_asj' : number ; 'af_eas' : number ; 'af_fin' : number ; 'af_nfe' : number ; 'af_oth' : number ; 'af_sas' : number ; } ; export type AlleleNumber = { 'an' : number ; 'an_afr' : number ; 'an_amr' : number ; 'an_asj' : number ; 'an_eas' : number ; 'an_fin' : number ; 'an_nfe' : number ; 'an_oth' : number ; 'an_sas' : number ; } ; export type Alleles = { 'allele' : string ; } ; export type ClinVar = { 'alleleId' : number ; 'alt' : string ; 'chrom' : string ; 'cytogenic' : string ; 'gene' : Gene ; 'hg19' : Hg19 ; 'hg38' : Hg38 ; 'hgvs' : Hgvs ; 'license' : string ; 'rcv' : Array < Rcv > ; 'variantId' : number ; } ; export type Cosmic = { 'alt' : string ; 'chrom' : string ; 'cosmicId' : string ; 'hg19' : Hg19 ; 'license' : string ; 'mutFreq' : number ; 'mutNt' : string ; 'ref' : string ; 'tumorSite' : string ; } ; export type CountByTumorType = { 'tumorType' : string ; 'tumorTypeCount' : number ; 'variantCount' : number ; } ; export type Dbsnp = { '_class' : string ; 'alleleOrigin' : string ; 'alleles' : Array < Alleles > ; 'alt' : string ; 'chrom' : string ; 'dbsnpBuild' : number ; 'flags' : Array < string > ; 'hg19' : Hg19 ; 'license' : string ; 'ref' : string ; 'rsid' : string ; 'validated' : boolean ; 'varSubtype' : string ; 'vartype' : string ; } ; export type Gene = { 'geneId' : string ; 'symbol' : string ; } ; export type GeneXref = { 'db_display_name' : string ; 'dbname' : string ; 'description' : string ; 'display_id' : string ; 'ensemblGeneId' : string ; 'info_text' : string ; 'info_types' : string ; 'primary_id' : string ; 'synonyms' : Array < string > ; 'version' : string ; } ; export type GeneralPopulationStats = { 'counts' : SignalPopulationStats ; 'frequencies' : SignalPopulationStats ; } ; export type GenomicLocation = { 'chromosome' : string ; 'start' : number ; 'end' : number ; 'referenceAllele' : string ; 'variantAllele' : string ; } ; export type Gnomad = { 'alleleCount' : AlleleCount ; 'alleleFrequency' : AlleleFrequency ; 'alleleNumber' : AlleleNumber ; 'homozygotes' : Homozygotes ; } ; export type Hg19 = { 'end' : number ; 'start' : number ; } ; export type Hg38 = { 'end' : string ; 'start' : string ; } ; export type Hgvs = { 'coding' : Array < string > ; 'genomic' : Array < string > ; } ; export type Homozygotes = { 'hom' : number ; 'hom_afr' : number ; 'hom_amr' : number ; 'hom_asj' : number ; 'hom_eas' : number ; 'hom_fin' : number ; 'hom_nfe' : number ; 'hom_oth' : number ; 'hom_sas' : number ; } ; export type Hotspot = { 'hugoSymbol' : string ; 'inframeCount' : number ; 'missenseCount' : number ; 'residue' : string ; 'spliceCount' : number ; 'transcriptId' : string ; 'truncatingCount' : number ; 'tumorCount' : number ; 'type' : string ; } ; export type HrdScore = { 'fractionLoh' : number ; 'lst' : number ; 'ntelomericAi' : number ; } ; export type Index = { 'cdna' : Array < string > ; 'hgvsc' : Array < string > ; 'hgvsp' : Array < string > ; 'hgvspShort' : Array < string > ; 'hugoSymbol' : Array < string > ; 'rsid' : Array < string > ; 'variant' : string ; } ; export type IndexSearch = { 'queryType' : "GENE_HGVSPSHORT" | "GENE_CDNA" | "GENE_HGVSP" | "HGVSG" | "HGVSC" ; 'results' : Array < Index > ; } ; export type IntegerRange = { 'end' : number ; 'start' : number ; } ; export type MutationAssessor = { 'codonStartPosition' : string ; 'cosmicCount' : number ; 'functionalImpact' : string ; 'functionalImpactScore' : number ; 'hgvs' : string ; 'hugoSymbol' : string ; 'input' : string ; 'mappingIssue' : string ; 'msaGaps' : number ; 'msaHeight' : number ; 'msaLink' : string ; 'pdbLink' : string ; 'referenceGenomeVariant' : string ; 'referenceGenomeVariantType' : string ; 'refseqId' : string ; 'refseqPosition' : number ; 'refseqResidue' : string ; 'snpCount' : number ; 'uniprotId' : string ; 'uniprotPosition' : number ; 'uniprotResidue' : string ; 'variant' : string ; 'variantConservationScore' : number ; 'variantSpecificityScore' : number ; } ; export type Mutdb = { 'alt' : string ; 'chrom' : string ; 'cosmicId' : string ; 'hg19' : Hg19 ; 'mutpredScore' : number ; 'ref' : string ; 'rsid' : string ; 'uniprotId' : string ; } ; export type MyVariantInfo = { 'clinVar' : ClinVar ; 'cosmic' : Cosmic ; 'dbsnp' : Dbsnp ; 'gnomadExome' : Gnomad ; 'gnomadGenome' : Gnomad ; 'hgvs' : string ; 'mutdb' : Mutdb ; 'query' : string ; 'snpeff' : Snpeff ; 'variant' : string ; 'vcf' : Vcf ; 'version' : number ; } ; export type NucleotideContext = { 'hgvs' : string ; 'id' : string ; 'molecule' : string ; 'query' : string ; 'seq' : string ; } ; export type ProteinLocation = { 'transcriptId' : string ; 'start' : number ; 'end' : number ; 'mutationType' : string ; } ; export type Rcv = { 'accession' : string ; 'clinicalSignificance' : string ; 'origin' : string ; 'preferredName' : string ; } ; export type SignalMutation = { 'biallelicCountsByTumorType' : Array < CountByTumorType > ; 'chromosome' : string ; 'countsByTumorType' : Array < CountByTumorType > ; 'endPosition' : number ; 'generalPopulationStats' : GeneralPopulationStats ; 'hugoGeneSymbol' : string ; 'mskExperReview' : boolean ; 'mutationStatus' : string ; 'overallNumberOfGermlineHomozygous' : number ; 'pathogenic' : string ; 'penetrance' : string ; 'qcPassCountsByTumorType' : Array < CountByTumorType > ; 'referenceAllele' : string ; 'startPosition' : number ; 'statsByTumorType' : Array < StatsByTumorType > ; 'variantAllele' : string ; } ; export type SignalMutationFilter = { 'hugoSymbols' : Array < string > ; } ; export type SignalPopulationStats = { 'afr' : number ; 'asj' : number ; 'asn' : number ; 'eur' : number ; 'impact' : number ; 'oth' : number ; } ; export type SignalQuery = { 'alteration' : string ; 'description' : string ; 'hugoSymbol' : string ; 'matchType' : "EXACT" | "STARTS_WITH" | "PARTIAL" | "NO_MATCH" ; 'queryType' : "GENE" | "ALTERATION" | "VARIANT" | "REGION" ; 'region' : string ; 'variant' : string ; } ; export type Snpeff = { 'license' : string ; } ; export type StatsByTumorType = { 'ageAtDx' : number ; 'fBiallelic' : number ; 'fCancerTypeCount' : number ; 'hrdScore' : HrdScore ; 'msiScore' : number ; 'nCancerTypeCount' : number ; 'numberOfGermlineHomozygous' : number ; 'numberWithSig' : number ; 'tmb' : number ; 'tumorType' : string ; } ; export type TranscriptConsequenceSummary = { 'aminoAcidAlt' : string ; 'aminoAcidRef' : string ; 'aminoAcids' : string ; 'codonChange' : string ; 'consequenceTerms' : string ; 'entrezGeneId' : string ; 'exon' : string ; 'hgvsc' : string ; 'hgvsp' : string ; 'hgvspShort' : string ; 'hugoGeneSymbol' : string ; 'polyphenPrediction' : string ; 'polyphenScore' : number ; 'proteinPosition' : IntegerRange ; 'refSeq' : string ; 'siftPrediction' : string ; 'siftScore' : number ; 'transcriptId' : string ; 'uniprotId' : string ; 'variantClassification' : string ; } ; export type VariantAnnotationSummary = { 'assemblyName' : string ; 'canonicalTranscriptId' : string ; 'genomicLocation' : GenomicLocation ; 'strandSign' : string ; 'transcriptConsequenceSummaries' : Array < TranscriptConsequenceSummary > ; 'transcriptConsequenceSummary' : TranscriptConsequenceSummary ; 'transcriptConsequences' : Array < TranscriptConsequenceSummary > ; 'variant' : string ; 'variantType' : string ; } ; export type Vcf = { 'alt' : string ; 'position' : string ; 'ref' : string ; } ; class param { ( string ) } domainOrOptions export default class GenomeNexusAPIInternal { private domain : string = "" ; private errorHandlers : CallbackHandler [ ] = [ ] ; constructor ( domain ? ) { if ( domain ) { this . domain = domain ; } } getDomain ( ) { return this . domain ; } addErrorHandler ( handler ) { this . errorHandlers . push ( handler ) ; } private request ( method , url , body , headers , queryParameters , form , reject , resolve , errorHandlers ) { let req = ( new ( request as any ) . Request ( method , url ) as request . Request ) . query ( queryParameters ) ; Object . keys ( headers ) . forEach ( key => { req . set ( key , headers [ key ] ) ; } ) ; if ( body ) { req . send ( body ) ; } if ( typeof ( body ) === 'object' && ! ( body . constructor . name === 'Buffer' ) ) { req . set ( 'Content-Type' , 'application/json' ) ; } if ( Object . keys ( form ) . length > 0 ) { req . type ( 'form' ) ; req . send ( form ) ; } req . end ( ( error , response ) => { if ( error || ! response . ok ) { reject ( error ) ; errorHandlers . forEach ( handler => handler ( error ) ) ; } else { resolve ( response ) ; } } ) ; } fetchVariantAnnotationSummaryPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/annotation/summary' ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'projection' ] !== undefined ) { queryParameters [ 'projection' ] = parameters [ 'projection' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } variants param { string } isoformOverrideSource param { string } projection fetchVariantAnnotationSummaryPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation/summary' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'variants' ] !== undefined ) { body = parameters [ 'variants' ] ; } if ( parameters [ 'variants' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variants' ) ) ; return ; } if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'projection' ] !== undefined ) { queryParameters [ 'projection' ] = parameters [ 'projection' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } variants param { string } isoformOverrideSource param { string } projection fetchVariantAnnotationSummaryPOST ( parameters ) { return this . fetchVariantAnnotationSummaryPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchVariantAnnotationSummaryGETURL ( parameters ) { let queryParameters = { } ; let path = '/annotation/summary/{variant}' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'projection' ] !== undefined ) { queryParameters [ 'projection' ] = parameters [ 'projection' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } variant param { string } isoformOverrideSource param { string } projection fetchVariantAnnotationSummaryGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation/summary/{variant}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'variant' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variant' ) ) ; return ; } if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'projection' ] !== undefined ) { queryParameters [ 'projection' ] = parameters [ 'projection' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } variant param { string } isoformOverrideSource param { string } projection fetchVariantAnnotationSummaryGET ( parameters ) { return this . fetchVariantAnnotationSummaryGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchHotspotAnnotationByGenomicLocationPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/cancer_hotspots/genomic' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } genomicLocations fetchHotspotAnnotationByGenomicLocationPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/cancer_hotspots/genomic' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'genomicLocations' ] !== undefined ) { body = parameters [ 'genomicLocations' ] ; } if ( parameters [ 'genomicLocations' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: genomicLocations' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } genomicLocations fetchHotspotAnnotationByGenomicLocationPOST ( parameters ) { return this . fetchHotspotAnnotationByGenomicLocationPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchHotspotAnnotationByGenomicLocationGETURL ( parameters ) { let queryParameters = { } ; let path = '/cancer_hotspots/genomic/{genomicLocation}' ; path = path . replace ( '{genomicLocation}' , parameters [ 'genomicLocation' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } genomicLocation fetchHotspotAnnotationByGenomicLocationGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/cancer_hotspots/genomic/{genomicLocation}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{genomicLocation}' , parameters [ 'genomicLocation' ] + '' ) ; if ( parameters [ 'genomicLocation' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: genomicLocation' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } genomicLocation fetchHotspotAnnotationByGenomicLocationGET ( parameters ) { return this . fetchHotspotAnnotationByGenomicLocationGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchHotspotAnnotationByHgvsPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/cancer_hotspots/hgvs' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } variants fetchHotspotAnnotationByHgvsPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/cancer_hotspots/hgvs' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'variants' ] !== undefined ) { body = parameters [ 'variants' ] ; } if ( parameters [ 'variants' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variants' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } variants fetchHotspotAnnotationByHgvsPOST ( parameters ) { return this . fetchHotspotAnnotationByHgvsPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchHotspotAnnotationByHgvsGETURL ( parameters ) { let queryParameters = { } ; let path = '/cancer_hotspots/hgvs/{variant}' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } variant fetchHotspotAnnotationByHgvsGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/cancer_hotspots/hgvs/{variant}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'variant' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variant' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } variant fetchHotspotAnnotationByHgvsGET ( parameters ) { return this . fetchHotspotAnnotationByHgvsGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchHotspotAnnotationByProteinLocationsPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/cancer_hotspots/proteinLocations' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } proteinLocations fetchHotspotAnnotationByProteinLocationsPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/cancer_hotspots/proteinLocations' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'proteinLocations' ] !== undefined ) { body = parameters [ 'proteinLocations' ] ; } if ( parameters [ 'proteinLocations' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: proteinLocations' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } proteinLocations fetchHotspotAnnotationByProteinLocationsPOST ( parameters ) { return this . fetchHotspotAnnotationByProteinLocationsPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchHotspotAnnotationByTranscriptIdPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/cancer_hotspots/transcript' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } transcriptIds fetchHotspotAnnotationByTranscriptIdPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/cancer_hotspots/transcript' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'transcriptIds' ] !== undefined ) { body = parameters [ 'transcriptIds' ] ; } if ( parameters [ 'transcriptIds' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: transcriptIds' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } transcriptIds fetchHotspotAnnotationByTranscriptIdPOST ( parameters ) { return this . fetchHotspotAnnotationByTranscriptIdPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchHotspotAnnotationByTranscriptIdGETURL ( parameters ) { let queryParameters = { } ; let path = '/cancer_hotspots/transcript/{transcriptId}' ; path = path . replace ( '{transcriptId}' , parameters [ 'transcriptId' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } transcriptId fetchHotspotAnnotationByTranscriptIdGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/cancer_hotspots/transcript/{transcriptId}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{transcriptId}' , parameters [ 'transcriptId' ] + '' ) ; if ( parameters [ 'transcriptId' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: transcriptId' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } transcriptId fetchHotspotAnnotationByTranscriptIdGET ( parameters ) { return this . fetchHotspotAnnotationByTranscriptIdGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; postMutationAssessorAnnotationURL ( parameters ) { let queryParameters = { } ; let path = '/mutation_assessor' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } variants postMutationAssessorAnnotationWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/mutation_assessor' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'variants' ] !== undefined ) { body = parameters [ 'variants' ] ; } if ( parameters [ 'variants' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variants' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } variants postMutationAssessorAnnotation ( parameters ) { return this . postMutationAssessorAnnotationWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchMutationAssessorAnnotationGETURL ( parameters ) { let queryParameters = { } ; let path = '/mutation_assessor/{variant}' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } variant fetchMutationAssessorAnnotationGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/mutation_assessor/{variant}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'variant' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variant' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } variant fetchMutationAssessorAnnotationGET ( parameters ) { return this . fetchMutationAssessorAnnotationGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; postMyVariantInfoAnnotationURL ( parameters ) { let queryParameters = { } ; let path = '/my_variant_info/variant' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } variants postMyVariantInfoAnnotationWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/my_variant_info/variant' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'variants' ] !== undefined ) { body = parameters [ 'variants' ] ; } if ( parameters [ 'variants' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variants' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } variants postMyVariantInfoAnnotation ( parameters ) { return this . postMyVariantInfoAnnotationWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchMyVariantInfoAnnotationGETURL ( parameters ) { let queryParameters = { } ; let path = '/my_variant_info/variant/{variant}' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } variant fetchMyVariantInfoAnnotationGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/my_variant_info/variant/{variant}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'variant' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variant' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } variant fetchMyVariantInfoAnnotationGET ( parameters ) { return this . fetchMyVariantInfoAnnotationGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; postNucleotideContextAnnotationURL ( parameters ) { let queryParameters = { } ; let path = '/nucleotide_context' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } variants postNucleotideContextAnnotationWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/nucleotide_context' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'variants' ] !== undefined ) { body = parameters [ 'variants' ] ; } if ( parameters [ 'variants' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variants' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } variants postNucleotideContextAnnotation ( parameters ) { return this . postNucleotideContextAnnotationWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchNucleotideContextAnnotationGETURL ( parameters ) { let queryParameters = { } ; let path = '/nucleotide_context/{variant}' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } variant fetchNucleotideContextAnnotationGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/nucleotide_context/{variant}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'variant' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variant' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } variant fetchNucleotideContextAnnotationGET ( parameters ) { return this . fetchNucleotideContextAnnotationGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; searchAnnotationByKeywordGETUsingGETURL ( parameters ) { let queryParameters = { } ; let path = '/search' ; if ( parameters [ 'keyword' ] !== undefined ) { queryParameters [ 'keyword' ] = parameters [ 'keyword' ] ; } if ( parameters [ 'limit' ] !== undefined ) { queryParameters [ 'limit' ] = parameters [ 'limit' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } keyword param { integer } limit searchAnnotationByKeywordGETUsingGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/search' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'keyword' ] !== undefined ) { queryParameters [ 'keyword' ] = parameters [ 'keyword' ] ; } if ( parameters [ 'keyword' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: keyword' ) ) ; return ; } if ( parameters [ 'limit' ] !== undefined ) { queryParameters [ 'limit' ] = parameters [ 'limit' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } keyword param { integer } limit searchAnnotationByKeywordGETUsingGET ( parameters ) { return this . searchAnnotationByKeywordGETUsingGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchSignalMutationsByHugoSymbolGETUsingGETURL ( parameters ) { let queryParameters = { } ; let path = '/signal/mutation' ; if ( parameters [ 'hugoGeneSymbol' ] !== undefined ) { queryParameters [ 'hugoGeneSymbol' ] = parameters [ 'hugoGeneSymbol' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } hugoGeneSymbol fetchSignalMutationsByHugoSymbolGETUsingGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/signal/mutation' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'hugoGeneSymbol' ] !== undefined ) { queryParameters [ 'hugoGeneSymbol' ] = parameters [ 'hugoGeneSymbol' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } hugoGeneSymbol fetchSignalMutationsByHugoSymbolGETUsingGET ( parameters ) { return this . fetchSignalMutationsByHugoSymbolGETUsingGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchSignalMutationsByMutationFilterPOSTUsingPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/signal/mutation' ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { } mutationFilter fetchSignalMutationsByMutationFilterPOSTUsingPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/signal/mutation' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'mutationFilter' ] !== undefined ) { body = parameters [ 'mutationFilter' ] ; } if ( parameters [ 'mutationFilter' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: mutationFilter' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { } mutationFilter fetchSignalMutationsByMutationFilterPOSTUsingPOST ( parameters ) { return this . fetchSignalMutationsByMutationFilterPOSTUsingPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchSignalMutationsByHgvsgGETUsingGETURL ( parameters ) { let queryParameters = { } ; let path = '/signal/mutation/hgvs/{variant}' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } variant fetchSignalMutationsByHgvsgGETUsingGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/signal/mutation/hgvs/{variant}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'variant' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variant' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } variant fetchSignalMutationsByHgvsgGETUsingGET ( parameters ) { return this . fetchSignalMutationsByHgvsgGETUsingGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; searchSignalByKeywordGETUsingGETURL ( parameters ) { let queryParameters = { } ; let path = '/signal/search' ; if ( parameters [ 'keyword' ] !== undefined ) { queryParameters [ 'keyword' ] = parameters [ 'keyword' ] ; } if ( parameters [ 'limit' ] !== undefined ) { queryParameters [ 'limit' ] = parameters [ 'limit' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } keyword param { integer } limit searchSignalByKeywordGETUsingGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/signal/search' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'keyword' ] !== undefined ) { queryParameters [ 'keyword' ] = parameters [ 'keyword' ] ; } if ( parameters [ 'keyword' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: keyword' ) ) ; return ; } if ( parameters [ 'limit' ] !== undefined ) { queryParameters [ 'limit' ] = parameters [ 'limit' ] ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } keyword param { integer } limit searchSignalByKeywordGETUsingGET ( parameters ) { return this . searchSignalByKeywordGETUsingGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchGeneXrefsGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/xrefs/{accession}' ; path = path . replace ( '{accession}' , parameters [ 'accession' ] + '' ) ; if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } let keys = Object . keys ( queryParameters ) ; return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ; } ; method name param { string } accession fetchGeneXrefsGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/xrefs/{accession}' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'application/json' ; headers [ 'Content-Type' ] = 'application/json' ; path = path . replace ( '{accession}' , parameters [ 'accession' ] + '' ) ; if ( parameters [ 'accession' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: accession' ) ) ; return ; } if ( parameters . $queryParameters ) { Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) { var parameter = parameters . $queryParameters [ parameterName ] ; queryParameters [ parameterName ] = parameter ; } ) ; } request ( 'GET' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ; } ) ; } ; method name param { string } accession fetchGeneXrefsGET_1 ( parameters ) { return this . fetchGeneXrefsGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; }