import * as request from "superagent" ; type CallbackHandler = ( err : any , res ? : request . Response ) => void ; 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 ArticleAbstract = { 'abstract' : string ; 'link' : string ; } ; export type Citations = { 'abstracts' : Array < ArticleAbstract > ; 'pmids' : Array < 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 Clinvar = { 'alternateAllele' : string ; 'chromosome' : string ; 'clinicalSignificance' : string ; 'clinvarId' : number ; 'conflictingClinicalSignificance' : string ; 'endPosition' : number ; 'referenceAllele' : string ; 'startPosition' : number ; } ; export type ClinvarAnnotation = { 'annotation' : Clinvar ; } ; export type ColocatedVariant = { 'dbSnpId' : string ; 'gnomad_nfe_allele' : string ; 'gnomad_nfe_maf' : string ; 'gnomad_afr_allele' : string ; 'gnomad_afr_maf' : string ; 'gnomad_eas_allele' : string ; 'gnomad_eas_maf' : string ; } ; 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 Drug = { 'drugName' : string ; 'ncitCode' : string ; 'synonyms' : Array < string > ; 'uuid' : string ; } ; export type EnsemblFilter = { 'geneIds' : Array < string > ; 'hugoSymbols' : Array < string > ; 'proteinIds' : Array < string > ; 'transcriptIds' : Array < string > ; } ; export type EnsemblGene = { 'geneId' : string ; 'hugoSymbol' : string ; 'synonyms' : Array < string > ; 'previousSymbols' : Array < string > ; 'entrezGeneId' : string ; } ; export type EnsemblTranscript = { 'uniprotId' : string ; 'transcriptId' : string ; 'geneId' : string ; 'proteinId' : string ; 'proteinLength' : number ; 'pfamDomains' : Array < PfamDomainRange > ; 'hugoSymbols' : Array < string > ; 'refseqMrnaId' : string ; 'ccdsId' : string ; 'exons' : Array < Exon > ; 'utrs' : Array < UntranslatedRegion > ; } ; export type Exon = { 'exonId' : string ; 'exonStart' : number ; 'exonEnd' : number ; 'rank' : number ; 'strand' : number ; 'version' : number ; } ; 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 HotspotAnnotation = { 'annotation' : Array < Array < Hotspot > > ; 'license' : string ; } ; export type HrdScore = { 'fractionLoh' : number ; 'lst' : number ; 'ntelomericAi' : number ; } ; export type Implication = { 'alterations' : Array < string > ; 'description' : string ; 'levelOfEvidence' : "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" ; 'tumorType' : TumorType ; } ; export type IndicatorQueryResp = { 'alleleExist' : boolean ; 'dataVersion' : string ; 'diagnosticImplications' : Array < Implication > ; 'diagnosticSummary' : string ; 'geneExist' : boolean ; 'geneSummary' : string ; 'highestDiagnosticImplicationLevel' : "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" ; 'highestPrognosticImplicationLevel' : "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" ; 'highestResistanceLevel' : "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" ; 'highestSensitiveLevel' : "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" ; 'hotspot' : boolean ; 'lastUpdate' : string ; 'mutationEffect' : MutationEffectResp ; 'oncogenic' : string ; 'otherSignificantResistanceLevels' : Array < "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" > ; 'otherSignificantSensitiveLevels' : Array < "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" > ; 'prognosticImplications' : Array < Implication > ; 'prognosticSummary' : string ; 'query' : Query ; 'treatments' : Array < IndicatorQueryTreatment > ; 'tumorTypeSummary' : string ; 'variantExist' : boolean ; 'variantSummary' : string ; 'vus' : boolean ; } ; export type IndicatorQueryTreatment = { 'abstracts' : Array < ArticleAbstract > ; 'alterations' : Array < string > ; 'approvedIndications' : Array < string > ; 'description' : string ; 'drugs' : Array < Drug > ; 'fdaApproved' : boolean ; 'level' : "LEVEL_0" | "LEVEL_1" | "LEVEL_2" | "LEVEL_2A" | "LEVEL_2B" | "LEVEL_3A" | "LEVEL_3B" | "LEVEL_4" | "LEVEL_R1" | "LEVEL_R2" | "LEVEL_R3" | "LEVEL_Px1" | "LEVEL_Px2" | "LEVEL_Px3" | "LEVEL_Dx1" | "LEVEL_Dx2" | "LEVEL_Dx3" | "NO" ; 'levelAssociatedCancerType' : TumorType ; 'pmids' : Array < string > ; } ; export type IntegerRange = { 'end' : number ; 'start' : number ; } ; export type IntergenicConsequences = { 'impact' : string ; 'variantAllele' : string ; 'consequenceTerms' : Array < string > ; } ; export type MainType = { 'id' : number ; 'name' : string ; 'tumorForm' : "SOLID" | "LIQUID" ; } ; 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 MutationAssessorAnnotation = { 'annotation' : MutationAssessor ; 'license' : string ; } ; export type MutationEffectResp = { 'citations' : Citations ; 'description' : string ; 'knownEffect' : string ; } ; 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 MyVariantInfoAnnotation = { 'annotation' : MyVariantInfo ; 'license' : string ; } ; export type NucleotideContext = { 'hgvs' : string ; 'id' : string ; 'molecule' : string ; 'query' : string ; 'seq' : string ; } ; export type NucleotideContextAnnotation = { 'annotation' : NucleotideContext ; 'license' : string ; } ; export type OncokbAnnotation = { 'annotation' : IndicatorQueryResp ; 'license' : string ; } ; export type PdbHeader = { 'compound' : { } ; 'pdbId' : string ; 'source' : { } ; 'title' : string ; } ; export type PfamDomain = { 'description' : string ; 'name' : string ; 'pfamAccession' : string ; } ; export type PfamDomainRange = { 'pfamDomainId' : string ; 'pfamDomainStart' : number ; 'pfamDomainEnd' : number ; } ; export type PostTranslationalModification = { 'ensemblTranscriptIds' : Array < string > ; 'position' : number ; 'pubmedIds' : Array < string > ; 'sequence' : string ; 'type' : string ; 'uniprotAccession' : string ; 'uniprotEntry' : string ; } ; export type PtmAnnotation = { 'annotation' : Array < Array < PostTranslationalModification > > ; 'license' : string ; } ; export type PtmFilter = { 'transcriptIds' : Array < string > ; } ; export type Query = { 'alteration' : string ; 'alterationType' : string ; 'consequence' : string ; 'entrezGeneId' : number ; 'hgvs' : string ; 'hugoSymbol' : string ; 'id' : string ; 'proteinEnd' : number ; 'proteinStart' : number ; 'svType' : "DELETION" | "TRANSLOCATION" | "DUPLICATION" | "INSERTION" | "INVERSION" | "FUSION" | "UNKNOWN" ; 'tumorType' : string ; 'type' : string ; } ; export type Rcv = { 'accession' : string ; 'clinicalSignificance' : string ; 'origin' : string ; 'preferredName' : string ; } ; export type SignalAnnotation = { 'annotation' : Array < SignalMutation > ; 'license' : 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 SignalPopulationStats = { 'afr' : number ; 'asj' : number ; 'asn' : number ; 'eur' : number ; 'impact' : number ; 'oth' : number ; } ; 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 TranscriptConsequence = { 'amino_acids' : string ; 'canonical' : string ; 'codons' : string ; 'consequence_terms' : Array < string > ; 'exon' : string ; 'gene_id' : string ; 'gene_symbol' : string ; 'hgnc_id' : string ; 'hgvsc' : string ; 'hgvsg' : string ; 'hgvsp' : string ; 'polyphen_prediction' : string ; 'polyphen_score' : number ; 'protein_end' : number ; 'protein_id' : string ; 'protein_start' : number ; 'refseq_transcript_ids' : Array < string > ; 'sift_prediction' : string ; 'sift_score' : number ; 'transcript_id' : string ; 'uniprotId' : string ; 'variant_allele' : 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 TumorType = { 'children' : { } ; 'code' : string ; 'color' : string ; 'id' : number ; 'level' : number ; 'mainType' : MainType ; 'name' : string ; 'parent' : string ; 'tissue' : string ; 'tumorForm' : "SOLID" | "LIQUID" ; } ; export type UntranslatedRegion = { 'type' : string ; 'start' : number ; 'end' : number ; 'strand' : number ; } ; export type VariantAnnotation = { 'allele_string' : string ; 'annotationJSON' : string ; 'annotation_summary' : VariantAnnotationSummary ; 'assembly_name' : string ; 'clinvar' : ClinvarAnnotation ; 'colocatedVariants' : Array < ColocatedVariant > ; 'end' : number ; 'hgvsg' : string ; 'hotspots' : HotspotAnnotation ; 'id' : string ; 'intergenic_consequences' : Array < IntergenicConsequences > ; 'most_severe_consequence' : string ; 'mutation_assessor' : MutationAssessorAnnotation ; 'my_variant_info' : MyVariantInfoAnnotation ; 'nucleotide_context' : NucleotideContextAnnotation ; 'oncokb' : OncokbAnnotation ; 'originalVariantQuery' : string ; 'ptms' : PtmAnnotation ; 'seq_region_name' : string ; 'signalAnnotation' : SignalAnnotation ; 'start' : number ; 'strand' : number ; 'successfully_annotated' : boolean ; 'transcript_consequences' : Array < TranscriptConsequence > ; 'variant' : 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 ; } ; export type Version = { 'version' : string ; } ; class param { ( string ) } domainOrOptions export default class GenomeNexusAPI { 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 ) ; } } ) ; } fetchVariantAnnotationPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/annotation' ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 } token param { array } fields fetchVariantAnnotationPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation' ; 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 [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 } token param { array } fields fetchVariantAnnotationPOST ( parameters ) { return this . fetchVariantAnnotationPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchVariantAnnotationByIdPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/annotation/dbsnp/' ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 { } variantIds param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByIdPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation/dbsnp/' ; 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 [ 'variantIds' ] !== undefined ) { body = parameters [ 'variantIds' ] ; } if ( parameters [ 'variantIds' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variantIds' ) ) ; return ; } if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 { } variantIds param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByIdPOST ( parameters ) { return this . fetchVariantAnnotationByIdPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchVariantAnnotationByIdGETURL ( parameters ) { let queryParameters = { } ; let path = '/annotation/dbsnp/{variantId}' ; path = path . replace ( '{variantId}' , parameters [ 'variantId' ] + '' ) ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 } variantId param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByIdGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation/dbsnp/{variantId}' ; 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 ( '{variantId}' , parameters [ 'variantId' ] + '' ) ; if ( parameters [ 'variantId' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: variantId' ) ) ; return ; } if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 } variantId param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByIdGET ( parameters ) { return this . fetchVariantAnnotationByIdGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchVariantAnnotationByGenomicLocationPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/annotation/genomic' ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByGenomicLocationPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation/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 [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByGenomicLocationPOST ( parameters ) { return this . fetchVariantAnnotationByGenomicLocationPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchVariantAnnotationByGenomicLocationGETURL ( parameters ) { let queryParameters = { } ; let path = '/annotation/genomic/{genomicLocation}' ; path = path . replace ( '{genomicLocation}' , parameters [ 'genomicLocation' ] + '' ) ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByGenomicLocationGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation/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 [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 param { string } isoformOverrideSource param { string } token param { array } fields fetchVariantAnnotationByGenomicLocationGET ( parameters ) { return this . fetchVariantAnnotationByGenomicLocationGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchVariantAnnotationGETURL ( parameters ) { let queryParameters = { } ; let path = '/annotation/{variant}' ; path = path . replace ( '{variant}' , parameters [ 'variant' ] + '' ) ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } if ( parameters [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 } token param { array } fields fetchVariantAnnotationGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotation/{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 [ 'token' ] !== undefined ) { queryParameters [ 'token' ] = parameters [ 'token' ] ; } if ( parameters [ 'fields' ] !== undefined ) { queryParameters [ 'fields' ] = parameters [ 'fields' ] ; } 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 } token param { array } fields fetchVariantAnnotationGET ( parameters ) { return this . fetchVariantAnnotationGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchCanonicalEnsemblGeneIdByEntrezGeneIdsPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/canonical-gene/entrez' ; 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 { } entrezGeneIds fetchCanonicalEnsemblGeneIdByEntrezGeneIdsPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/canonical-gene/entrez' ; 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 [ 'entrezGeneIds' ] !== undefined ) { body = parameters [ 'entrezGeneIds' ] ; } if ( parameters [ 'entrezGeneIds' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: entrezGeneIds' ) ) ; 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 { } entrezGeneIds fetchCanonicalEnsemblGeneIdByEntrezGeneIdsPOST ( parameters ) { return this . fetchCanonicalEnsemblGeneIdByEntrezGeneIdsPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchCanonicalEnsemblGeneIdByEntrezGeneIdGETURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/canonical-gene/entrez/{entrezGeneId}' ; path = path . replace ( '{entrezGeneId}' , parameters [ 'entrezGeneId' ] + '' ) ; 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 } entrezGeneId fetchCanonicalEnsemblGeneIdByEntrezGeneIdGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/canonical-gene/entrez/{entrezGeneId}' ; 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 ( '{entrezGeneId}' , parameters [ 'entrezGeneId' ] + '' ) ; if ( parameters [ 'entrezGeneId' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: entrezGeneId' ) ) ; 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 } entrezGeneId fetchCanonicalEnsemblGeneIdByEntrezGeneIdGET ( parameters ) { return this . fetchCanonicalEnsemblGeneIdByEntrezGeneIdGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchCanonicalEnsemblGeneIdByHugoSymbolsPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/canonical-gene/hgnc' ; 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 { } hugoSymbols fetchCanonicalEnsemblGeneIdByHugoSymbolsPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/canonical-gene/hgnc' ; 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 [ 'hugoSymbols' ] !== undefined ) { body = parameters [ 'hugoSymbols' ] ; } if ( parameters [ 'hugoSymbols' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: hugoSymbols' ) ) ; 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 { } hugoSymbols fetchCanonicalEnsemblGeneIdByHugoSymbolsPOST ( parameters ) { return this . fetchCanonicalEnsemblGeneIdByHugoSymbolsPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchCanonicalEnsemblGeneIdByHugoSymbolGETURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/canonical-gene/hgnc/{hugoSymbol}' ; path = path . replace ( '{hugoSymbol}' , parameters [ 'hugoSymbol' ] + '' ) ; 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 } hugoSymbol fetchCanonicalEnsemblGeneIdByHugoSymbolGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/canonical-gene/hgnc/{hugoSymbol}' ; 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 ( '{hugoSymbol}' , parameters [ 'hugoSymbol' ] + '' ) ; if ( parameters [ 'hugoSymbol' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: hugoSymbol' ) ) ; 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 } hugoSymbol fetchCanonicalEnsemblGeneIdByHugoSymbolGET ( parameters ) { return this . fetchCanonicalEnsemblGeneIdByHugoSymbolGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchCanonicalEnsemblTranscriptsByHugoSymbolsPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/canonical-transcript/hgnc' ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } 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 { } hugoSymbols param { string } isoformOverrideSource fetchCanonicalEnsemblTranscriptsByHugoSymbolsPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/canonical-transcript/hgnc' ; 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 [ 'hugoSymbols' ] !== undefined ) { body = parameters [ 'hugoSymbols' ] ; } if ( parameters [ 'hugoSymbols' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: hugoSymbols' ) ) ; return ; } if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } 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 { } hugoSymbols param { string } isoformOverrideSource fetchCanonicalEnsemblTranscriptsByHugoSymbolsPOST ( parameters ) { return this . fetchCanonicalEnsemblTranscriptsByHugoSymbolsPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchCanonicalEnsemblTranscriptByHugoSymbolGETURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/canonical-transcript/hgnc/{hugoSymbol}' ; path = path . replace ( '{hugoSymbol}' , parameters [ 'hugoSymbol' ] + '' ) ; if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } 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 } hugoSymbol param { string } isoformOverrideSource fetchCanonicalEnsemblTranscriptByHugoSymbolGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/canonical-transcript/hgnc/{hugoSymbol}' ; 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 ( '{hugoSymbol}' , parameters [ 'hugoSymbol' ] + '' ) ; if ( parameters [ 'hugoSymbol' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: hugoSymbol' ) ) ; return ; } if ( parameters [ 'isoformOverrideSource' ] !== undefined ) { queryParameters [ 'isoformOverrideSource' ] = parameters [ 'isoformOverrideSource' ] ; } 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 } hugoSymbol param { string } isoformOverrideSource fetchCanonicalEnsemblTranscriptByHugoSymbolGET ( parameters ) { return this . fetchCanonicalEnsemblTranscriptByHugoSymbolGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchEnsemblTranscriptsGETURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/transcript' ; if ( parameters [ 'geneId' ] !== undefined ) { queryParameters [ 'geneId' ] = parameters [ 'geneId' ] ; } if ( parameters [ 'proteinId' ] !== undefined ) { queryParameters [ 'proteinId' ] = parameters [ 'proteinId' ] ; } if ( parameters [ 'hugoSymbol' ] !== undefined ) { queryParameters [ 'hugoSymbol' ] = parameters [ 'hugoSymbol' ] ; } 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 } geneId param { string } proteinId param { string } hugoSymbol fetchEnsemblTranscriptsGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/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 [ 'geneId' ] !== undefined ) { queryParameters [ 'geneId' ] = parameters [ 'geneId' ] ; } if ( parameters [ 'proteinId' ] !== undefined ) { queryParameters [ 'proteinId' ] = parameters [ 'proteinId' ] ; } if ( parameters [ 'hugoSymbol' ] !== undefined ) { queryParameters [ 'hugoSymbol' ] = parameters [ 'hugoSymbol' ] ; } 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 } geneId param { string } proteinId param { string } hugoSymbol fetchEnsemblTranscriptsGET ( parameters ) { return this . fetchEnsemblTranscriptsGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchEnsemblTranscriptsByEnsemblFilterPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/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 { } ensemblFilter fetchEnsemblTranscriptsByEnsemblFilterPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/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 [ 'ensemblFilter' ] !== undefined ) { body = parameters [ 'ensemblFilter' ] ; } if ( parameters [ 'ensemblFilter' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: ensemblFilter' ) ) ; 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 { } ensemblFilter fetchEnsemblTranscriptsByEnsemblFilterPOST ( parameters ) { return this . fetchEnsemblTranscriptsByEnsemblFilterPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchEnsemblTranscriptByTranscriptIdGETURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/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 fetchEnsemblTranscriptByTranscriptIdGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/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 fetchEnsemblTranscriptByTranscriptIdGET ( parameters ) { return this . fetchEnsemblTranscriptByTranscriptIdGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchGeneXrefsGETURL ( parameters ) { let queryParameters = { } ; let path = '/ensembl/xrefs' ; if ( parameters [ 'accession' ] !== undefined ) { queryParameters [ '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 fetchGeneXrefsGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ensembl/xrefs' ; 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 [ 'accession' ] !== undefined ) { queryParameters [ '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 ( parameters ) { return this . fetchGeneXrefsGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchPdbHeaderPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/pdb/header' ; 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 { } pdbIds fetchPdbHeaderPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/pdb/header' ; 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 [ 'pdbIds' ] !== undefined ) { body = parameters [ 'pdbIds' ] ; } if ( parameters [ 'pdbIds' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: pdbIds' ) ) ; 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 { } pdbIds fetchPdbHeaderPOST ( parameters ) { return this . fetchPdbHeaderPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchPdbHeaderGETURL ( parameters ) { let queryParameters = { } ; let path = '/pdb/header/{pdbId}' ; path = path . replace ( '{pdbId}' , parameters [ 'pdbId' ] + '' ) ; 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 } pdbId fetchPdbHeaderGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/pdb/header/{pdbId}' ; 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 ( '{pdbId}' , parameters [ 'pdbId' ] + '' ) ; if ( parameters [ 'pdbId' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: pdbId' ) ) ; 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 } pdbId fetchPdbHeaderGET ( parameters ) { return this . fetchPdbHeaderGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchPfamDomainsByPfamAccessionPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/pfam/domain' ; 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 { } pfamAccessions fetchPfamDomainsByPfamAccessionPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/pfam/domain' ; 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 [ 'pfamAccessions' ] !== undefined ) { body = parameters [ 'pfamAccessions' ] ; } if ( parameters [ 'pfamAccessions' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: pfamAccessions' ) ) ; 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 { } pfamAccessions fetchPfamDomainsByPfamAccessionPOST ( parameters ) { return this . fetchPfamDomainsByPfamAccessionPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchPfamDomainsByAccessionGETURL ( parameters ) { let queryParameters = { } ; let path = '/pfam/domain/{pfamAccession}' ; path = path . replace ( '{pfamAccession}' , parameters [ 'pfamAccession' ] + '' ) ; 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 } pfamAccession fetchPfamDomainsByAccessionGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/pfam/domain/{pfamAccession}' ; 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 ( '{pfamAccession}' , parameters [ 'pfamAccession' ] + '' ) ; if ( parameters [ 'pfamAccession' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: pfamAccession' ) ) ; 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 } pfamAccession fetchPfamDomainsByAccessionGET ( parameters ) { return this . fetchPfamDomainsByAccessionGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchPostTranslationalModificationsGETURL ( parameters ) { let queryParameters = { } ; let path = '/ptm/experimental' ; if ( parameters [ 'ensemblTranscriptId' ] !== undefined ) { queryParameters [ 'ensemblTranscriptId' ] = parameters [ 'ensemblTranscriptId' ] ; } 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 } ensemblTranscriptId fetchPostTranslationalModificationsGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ptm/experimental' ; 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 [ 'ensemblTranscriptId' ] !== undefined ) { queryParameters [ 'ensemblTranscriptId' ] = parameters [ 'ensemblTranscriptId' ] ; } 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 } ensemblTranscriptId fetchPostTranslationalModificationsGET ( parameters ) { return this . fetchPostTranslationalModificationsGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchPostTranslationalModificationsByPtmFilterPOSTURL ( parameters ) { let queryParameters = { } ; let path = '/ptm/experimental' ; 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 { } ptmFilter fetchPostTranslationalModificationsByPtmFilterPOSTWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/ptm/experimental' ; 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 [ 'ptmFilter' ] !== undefined ) { body = parameters [ 'ptmFilter' ] ; } if ( parameters [ 'ptmFilter' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: ptmFilter' ) ) ; 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 { } ptmFilter fetchPostTranslationalModificationsByPtmFilterPOST ( parameters ) { return this . fetchPostTranslationalModificationsByPtmFilterPOSTWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; fetchVersionGETURL ( parameters ) { let queryParameters = { } ; let path = '/version' ; 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 fetchVersionGETWithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/version' ; 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 . $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 fetchVersionGET ( parameters ) { return this . fetchVersionGETWithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; }