@@ -2476,6 +2476,97 @@ export default class CBioPortalAPIInternal {
2476
2476
return response . body ;
2477
2477
} ) ;
2478
2478
} ;
2479
+
2480
+ fetchCustomDataBinCountsUsingPOSTURL ( parameters : {
2481
+ 'clinicalDataBinCountFilter' : ClinicalDataBinCountFilter ,
2482
+ 'dataBinMethod' ? : "DYNAMIC" | "STATIC" ,
2483
+ $queryParameters ? : any
2484
+ } ) : string {
2485
+ let queryParameters : any = { } ;
2486
+ let path = '/custom-data-bin-counts/fetch' ;
2487
+
2488
+ if ( parameters [ 'dataBinMethod' ] !== undefined ) {
2489
+ queryParameters [ 'dataBinMethod' ] = parameters [ 'dataBinMethod' ] ;
2490
+ }
2491
+
2492
+ if ( parameters . $queryParameters ) {
2493
+ Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) {
2494
+ var parameter = parameters . $queryParameters [ parameterName ] ;
2495
+ queryParameters [ parameterName ] = parameter ;
2496
+ } ) ;
2497
+ }
2498
+ let keys = Object . keys ( queryParameters ) ;
2499
+ return this . domain + path + ( keys . length > 0 ? '?' + ( keys . map ( key => key + '=' + encodeURIComponent ( queryParameters [ key ] ) ) . join ( '&' ) ) : '' ) ;
2500
+ } ;
2501
+
2502
+ /**
2503
+ * Fetch custom data bin counts by study view filter
2504
+ * @method
2505
+ * @name CBioPortalAPIInternal#fetchCustomDataBinCountsUsingPOST
2506
+ * @param { } clinicalDataBinCountFilter - Clinical data bin count filter
2507
+ * @param {string } dataBinMethod - Method for data binning
2508
+ */
2509
+ fetchCustomDataBinCountsUsingPOSTWithHttpInfo ( parameters : {
2510
+ 'clinicalDataBinCountFilter' : ClinicalDataBinCountFilter ,
2511
+ 'dataBinMethod' ? : "DYNAMIC" | "STATIC" ,
2512
+ $queryParameters ? : any ,
2513
+ $domain ? : string
2514
+ } ) : Promise < request . Response > {
2515
+ const domain = parameters . $domain ? parameters . $domain : this . domain ;
2516
+ const errorHandlers = this . errorHandlers ;
2517
+ const request = this . request ;
2518
+ let path = '/custom-data-bin-counts/fetch' ;
2519
+ let body : any ;
2520
+ let queryParameters : any = { } ;
2521
+ let headers : any = { } ;
2522
+ let form : any = { } ;
2523
+ return new Promise ( function ( resolve , reject ) {
2524
+ headers [ 'Accept' ] = 'application/json' ;
2525
+ headers [ 'Content-Type' ] = 'application/json' ;
2526
+
2527
+ if ( parameters [ 'clinicalDataBinCountFilter' ] !== undefined ) {
2528
+ body = parameters [ 'clinicalDataBinCountFilter' ] ;
2529
+ }
2530
+
2531
+ if ( parameters [ 'clinicalDataBinCountFilter' ] === undefined ) {
2532
+ reject ( new Error ( 'Missing required parameter: clinicalDataBinCountFilter' ) ) ;
2533
+ return ;
2534
+ }
2535
+
2536
+ if ( parameters [ 'dataBinMethod' ] !== undefined ) {
2537
+ queryParameters [ 'dataBinMethod' ] = parameters [ 'dataBinMethod' ] ;
2538
+ }
2539
+
2540
+ if ( parameters . $queryParameters ) {
2541
+ Object . keys ( parameters . $queryParameters ) . forEach ( function ( parameterName ) {
2542
+ var parameter = parameters . $queryParameters [ parameterName ] ;
2543
+ queryParameters [ parameterName ] = parameter ;
2544
+ } ) ;
2545
+ }
2546
+
2547
+ request ( 'POST' , domain + path , body , headers , queryParameters , form , reject , resolve , errorHandlers ) ;
2548
+
2549
+ } ) ;
2550
+ } ;
2551
+
2552
+ /**
2553
+ * Fetch custom data bin counts by study view filter
2554
+ * @method
2555
+ * @name CBioPortalAPIInternal#fetchCustomDataBinCountsUsingPOST
2556
+ * @param { } clinicalDataBinCountFilter - Clinical data bin count filter
2557
+ * @param {string } dataBinMethod - Method for data binning
2558
+ */
2559
+ fetchCustomDataBinCountsUsingPOST ( parameters : {
2560
+ 'clinicalDataBinCountFilter' : ClinicalDataBinCountFilter ,
2561
+ 'dataBinMethod' ? : "DYNAMIC" | "STATIC" ,
2562
+ $queryParameters ? : any ,
2563
+ $domain ? : string
2564
+ } ) : Promise < Array < ClinicalDataBin >
2565
+ > {
2566
+ return this . fetchCustomDataBinCountsUsingPOSTWithHttpInfo ( parameters ) . then ( function ( response : request . Response ) {
2567
+ return response . body ;
2568
+ } ) ;
2569
+ } ;
2479
2570
fetchCustomDataCountsUsingPOSTURL ( parameters : {
2480
2571
'clinicalDataCountFilter' : ClinicalDataCountFilter ,
2481
2572
$queryParameters ? : any
0 commit comments