@@ -4,7 +4,7 @@ import { User, UserManager } from 'oidc-client';
44import { ProcessRegistry } from '@openeo/js-commons' ;
55import { Readable } from 'stream' ;
66
7- declare module OpenEO {
7+ declare module Client {
88 /**
99 * The base class for authentication providers such as Basic and OpenID Connect.
1010 *
@@ -347,12 +347,6 @@ declare module OpenEO {
347347 * @throws {Error }
348348 */
349349 protected validate ( ) : void ;
350- /**
351- * Initializes the class.
352- *
353- * @protected
354- */
355- protected init ( ) : void ;
356350 /**
357351 * Returns the capabilities response as a JSON serializable representation of the data that is API compliant.
358352 *
@@ -1922,15 +1916,6 @@ declare module OpenEO {
19221916 * @type {ProcessRegistry }
19231917 */
19241918 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 > ;
19341919 /**
19351920 * Refresh the cache for processes.
19361921 *
@@ -2298,13 +2283,11 @@ declare module OpenEO {
22982283 *
22992284 * @async
23002285 * @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.
23032286 * @param {?AbortController } [abortController=null] - An AbortController object that can be used to cancel the processing request.
23042287 * @param {object.<string, *> } [additional={}] - Other parameters to pass for the batch job, e.g. `log_level`.
23052288 * @returns {Promise<SyncResult> } - An object with the data and some metadata.
23062289 */
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 > ;
23082291 /**
23092292 * Executes a process synchronously and downloads to result the given path.
23102293 *
@@ -2401,24 +2384,6 @@ declare module OpenEO {
24012384 * @returns {ResponseArray }
24022385 */
24032386 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 > ;
24222387 /**
24232388 * Sends a GET request.
24242389 *
@@ -2538,7 +2503,7 @@ declare module OpenEO {
25382503 *
25392504 * @hideconstructor
25402505 */
2541- export class OpenEO {
2506+ export class Client {
25422507 /**
25432508 * Connect to a back-end with version discovery (recommended).
25442509 *
@@ -2575,7 +2540,7 @@ declare module OpenEO {
25752540 */
25762541 static clientVersion ( ) : string ;
25772542 }
2578- export namespace OpenEO {
2543+ export namespace Client {
25792544 const Environment : Environment ;
25802545 }
25812546
@@ -2918,4 +2883,4 @@ declare module OpenEO {
29182883
29192884}
29202885
2921- export = OpenEO ;
2886+ export = Client ;
0 commit comments