@@ -5,7 +5,7 @@ import { ProcessRegistry } from '@openeo/js-commons';
55import { Readable } from 'stream' ;
66import axios from 'axios' ;
77
8- declare namespace OpenEO {
8+ declare namespace Client {
99 /**
1010 * The base class for authentication providers such as Basic and OpenID Connect.
1111 *
@@ -356,12 +356,6 @@ declare namespace OpenEO {
356356 * @throws {Error }
357357 */
358358 protected validate ( ) : void ;
359- /**
360- * Initializes the class.
361- *
362- * @protected
363- */
364- protected init ( ) : void ;
365359 /**
366360 * Returns the capabilities response as a JSON serializable representation of the data that is API compliant.
367361 *
@@ -2124,15 +2118,6 @@ declare namespace OpenEO {
21242118 * @type {ProcessRegistry }
21252119 */
21262120 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 > ;
21362121 /**
21372122 * Refresh the cache for processes.
21382123 *
@@ -2539,13 +2524,11 @@ declare namespace OpenEO {
25392524 *
25402525 * @async
25412526 * @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.
25442527 * @param {?AbortController } [abortController=null] - An AbortController object that can be used to cancel the processing request.
25452528 * @param {object.<string, *> } [additional={}] - Other parameters to pass for the batch job, e.g. `log_level`.
25462529 * @returns {Promise<SyncResult> } - An object with the data and some metadata.
25472530 */
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 > ;
25492532 /**
25502533 * Executes a process synchronously and downloads to result the given path.
25512534 *
@@ -2646,23 +2629,16 @@ declare namespace OpenEO {
26462629 */
26472630 getService ( id : string ) : Promise < Service > ;
26482631 /**
2649- * Get the a link with the given rel type .
2632+ * Adds additional response details to the array .
26502633 *
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.
26602635 *
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 }
26642640 */
2665- makeLinksAbsolute ( links : Array < Link > , base ?: ( string | AxiosResponse ) | null ) : Array < Link > ;
2641+ protected _toResponseArray ( arr : Array < any > , response : object < string , any > ) : ResponseArray ;
26662642 /**
26672643 * Sends a GET request.
26682644 *
@@ -2782,7 +2758,7 @@ declare namespace OpenEO {
27822758 *
27832759 * @hideconstructor
27842760 */
2785- export class OpenEO {
2761+ export class Client {
27862762 /**
27872763 * Connect to a back-end with version discovery (recommended).
27882764 *
@@ -2819,7 +2795,7 @@ declare namespace OpenEO {
28192795 */
28202796 static clientVersion ( ) : string ;
28212797 }
2822- export namespace OpenEO {
2798+ export namespace Client {
28232799 const Environment : Environment ;
28242800 }
28252801
@@ -3171,4 +3147,4 @@ declare namespace OpenEO {
31713147 export type ValidationResult = any ;
31723148}
31733149
3174- export = OpenEO ;
3150+ export = Client ;
0 commit comments