@@ -241,7 +241,7 @@ declare module OpenEO {
241
241
* @param {string|Buffer } str - String to encode.
242
242
* @returns {string } String encoded in Base64.
243
243
*/
244
- static base64encode ( str : string | Buffer ) : string ;
244
+ static base64encode ( str : string | Buffer ) : string ;
245
245
/**
246
246
* Detect the file name for the given data source.
247
247
*
@@ -302,14 +302,14 @@ declare module OpenEO {
302
302
username : string ;
303
303
/**
304
304
* Authenticate with HTTP Basic.
305
- *
305
+ *
306
306
* @async
307
- * @param {string } username
308
- * @param {string } password
307
+ * @param {string } username
308
+ * @param {string } password
309
309
* @returns {Promise<void> }
310
310
* @throws {Error }
311
311
*/
312
- login ( username : string , password : string ) : Promise < void > ;
312
+ login ( username : string , password : string ) : Promise < void > ;
313
313
}
314
314
/**
315
315
* Capabilities of a back-end.
@@ -652,7 +652,7 @@ declare module OpenEO {
652
652
* @public
653
653
* @type {Array.<string> }
654
654
*/
655
- public " federation:missing" : Array < string > ;
655
+ public ' federation:missing' : Array < string > ;
656
656
/**
657
657
* Returns the file types response as a JSON serializable representation of the data that is API compliant.
658
658
*
@@ -812,9 +812,26 @@ declare module OpenEO {
812
812
* @type {Connection }
813
813
*/
814
814
protected connection : Connection ;
815
- endpoint : string ;
816
- lastId : string ;
817
- level : string ;
815
+ /**
816
+ * @protected
817
+ * @type {string }
818
+ */
819
+ protected endpoint : string ;
820
+ /**
821
+ * @protected
822
+ * @type {string }
823
+ */
824
+ protected lastId : string ;
825
+ /**
826
+ * @protected
827
+ * @type {?string }
828
+ */
829
+ protected level : string | null ;
830
+ /**
831
+ * @protected
832
+ * @type {Set<String> }
833
+ */
834
+ protected missing : Set < string > ;
818
835
/**
819
836
* Retrieves the next log entries since the last request.
820
837
*
@@ -825,6 +842,16 @@ declare module OpenEO {
825
842
* @returns {Promise<Array.<Log>> }
826
843
*/
827
844
nextLogs ( limit ?: number ) : Promise < Array < Log > > ;
845
+ /**
846
+ * Retrieves the backend identifiers that are (partially) missing in the logs.
847
+ *
848
+ * This is only filled after the first request using `nextLogs` or `next`.
849
+ *
850
+ * @returns {Array.<string> }
851
+ * @see {Logs#nextLogs}
852
+ * @see {Logs#next}
853
+ */
854
+ getMissingBackends ( ) : Array < string > ;
828
855
/**
829
856
* Retrieves the next log entries since the last request.
830
857
*
@@ -2259,10 +2286,10 @@ declare module OpenEO {
2259
2286
*
2260
2287
* @async
2261
2288
* @param {Process } process - User-defined process to validate.
2262
- * @returns {Promise<Array.<ApiError> > } errors - A list of API compatible error objects. A valid process returns an empty list.
2289
+ * @returns {Promise<ValidationResult > } errors - A list of API compatible error objects. A valid process returns an empty list.
2263
2290
* @throws {Error }
2264
2291
*/
2265
- validateProcess ( process : Process ) : Promise < Array < ApiError > > ;
2292
+ validateProcess ( process : Process ) : Promise < ValidationResult > ;
2266
2293
/**
2267
2294
* Lists all user-defined processes of the authenticated user.
2268
2295
*
@@ -2413,7 +2440,7 @@ declare module OpenEO {
2413
2440
protected _getLinkHref ( links : Array < Link > , rel : string | Array < string > ) : string | null ;
2414
2441
/**
2415
2442
* Makes all links in the list absolute.
2416
- *
2443
+ *
2417
2444
* @param {Array.<Link> } links - An array of links.
2418
2445
* @param {?string|AxiosResponse } [base=null] - The base url to use for relative links, or an response to derive the url from.
2419
2446
* @returns {Array.<Link> }
@@ -2492,11 +2519,11 @@ declare module OpenEO {
2492
2519
download ( url : string , authorize : boolean ) : Promise < Readable | Blob > ;
2493
2520
/**
2494
2521
* Get the authorization header for requests.
2495
- *
2522
+ *
2496
2523
* @protected
2497
2524
* @returns {object.<string, string> }
2498
2525
*/
2499
- protected _getAuthHeaders ( ) : object < string , string > ;
2526
+ protected _getAuthHeaders ( ) : object < string , string > ;
2500
2527
/**
2501
2528
* Sends a HTTP request.
2502
2529
*
@@ -2876,7 +2903,7 @@ declare module OpenEO {
2876
2903
*
2877
2904
* Adds two properties: `links` and `federation:missing`.
2878
2905
*/
2879
- export type ResponseArray = Array ;
2906
+ export type ResponseArray = any ;
2880
2907
export type ServiceType = object < string , any > ;
2881
2908
export type SyncResult = {
2882
2909
/**
@@ -2915,7 +2942,12 @@ declare module OpenEO {
2915
2942
budget : number | null ;
2916
2943
links : Array < Link > | null ;
2917
2944
} ;
2918
-
2945
+ /**
2946
+ * An array, but enriched with additional details from an openEO API response.
2947
+ *
2948
+ * Adds the property `federation:backends`.
2949
+ */
2950
+ export type ValidationResult = any ;
2919
2951
}
2920
2952
2921
2953
export = OpenEO ;
0 commit comments