@@ -4,7 +4,7 @@ import { User, UserManager } from 'oidc-client';
4
4
import { ProcessRegistry } from '@openeo/js-commons' ;
5
5
import { Readable } from 'stream' ;
6
6
7
- declare module OpenEO {
7
+ declare module Client {
8
8
/**
9
9
* The base class for authentication providers such as Basic and OpenID Connect.
10
10
*
@@ -347,12 +347,6 @@ declare module OpenEO {
347
347
* @throws {Error }
348
348
*/
349
349
protected validate ( ) : void ;
350
- /**
351
- * Initializes the class.
352
- *
353
- * @protected
354
- */
355
- protected init ( ) : void ;
356
350
/**
357
351
* Returns the capabilities response as a JSON serializable representation of the data that is API compliant.
358
352
*
@@ -1922,15 +1916,6 @@ declare module OpenEO {
1922
1916
* @type {ProcessRegistry }
1923
1917
*/
1924
1918
protected processes : ProcessRegistry ;
1925
- /**
1926
- * Initializes the connection by requesting the capabilities.
1927
- *
1928
- * @async
1929
- * @protected
1930
- * @returns {Promise<Capabilities> } Capabilities
1931
- * @throws {Error }
1932
- */
1933
- protected init ( ) : Promise < Capabilities > ;
1934
1919
/**
1935
1920
* Refresh the cache for processes.
1936
1921
*
@@ -2298,13 +2283,11 @@ declare module OpenEO {
2298
2283
*
2299
2284
* @async
2300
2285
* @param {Process } process - A user-defined process.
2301
- * @param {?string } [plan=null] - The billing plan to use for this computation.
2302
- * @param {?number } [budget=null] - The maximum budget allowed to spend for this computation.
2303
2286
* @param {?AbortController } [abortController=null] - An AbortController object that can be used to cancel the processing request.
2304
2287
* @param {object.<string, *> } [additional={}] - Other parameters to pass for the batch job, e.g. `log_level`.
2305
2288
* @returns {Promise<SyncResult> } - An object with the data and some metadata.
2306
2289
*/
2307
- computeResult ( process : Process , plan ?: string | null , budget ?: number | null , abortController ?: AbortController | null , additional ?: object < string , any > ) : Promise < SyncResult > ;
2290
+ computeResult ( process : Process , abortController ?: AbortController | null , additional ?: object < string , any > ) : Promise < SyncResult > ;
2308
2291
/**
2309
2292
* Executes a process synchronously and downloads to result the given path.
2310
2293
*
@@ -2401,24 +2384,6 @@ declare module OpenEO {
2401
2384
* @returns {ResponseArray }
2402
2385
*/
2403
2386
protected _toResponseArray ( arr : Array < any > , response : object < string , any > ) : ResponseArray ;
2404
- /**
2405
- * Get the a link with the given rel type.
2406
- *
2407
- * @protected
2408
- * @param {Array.<Link> } links - An array of links.
2409
- * @param {string|Array.<string> } rel - Relation type(s) to find.
2410
- * @returns {string | null }
2411
- * @throws {Error }
2412
- */
2413
- protected _getLinkHref ( links : Array < Link > , rel : string | Array < string > ) : string | null ;
2414
- /**
2415
- * Makes all links in the list absolute.
2416
- *
2417
- * @param {Array.<Link> } links - An array of links.
2418
- * @param {?string|AxiosResponse } [base=null] - The base url to use for relative links, or an response to derive the url from.
2419
- * @returns {Array.<Link> }
2420
- */
2421
- makeLinksAbsolute ( links : Array < Link > , base ?: ( string | AxiosResponse ) | null ) : Array < Link > ;
2422
2387
/**
2423
2388
* Sends a GET request.
2424
2389
*
@@ -2538,7 +2503,7 @@ declare module OpenEO {
2538
2503
*
2539
2504
* @hideconstructor
2540
2505
*/
2541
- export class OpenEO {
2506
+ export class Client {
2542
2507
/**
2543
2508
* Connect to a back-end with version discovery (recommended).
2544
2509
*
@@ -2575,7 +2540,7 @@ declare module OpenEO {
2575
2540
*/
2576
2541
static clientVersion ( ) : string ;
2577
2542
}
2578
- export namespace OpenEO {
2543
+ export namespace Client {
2579
2544
const Environment : Environment ;
2580
2545
}
2581
2546
@@ -2918,4 +2883,4 @@ declare module OpenEO {
2918
2883
2919
2884
}
2920
2885
2921
- export = OpenEO ;
2886
+ export = Client ;
0 commit comments