@@ -5,7 +5,7 @@ import { ProcessRegistry } from '@openeo/js-commons';
5
5
import { Readable } from 'stream' ;
6
6
import axios from 'axios' ;
7
7
8
- declare namespace OpenEO {
8
+ declare namespace Client {
9
9
/**
10
10
* The base class for authentication providers such as Basic and OpenID Connect.
11
11
*
@@ -356,12 +356,6 @@ declare namespace OpenEO {
356
356
* @throws {Error }
357
357
*/
358
358
protected validate ( ) : void ;
359
- /**
360
- * Initializes the class.
361
- *
362
- * @protected
363
- */
364
- protected init ( ) : void ;
365
359
/**
366
360
* Returns the capabilities response as a JSON serializable representation of the data that is API compliant.
367
361
*
@@ -2124,15 +2118,6 @@ declare namespace OpenEO {
2124
2118
* @type {ProcessRegistry }
2125
2119
*/
2126
2120
protected processes : ProcessRegistry ;
2127
- /**
2128
- * Initializes the connection by requesting the capabilities.
2129
- *
2130
- * @async
2131
- * @protected
2132
- * @returns {Promise<Capabilities> } Capabilities
2133
- * @throws {Error }
2134
- */
2135
- protected init ( ) : Promise < Capabilities > ;
2136
2121
/**
2137
2122
* Refresh the cache for processes.
2138
2123
*
@@ -2539,13 +2524,11 @@ declare namespace OpenEO {
2539
2524
*
2540
2525
* @async
2541
2526
* @param {Process } process - A user-defined process.
2542
- * @param {?string } [plan=null] - The billing plan to use for this computation.
2543
- * @param {?number } [budget=null] - The maximum budget allowed to spend for this computation.
2544
2527
* @param {?AbortController } [abortController=null] - An AbortController object that can be used to cancel the processing request.
2545
2528
* @param {object.<string, *> } [additional={}] - Other parameters to pass for the batch job, e.g. `log_level`.
2546
2529
* @returns {Promise<SyncResult> } - An object with the data and some metadata.
2547
2530
*/
2548
- computeResult ( process : Process , plan ?: string | null , budget ?: number | null , abortController ?: AbortController | null , additional ?: Record < string , any > ) : Promise < SyncResult > ;
2531
+ computeResult ( process : Process , abortController ?: AbortController | null , additional ?: Record < string , any > ) : Promise < SyncResult > ;
2549
2532
/**
2550
2533
* Executes a process synchronously and downloads to result the given path.
2551
2534
*
@@ -2646,23 +2629,16 @@ declare namespace OpenEO {
2646
2629
*/
2647
2630
getService ( id : string ) : Promise < Service > ;
2648
2631
/**
2649
- * Get the a link with the given rel type .
2632
+ * Adds additional response details to the array .
2650
2633
*
2651
- * @protected
2652
- * @param {Array.<Link> } links - An array of links.
2653
- * @param {string|Array.<string> } rel - Relation type(s) to find.
2654
- * @returns {string | null }
2655
- * @throws {Error }
2656
- */
2657
- protected _getLinkHref ( links : Array < Link > , rel : string | Array < string > ) : string | null ;
2658
- /**
2659
- * Makes all links in the list absolute.
2634
+ * Adds links and federation:missing.
2660
2635
*
2661
- * @param {Array.<Link> } links - An array of links.
2662
- * @param {?string|AxiosResponse } [base=null] - The base url to use for relative links, or an response to derive the url from.
2663
- * @returns {Array.<Link> }
2636
+ * @protected
2637
+ * @param {Array.<*> } arr
2638
+ * @param {object.<string, *> } response
2639
+ * @returns {ResponseArray }
2664
2640
*/
2665
- makeLinksAbsolute ( links : Array < Link > , base ?: ( string | AxiosResponse ) | null ) : Array < Link > ;
2641
+ protected _toResponseArray ( arr : Array < any > , response : object < string , any > ) : ResponseArray ;
2666
2642
/**
2667
2643
* Sends a GET request.
2668
2644
*
@@ -2782,7 +2758,7 @@ declare namespace OpenEO {
2782
2758
*
2783
2759
* @hideconstructor
2784
2760
*/
2785
- export class OpenEO {
2761
+ export class Client {
2786
2762
/**
2787
2763
* Connect to a back-end with version discovery (recommended).
2788
2764
*
@@ -2819,7 +2795,7 @@ declare namespace OpenEO {
2819
2795
*/
2820
2796
static clientVersion ( ) : string ;
2821
2797
}
2822
- export namespace OpenEO {
2798
+ export namespace Client {
2823
2799
const Environment : Environment ;
2824
2800
}
2825
2801
@@ -3171,4 +3147,4 @@ declare namespace OpenEO {
3171
3147
export type ValidationResult = any ;
3172
3148
}
3173
3149
3174
- export = OpenEO ;
3150
+ export = Client ;
0 commit comments