@@ -2387,6 +2387,97 @@ export default class CBioPortalAPIInternal {
2387
2387
return response . body ;
2388
2388
} ) ;
2389
2389
} ;
2390
+
2391
+ fetchCustomDataBinCountsUsingPOSTURL ( parameters : {
2392
+ 'clinicalDataBinCountFilter' : ClinicalDataBinCountFilter ,
2393
+ 'dataBinMethod' ? : "DYNAMIC" | "STATIC" ,
2394
+ $queryParameters ? : any
2395
+ } ) : string {
2396
+ let queryParameters : any = { } ;
2397
+ let path = '/custom-data-bin-counts/fetch' ;
2398
+
2399
+ if ( parameters [ 'dataBinMethod' ] !== undefined ) {
2400
+ queryParameters [ 'dataBinMethod' ] = parameters [ 'dataBinMethod' ] ;
2401
+ }
2402
+
2403
+ if ( parameters . $queryParameters ) {
2404
+ Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) {
2405
+ var parameter = parameters . $queryParameters [ parameterName ] ;
2406
+ queryParameters [ parameterName ] = parameter ;
2407
+ } ) ;
2408
+ }
2409
+ let keys = Object . keys ( queryParameters ) ;
2410
+ return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ;
2411
+ } ;
2412
+
2413
+ /**
2414
+ * Fetch custom data bin counts by study view filter
2415
+ * @method
2416
+ * @name CBioPortalAPIInternal#fetchCustomDataBinCountsUsingPOST
2417
+ * @param { } clinicalDataBinCountFilter - Clinical data bin count filter
2418
+ * @param {string } dataBinMethod - Method for data binning
2419
+ */
2420
+ fetchCustomDataBinCountsUsingPOSTWithHttpInfo ( parameters : {
2421
+ 'clinicalDataBinCountFilter' : ClinicalDataBinCountFilter ,
2422
+ 'dataBinMethod' ? : "DYNAMIC" | "STATIC" ,
2423
+ $queryParameters ? : any ,
2424
+ $domain ? : string
2425
+ } ) : Promise < request . Response > {
2426
+ const domain = parameters . $domain ? parameters . $domain : this . domain ;
2427
+ const errorHandlers = this . errorHandlers ;
2428
+ const request = this . request ;
2429
+ let path = '/custom-data-bin-counts/fetch' ;
2430
+ let body : any ;
2431
+ let queryParameters : any = { } ;
2432
+ let headers : any = { } ;
2433
+ let form : any = { } ;
2434
+ return new Promise ( function ( resolve , reject ) {
2435
+ headers [ 'Accept' ] = 'application/json' ;
2436
+ headers [ 'Content-Type' ] = 'application/json' ;
2437
+
2438
+ if ( parameters [ 'clinicalDataBinCountFilter' ] !== undefined ) {
2439
+ body = parameters [ 'clinicalDataBinCountFilter' ] ;
2440
+ }
2441
+
2442
+ if ( parameters [ 'clinicalDataBinCountFilter' ] === undefined ) {
2443
+ reject ( new Error ( 'Missing required parameter: clinicalDataBinCountFilter' ) ) ;
2444
+ return ;
2445
+ }
2446
+
2447
+ if ( parameters [ 'dataBinMethod' ] !== undefined ) {
2448
+ queryParameters [ 'dataBinMethod' ] = parameters [ 'dataBinMethod' ] ;
2449
+ }
2450
+
2451
+ if ( parameters . $queryParameters ) {
2452
+ Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) {
2453
+ var parameter = parameters . $queryParameters [ parameterName ] ;
2454
+ queryParameters [ parameterName ] = parameter ;
2455
+ } ) ;
2456
+ }
2457
+
2458
+ request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ;
2459
+
2460
+ } ) ;
2461
+ } ;
2462
+
2463
+ /**
2464
+ * Fetch custom data bin counts by study view filter
2465
+ * @method
2466
+ * @name CBioPortalAPIInternal#fetchCustomDataBinCountsUsingPOST
2467
+ * @param { } clinicalDataBinCountFilter - Clinical data bin count filter
2468
+ * @param {string } dataBinMethod - Method for data binning
2469
+ */
2470
+ fetchCustomDataBinCountsUsingPOST ( parameters : {
2471
+ 'clinicalDataBinCountFilter' : ClinicalDataBinCountFilter ,
2472
+ 'dataBinMethod' ? : "DYNAMIC" | "STATIC" ,
2473
+ $queryParameters ? : any ,
2474
+ $domain ? : string
2475
+ } ) : Promise < Array < ClinicalDataBin >
2476
+ > {
2477
+ return this . fetchCustomDataBinCountsUsingPOSTWithHttpInfo ( parameters ) . then ( function ( response : request . Response ) {
2478
+ return response . body ;
2479
+ } ) ;
2480
+ } ;
2390
2481
fetchCustomDataCountsUsingPOSTURL ( parameters : {
2391
2482
'clinicalDataCountFilter' : ClinicalDataCountFilter ,
2392
2483
$queryParameters ? : any
0 commit comments