import * as request from "superagent" ; type CallbackHandler = ( err : any , res ? : request . Response ) => void ; export type Drug = { 'drugName' : string ; 'ncitCode' : string ; 'synonyms' : Array < string > ; 'uuid' : string ; } ; export type AnnotateMutationByGenomicChangeQuery = { 'evidenceTypes' : Array < "GENE_SUMMARY" | "MUTATION_SUMMARY" | "TUMOR_TYPE_SUMMARY" | "GENE_TUMOR_TYPE_SUMMARY" | "PROGNOSTIC_SUMMARY" | "DIAGNOSTIC_SUMMARY" | "GENE_BACKGROUND" | "ONCOGENIC" | "MUTATION_EFFECT" | "VUS" | "PROGNOSTIC_IMPLICATION" | "DIAGNOSTIC_IMPLICATION" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE" > ; 'genomicLocation' : string ; 'id' : string ; 'referenceGenome' : "GRCh37" | "GRCh38" ; 'tumorType' : string ; } ; export type CuratedGene = { 'background' : string ; 'entrezGeneId' : number ; 'grch37Isoform' : string ; 'grch37RefSeq' : string ; 'grch38Isoform' : string ; 'grch38RefSeq' : string ; 'highestResistancLevel' : string ; 'highestResistanceLevel' : string ; 'highestSensitiveLevel' : string ; 'hugoSymbol' : string ; 'oncogene' : boolean ; 'summary' : string ; 'tsg' : boolean ; } ; export type Query = { 'alteration' : string ; 'alterationType' : string ; 'consequence' : string ; 'entrezGeneId' : number ; 'hgvs' : string ; 'hugoSymbol' : string ; 'id' : string ; 'proteinEnd' : number ; 'proteinStart' : number ; 'referenceGenome' : "GRCh37" | "GRCh38" ; 'svType' : "DELETION" | "TRANSLOCATION" | "DUPLICATION" | "INSERTION" | "INVERSION" | "FUSION" | "UNKNOWN" ; 'tumorType' : string ; 'type' : string ; } ; export type QueryGene = { 'entrezGeneId' : number ; 'hugoSymbol' : string ; } ; export type CancerGene = { 'entrezGeneId' : number ; 'foundation' : boolean ; 'foundationHeme' : boolean ; 'geneAliases' : Array < string > ; 'grch37Isoform' : string ; 'grch37RefSeq' : string ; 'grch38Isoform' : string ; 'grch38RefSeq' : string ; 'hugoSymbol' : string ; 'mSKHeme' : boolean ; 'mSKImpact' : boolean ; 'occurrenceCount' : number ; 'oncogene' : boolean ; 'oncokbAnnotated' : boolean ; 'sangerCGC' : boolean ; 'tsg' : boolean ; 'vogelstein' : boolean ; } ; export type MainType = { 'id' : number ; 'name' : string ; 'tumorForm' : "SOLID" | "LIQUID" | "MIXED" ; } ; export type OncoKBInfo = { 'apiVersion' : string ; 'dataVersion' : Version ; 'levels' : Array < InfoLevel > ; 'ncitVersion' : string ; 'oncoTreeVersion' : string ; 'publicInstance' : boolean ; } ; export type Implication = { 'abstracts' : Array < ArticleAbstract > ; '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" ; 'pmids' : Array < string > ; 'tumorType' : TumorType ; } ; export type AnnotateMutationByProteinChangeQuery = { 'alteration' : string ; 'consequence' : string ; 'evidenceTypes' : Array < "GENE_SUMMARY" | "MUTATION_SUMMARY" | "TUMOR_TYPE_SUMMARY" | "GENE_TUMOR_TYPE_SUMMARY" | "PROGNOSTIC_SUMMARY" | "DIAGNOSTIC_SUMMARY" | "GENE_BACKGROUND" | "ONCOGENIC" | "MUTATION_EFFECT" | "VUS" | "PROGNOSTIC_IMPLICATION" | "DIAGNOSTIC_IMPLICATION" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE" > ; 'gene' : QueryGene ; 'id' : string ; 'proteinEnd' : number ; 'proteinStart' : number ; 'referenceGenome' : "GRCh37" | "GRCh38" ; 'tumorType' : string ; } ; export type IndicatorQueryTreatment = { 'abstracts' : Array < ArticleAbstract > ; 'alterations' : Array < string > ; 'approvedIndications' : Array < string > ; 'description' : string ; 'drugs' : Array < Drug > ; '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 TumorType = { 'children' : { } ; 'code' : string ; 'color' : string ; 'id' : number ; 'level' : number ; 'mainType' : MainType ; 'name' : string ; 'parent' : string ; 'tissue' : string ; 'tumorForm' : "SOLID" | "LIQUID" | "MIXED" ; } ; export type MutationEffectResp = { 'citations' : Citations ; 'description' : string ; 'knownEffect' : string ; } ; export type AnnotateCopyNumberAlterationQuery = { 'copyNameAlterationType' : "AMPLIFICATION" | "DELETION" | "GAIN" | "LOSS" ; 'evidenceTypes' : Array < "GENE_SUMMARY" | "MUTATION_SUMMARY" | "TUMOR_TYPE_SUMMARY" | "GENE_TUMOR_TYPE_SUMMARY" | "PROGNOSTIC_SUMMARY" | "DIAGNOSTIC_SUMMARY" | "GENE_BACKGROUND" | "ONCOGENIC" | "MUTATION_EFFECT" | "VUS" | "PROGNOSTIC_IMPLICATION" | "DIAGNOSTIC_IMPLICATION" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE" > ; 'gene' : QueryGene ; 'id' : string ; 'referenceGenome' : "GRCh37" | "GRCh38" ; 'tumorType' : string ; } ; export type Version = { 'date' : string ; 'version' : string ; } ; export type AnnotateMutationByHGVSgQuery = { 'evidenceTypes' : Array < "GENE_SUMMARY" | "MUTATION_SUMMARY" | "TUMOR_TYPE_SUMMARY" | "GENE_TUMOR_TYPE_SUMMARY" | "PROGNOSTIC_SUMMARY" | "DIAGNOSTIC_SUMMARY" | "GENE_BACKGROUND" | "ONCOGENIC" | "MUTATION_EFFECT" | "VUS" | "PROGNOSTIC_IMPLICATION" | "DIAGNOSTIC_IMPLICATION" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE" > ; 'hgvsg' : string ; 'id' : string ; 'referenceGenome' : "GRCh37" | "GRCh38" ; 'tumorType' : string ; } ; export type AnnotateStructuralVariantQuery = { 'evidenceTypes' : Array < "GENE_SUMMARY" | "MUTATION_SUMMARY" | "TUMOR_TYPE_SUMMARY" | "GENE_TUMOR_TYPE_SUMMARY" | "PROGNOSTIC_SUMMARY" | "DIAGNOSTIC_SUMMARY" | "GENE_BACKGROUND" | "ONCOGENIC" | "MUTATION_EFFECT" | "VUS" | "PROGNOSTIC_IMPLICATION" | "DIAGNOSTIC_IMPLICATION" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_SENSITIVITY" | "STANDARD_THERAPEUTIC_IMPLICATIONS_FOR_DRUG_RESISTANCE" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_SENSITIVITY" | "INVESTIGATIONAL_THERAPEUTIC_IMPLICATIONS_DRUG_RESISTANCE" > ; 'functionalFusion' : boolean ; 'geneA' : QueryGene ; 'geneB' : QueryGene ; 'id' : string ; 'referenceGenome' : "GRCh37" | "GRCh38" ; 'structuralVariantType' : "DELETION" | "TRANSLOCATION" | "DUPLICATION" | "INSERTION" | "INVERSION" | "FUSION" | "UNKNOWN" ; 'tumorType' : string ; } ; 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 Citations = { 'abstracts' : Array < ArticleAbstract > ; 'pmids' : Array < string > ; } ; export type ArticleAbstract = { 'abstract' : string ; 'link' : string ; } ; export type InfoLevel = { 'colorHex' : string ; 'description' : string ; 'htmlDescription' : 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" ; } ; class param { ( string ) } domainOrOptions export default class OncoKbAPI { 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 ) ; } } ) ; } annotateCopyNumberAlterationsGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/copyNumberAlterations' ; if ( parameters [ 'hugoSymbol' ] !== undefined ) { queryParameters [ 'hugoSymbol' ] = parameters [ 'hugoSymbol' ] ; } if ( parameters [ 'entrezGeneId' ] !== undefined ) { queryParameters [ 'entrezGeneId' ] = parameters [ 'entrezGeneId' ] ; } if ( parameters [ 'copyNameAlterationType' ] !== undefined ) { queryParameters [ 'copyNameAlterationType' ] = parameters [ 'copyNameAlterationType' ] ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 { integer } entrezGeneId param { string } copyNameAlterationType param { string } referenceGenome param { string } tumorType param { string } evidenceType annotateCopyNumberAlterationsGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/copyNumberAlterations' ; 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 [ 'hugoSymbol' ] !== undefined ) { queryParameters [ 'hugoSymbol' ] = parameters [ 'hugoSymbol' ] ; } if ( parameters [ 'entrezGeneId' ] !== undefined ) { queryParameters [ 'entrezGeneId' ] = parameters [ 'entrezGeneId' ] ; } if ( parameters [ 'copyNameAlterationType' ] !== undefined ) { queryParameters [ 'copyNameAlterationType' ] = parameters [ 'copyNameAlterationType' ] ; } if ( parameters [ 'copyNameAlterationType' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: copyNameAlterationType' ) ) ; return ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 { integer } entrezGeneId param { string } copyNameAlterationType param { string } referenceGenome param { string } tumorType param { string } evidenceType annotateCopyNumberAlterationsGetUsingGET_1 ( parameters ) { return this . annotateCopyNumberAlterationsGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateCopyNumberAlterationsPostUsingPOST_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/copyNumberAlterations' ; 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 { } body annotateCopyNumberAlterationsPostUsingPOST_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/copyNumberAlterations' ; 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 [ 'body' ] !== undefined ) { body = parameters [ 'body' ] ; } if ( parameters [ 'body' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: body' ) ) ; 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 { } body annotateCopyNumberAlterationsPostUsingPOST_1 ( parameters ) { return this . annotateCopyNumberAlterationsPostUsingPOST_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateMutationsByGenomicChangeGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/mutations/byGenomicChange' ; if ( parameters [ 'genomicLocation' ] !== undefined ) { queryParameters [ 'genomicLocation' ] = parameters [ 'genomicLocation' ] ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 } referenceGenome param { string } tumorType param { string } evidenceType annotateMutationsByGenomicChangeGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/mutations/byGenomicChange' ; 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 [ 'genomicLocation' ] !== undefined ) { queryParameters [ 'genomicLocation' ] = parameters [ 'genomicLocation' ] ; } if ( parameters [ 'genomicLocation' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: genomicLocation' ) ) ; return ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 } referenceGenome param { string } tumorType param { string } evidenceType annotateMutationsByGenomicChangeGetUsingGET_1 ( parameters ) { return this . annotateMutationsByGenomicChangeGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateMutationsByGenomicChangePostUsingPOST_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/mutations/byGenomicChange' ; 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 { } body annotateMutationsByGenomicChangePostUsingPOST_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/mutations/byGenomicChange' ; 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 [ 'body' ] !== undefined ) { body = parameters [ 'body' ] ; } if ( parameters [ 'body' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: body' ) ) ; 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 { } body annotateMutationsByGenomicChangePostUsingPOST_1 ( parameters ) { return this . annotateMutationsByGenomicChangePostUsingPOST_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateMutationsByHGVSgGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/mutations/byHGVSg' ; if ( parameters [ 'hgvsg' ] !== undefined ) { queryParameters [ 'hgvsg' ] = parameters [ 'hgvsg' ] ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 } hgvsg param { string } referenceGenome param { string } tumorType param { string } evidenceType annotateMutationsByHGVSgGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/mutations/byHGVSg' ; 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 [ 'hgvsg' ] !== undefined ) { queryParameters [ 'hgvsg' ] = parameters [ 'hgvsg' ] ; } if ( parameters [ 'hgvsg' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: hgvsg' ) ) ; return ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 } hgvsg param { string } referenceGenome param { string } tumorType param { string } evidenceType annotateMutationsByHGVSgGetUsingGET_1 ( parameters ) { return this . annotateMutationsByHGVSgGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateMutationsByHGVSgPostUsingPOST_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/mutations/byHGVSg' ; 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 { } body annotateMutationsByHGVSgPostUsingPOST_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/mutations/byHGVSg' ; 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 [ 'body' ] !== undefined ) { body = parameters [ 'body' ] ; } if ( parameters [ 'body' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: body' ) ) ; 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 { } body annotateMutationsByHGVSgPostUsingPOST_1 ( parameters ) { return this . annotateMutationsByHGVSgPostUsingPOST_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateMutationsByProteinChangeGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/mutations/byProteinChange' ; if ( parameters [ 'hugoSymbol' ] !== undefined ) { queryParameters [ 'hugoSymbol' ] = parameters [ 'hugoSymbol' ] ; } if ( parameters [ 'entrezGeneId' ] !== undefined ) { queryParameters [ 'entrezGeneId' ] = parameters [ 'entrezGeneId' ] ; } if ( parameters [ 'alteration' ] !== undefined ) { queryParameters [ 'alteration' ] = parameters [ 'alteration' ] ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'consequence' ] !== undefined ) { queryParameters [ 'consequence' ] = parameters [ 'consequence' ] ; } if ( parameters [ 'proteinStart' ] !== undefined ) { queryParameters [ 'proteinStart' ] = parameters [ 'proteinStart' ] ; } if ( parameters [ 'proteinEnd' ] !== undefined ) { queryParameters [ 'proteinEnd' ] = parameters [ 'proteinEnd' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 { integer } entrezGeneId param { string } alteration param { string } referenceGenome param { string } consequence param { integer } proteinStart param { integer } proteinEnd param { string } tumorType param { string } evidenceType annotateMutationsByProteinChangeGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/mutations/byProteinChange' ; 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 [ 'hugoSymbol' ] !== undefined ) { queryParameters [ 'hugoSymbol' ] = parameters [ 'hugoSymbol' ] ; } if ( parameters [ 'entrezGeneId' ] !== undefined ) { queryParameters [ 'entrezGeneId' ] = parameters [ 'entrezGeneId' ] ; } if ( parameters [ 'alteration' ] !== undefined ) { queryParameters [ 'alteration' ] = parameters [ 'alteration' ] ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'consequence' ] !== undefined ) { queryParameters [ 'consequence' ] = parameters [ 'consequence' ] ; } if ( parameters [ 'proteinStart' ] !== undefined ) { queryParameters [ 'proteinStart' ] = parameters [ 'proteinStart' ] ; } if ( parameters [ 'proteinEnd' ] !== undefined ) { queryParameters [ 'proteinEnd' ] = parameters [ 'proteinEnd' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 { integer } entrezGeneId param { string } alteration param { string } referenceGenome param { string } consequence param { integer } proteinStart param { integer } proteinEnd param { string } tumorType param { string } evidenceType annotateMutationsByProteinChangeGetUsingGET_1 ( parameters ) { return this . annotateMutationsByProteinChangeGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateMutationsByProteinChangePostUsingPOST_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/mutations/byProteinChange' ; 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 { } body annotateMutationsByProteinChangePostUsingPOST_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/mutations/byProteinChange' ; 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 [ 'body' ] !== undefined ) { body = parameters [ 'body' ] ; } if ( parameters [ 'body' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: body' ) ) ; 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 { } body annotateMutationsByProteinChangePostUsingPOST_1 ( parameters ) { return this . annotateMutationsByProteinChangePostUsingPOST_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateStructuralVariantsGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/structuralVariants' ; if ( parameters [ 'hugoSymbolA' ] !== undefined ) { queryParameters [ 'hugoSymbolA' ] = parameters [ 'hugoSymbolA' ] ; } if ( parameters [ 'entrezGeneIdA' ] !== undefined ) { queryParameters [ 'entrezGeneIdA' ] = parameters [ 'entrezGeneIdA' ] ; } if ( parameters [ 'hugoSymbolB' ] !== undefined ) { queryParameters [ 'hugoSymbolB' ] = parameters [ 'hugoSymbolB' ] ; } if ( parameters [ 'entrezGeneIdB' ] !== undefined ) { queryParameters [ 'entrezGeneIdB' ] = parameters [ 'entrezGeneIdB' ] ; } if ( parameters [ 'structuralVariantType' ] !== undefined ) { queryParameters [ 'structuralVariantType' ] = parameters [ 'structuralVariantType' ] ; } if ( parameters [ 'isFunctionalFusion' ] !== undefined ) { queryParameters [ 'isFunctionalFusion' ] = parameters [ 'isFunctionalFusion' ] ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 } hugoSymbolA param { integer } entrezGeneIdA param { string } hugoSymbolB param { integer } entrezGeneIdB param { string } structuralVariantType param { boolean } isFunctionalFusion param { string } referenceGenome param { string } tumorType param { string } evidenceType annotateStructuralVariantsGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/structuralVariants' ; 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 [ 'hugoSymbolA' ] !== undefined ) { queryParameters [ 'hugoSymbolA' ] = parameters [ 'hugoSymbolA' ] ; } if ( parameters [ 'entrezGeneIdA' ] !== undefined ) { queryParameters [ 'entrezGeneIdA' ] = parameters [ 'entrezGeneIdA' ] ; } if ( parameters [ 'hugoSymbolB' ] !== undefined ) { queryParameters [ 'hugoSymbolB' ] = parameters [ 'hugoSymbolB' ] ; } if ( parameters [ 'entrezGeneIdB' ] !== undefined ) { queryParameters [ 'entrezGeneIdB' ] = parameters [ 'entrezGeneIdB' ] ; } if ( parameters [ 'structuralVariantType' ] !== undefined ) { queryParameters [ 'structuralVariantType' ] = parameters [ 'structuralVariantType' ] ; } if ( parameters [ 'structuralVariantType' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: structuralVariantType' ) ) ; return ; } if ( parameters [ 'isFunctionalFusion' ] !== undefined ) { queryParameters [ 'isFunctionalFusion' ] = parameters [ 'isFunctionalFusion' ] ; } if ( parameters [ 'isFunctionalFusion' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: isFunctionalFusion' ) ) ; return ; } if ( parameters [ 'referenceGenome' ] !== undefined ) { queryParameters [ 'referenceGenome' ] = parameters [ 'referenceGenome' ] ; } if ( parameters [ 'tumorType' ] !== undefined ) { queryParameters [ 'tumorType' ] = parameters [ 'tumorType' ] ; } if ( parameters [ 'evidenceType' ] !== undefined ) { queryParameters [ 'evidenceType' ] = parameters [ 'evidenceType' ] ; } 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 } hugoSymbolA param { integer } entrezGeneIdA param { string } hugoSymbolB param { integer } entrezGeneIdB param { string } structuralVariantType param { boolean } isFunctionalFusion param { string } referenceGenome param { string } tumorType param { string } evidenceType annotateStructuralVariantsGetUsingGET_1 ( parameters ) { return this . annotateStructuralVariantsGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; annotateStructuralVariantsPostUsingPOST_1URL ( parameters ) { let queryParameters = { } ; let path = '/annotate/structuralVariants' ; 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 { } body annotateStructuralVariantsPostUsingPOST_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/annotate/structuralVariants' ; 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 [ 'body' ] !== undefined ) { body = parameters [ 'body' ] ; } if ( parameters [ 'body' ] === undefined ) { reject ( new Error ( 'Missing required  parameter: body' ) ) ; 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 { } body annotateStructuralVariantsPostUsingPOST_1 ( parameters ) { return this . annotateStructuralVariantsPostUsingPOST_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; infoGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/info' ; 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 infoGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/info' ; 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 infoGetUsingGET_1 ( parameters ) { return this . infoGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; levelsGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/levels' ; 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 levelsGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/levels' ; 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 levelsGetUsingGET_1 ( parameters ) { return this . levelsGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; levelsResistanceGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/levels/resistance' ; 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 levelsResistanceGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/levels/resistance' ; 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 levelsResistanceGetUsingGET_1 ( parameters ) { return this . levelsResistanceGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; levelsSensitiveGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/levels/sensitive' ; 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 levelsSensitiveGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/levels/sensitive' ; 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 levelsSensitiveGetUsingGET_1 ( parameters ) { return this . levelsSensitiveGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; utilsAllCuratedGenesGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/utils/allCuratedGenes' ; if ( parameters [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ 'version' ] ; } if ( parameters [ 'includeEvidence' ] !== undefined ) { queryParameters [ 'includeEvidence' ] = parameters [ 'includeEvidence' ] ; } 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 } version param { boolean } includeEvidence utilsAllCuratedGenesGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/utils/allCuratedGenes' ; 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 [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ 'version' ] ; } if ( parameters [ 'includeEvidence' ] !== undefined ) { queryParameters [ 'includeEvidence' ] = parameters [ 'includeEvidence' ] ; } 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 } version param { boolean } includeEvidence utilsAllCuratedGenesGetUsingGET_1 ( parameters ) { return this . utilsAllCuratedGenesGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; utilsAllCuratedGenesTxtGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/utils/allCuratedGenes.txt' ; if ( parameters [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ 'version' ] ; } if ( parameters [ 'includeEvidence' ] !== undefined ) { queryParameters [ 'includeEvidence' ] = parameters [ 'includeEvidence' ] ; } 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 } version param { boolean } includeEvidence utilsAllCuratedGenesTxtGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/utils/allCuratedGenes.txt' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'text/plain' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ 'version' ] ; } if ( parameters [ 'includeEvidence' ] !== undefined ) { queryParameters [ 'includeEvidence' ] = parameters [ 'includeEvidence' ] ; } 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 } version param { boolean } includeEvidence utilsAllCuratedGenesTxtGetUsingGET_1 ( parameters ) { return this . utilsAllCuratedGenesTxtGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; utilsCancerGeneListGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/utils/cancerGeneList' ; if ( parameters [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ '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 param { string } version utilsCancerGeneListGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/utils/cancerGeneList' ; 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 [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ 'version' ] ; } 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 } version utilsCancerGeneListGetUsingGET_1 ( parameters ) { return this . utilsCancerGeneListGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; utilsCancerGeneListTxtGetUsingGET_1URL ( parameters ) { let queryParameters = { } ; let path = '/utils/cancerGeneList.txt' ; if ( parameters [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ '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 param { string } version utilsCancerGeneListTxtGetUsingGET_1WithHttpInfo ( parameters ) { const domain = parameters . $domain ? parameters . $domain : this . domain ; const errorHandlers = this . errorHandlers ; const request = this . request ; let path = '/utils/cancerGeneList.txt' ; let body ; let queryParameters = { } ; let headers = { } ; let form = { } ; return new Promise ( function ( resolve , reject ) { headers [ 'Accept' ] = 'text/plain' ; headers [ 'Content-Type' ] = 'application/json' ; if ( parameters [ 'version' ] !== undefined ) { queryParameters [ 'version' ] = parameters [ 'version' ] ; } 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 } version utilsCancerGeneListTxtGetUsingGET_1 ( parameters ) { return this . utilsCancerGeneListTxtGetUsingGET_1WithHttpInfo ( parameters ) . then ( function ( response ) { return response . body ; } ) ; } ; }