@openeo/js-client 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/openeo.d.ts +103 -63
- package/openeo.js +8570 -6046
- package/openeo.min.js +1 -1
- package/package.json +3 -2
- package/src/capabilities.js +45 -0
- package/src/connection.js +13 -1
- package/src/openeo.js +1 -1
- package/src/typedefs.js +17 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ JavaScript/TypeScript client for the openEO API.
|
|
|
4
4
|
|
|
5
5
|
* [Documentation](https://open-eo.github.io/openeo-js-client/latest/).
|
|
6
6
|
|
|
7
|
-
The version of this client is **2.
|
|
7
|
+
The version of this client is **2.9.0** and supports **openEO API versions 1.x.x**.
|
|
8
8
|
Legacy versions are available as releases.
|
|
9
9
|
See the [CHANGELOG](CHANGELOG.md) for recent changes.
|
|
10
10
|
|
package/openeo.d.ts
CHANGED
|
@@ -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
|
|
8
|
+
declare namespace OpenEO {
|
|
9
9
|
/**
|
|
10
10
|
* The base class for authentication providers such as Basic and OpenID Connect.
|
|
11
11
|
*
|
|
@@ -124,12 +124,12 @@ declare module OpenEO {
|
|
|
124
124
|
* @protected
|
|
125
125
|
* @type {object.<string, string>}
|
|
126
126
|
*/
|
|
127
|
-
protected apiToClientNames:
|
|
127
|
+
protected apiToClientNames: Record<string, string>;
|
|
128
128
|
/**
|
|
129
129
|
* @protected
|
|
130
130
|
* @type {object.<string, string>}
|
|
131
131
|
*/
|
|
132
|
-
protected clientToApiNames:
|
|
132
|
+
protected clientToApiNames: Record<string, string>;
|
|
133
133
|
/**
|
|
134
134
|
* @protected
|
|
135
135
|
* @type {number}
|
|
@@ -141,20 +141,20 @@ declare module OpenEO {
|
|
|
141
141
|
* @protected
|
|
142
142
|
* @type {object.<string, *>}
|
|
143
143
|
*/
|
|
144
|
-
protected extra:
|
|
144
|
+
protected extra: Record<string, any>;
|
|
145
145
|
/**
|
|
146
146
|
* Returns a JSON serializable representation of the data that is API compliant.
|
|
147
147
|
*
|
|
148
148
|
* @returns {object.<string, *>}
|
|
149
149
|
*/
|
|
150
|
-
toJSON():
|
|
150
|
+
toJSON(): Record<string, any>;
|
|
151
151
|
/**
|
|
152
152
|
* Converts the data from an API response into data suitable for our JS client models.
|
|
153
153
|
*
|
|
154
154
|
* @param {object.<string, *>} metadata - JSON object originating from an API response.
|
|
155
155
|
* @returns {BaseEntity} Returns the object itself.
|
|
156
156
|
*/
|
|
157
|
-
setAll(metadata:
|
|
157
|
+
setAll(metadata: Record<string, any>): BaseEntity;
|
|
158
158
|
/**
|
|
159
159
|
* Returns the age of the data in seconds.
|
|
160
160
|
*
|
|
@@ -166,7 +166,7 @@ declare module OpenEO {
|
|
|
166
166
|
*
|
|
167
167
|
* @returns {object.<string, *>}
|
|
168
168
|
*/
|
|
169
|
-
getAll():
|
|
169
|
+
getAll(): Record<string, any>;
|
|
170
170
|
/**
|
|
171
171
|
* Get a value from the additional data that is not part of the core model, i.e. from proprietary extensions.
|
|
172
172
|
*
|
|
@@ -181,7 +181,7 @@ declare module OpenEO {
|
|
|
181
181
|
* @returns {object.<string, *>}
|
|
182
182
|
* @protected
|
|
183
183
|
*/
|
|
184
|
-
protected _convertToRequest(parameters:
|
|
184
|
+
protected _convertToRequest(parameters: Record<string, any>): Record<string, any>;
|
|
185
185
|
/**
|
|
186
186
|
* Checks whether a features is supported by the API.
|
|
187
187
|
*
|
|
@@ -205,7 +205,7 @@ declare module OpenEO {
|
|
|
205
205
|
* @type {object}
|
|
206
206
|
* @static
|
|
207
207
|
*/
|
|
208
|
-
static axios: axios;
|
|
208
|
+
static axios: typeof axios;
|
|
209
209
|
/**
|
|
210
210
|
* Returns the name of the Environment, `Node` or `Browser`.
|
|
211
211
|
*
|
|
@@ -280,7 +280,7 @@ declare module OpenEO {
|
|
|
280
280
|
* @param {string} targetFolder
|
|
281
281
|
* @throws {Error}
|
|
282
282
|
*/
|
|
283
|
-
static downloadResults(con: Connection, assets: Array<
|
|
283
|
+
static downloadResults(con: Connection, assets: Array<Record<string, any>>, targetFolder: string): Promise<void>;
|
|
284
284
|
/**
|
|
285
285
|
* Streams data into a file (node) or offers data to download (browser).
|
|
286
286
|
*
|
|
@@ -330,7 +330,7 @@ declare module OpenEO {
|
|
|
330
330
|
* @param {object.<string, *>} data - A capabilities response compatible to the API specification for `GET /`.
|
|
331
331
|
* @throws {Error}
|
|
332
332
|
*/
|
|
333
|
-
constructor(data:
|
|
333
|
+
constructor(data: Record<string, any>);
|
|
334
334
|
/**
|
|
335
335
|
* @private
|
|
336
336
|
* @type {object.<string, *>}
|
|
@@ -367,7 +367,7 @@ declare module OpenEO {
|
|
|
367
367
|
*
|
|
368
368
|
* @returns {object.<string, *>} - A reference to the capabilities response.
|
|
369
369
|
*/
|
|
370
|
-
toJSON():
|
|
370
|
+
toJSON(): Record<string, any>;
|
|
371
371
|
/**
|
|
372
372
|
* Returns the openEO API version implemented by the back-end.
|
|
373
373
|
*
|
|
@@ -437,6 +437,15 @@ declare module OpenEO {
|
|
|
437
437
|
* @returns {boolean} `true` if the feature is supported, otherwise `false`.
|
|
438
438
|
*/
|
|
439
439
|
hasFeature(methodName: string): boolean;
|
|
440
|
+
/**
|
|
441
|
+
* Check whether a conformance class is supported by the back-end.
|
|
442
|
+
*
|
|
443
|
+
* Use `*` as a wildcard character for e.g. version numbers.
|
|
444
|
+
*
|
|
445
|
+
* @param {string|Array.<string>} uris - Conformance class URI(s) - any of them must match.
|
|
446
|
+
* @returns {boolean} `true` if any of the conformance classes is supported, otherwise `false`.
|
|
447
|
+
*/
|
|
448
|
+
hasConformance(uris: string | Array<string>): boolean;
|
|
440
449
|
/**
|
|
441
450
|
* Get the billing currency.
|
|
442
451
|
*
|
|
@@ -457,6 +466,8 @@ declare module OpenEO {
|
|
|
457
466
|
* @returns {AxiosResponse}
|
|
458
467
|
*/
|
|
459
468
|
protected migrate(response: AxiosResponse): AxiosResponse;
|
|
469
|
+
|
|
470
|
+
static Conformance: Record<string, string | Array<string>>;
|
|
460
471
|
}
|
|
461
472
|
/**
|
|
462
473
|
* The Authentication Provider for OpenID Connect.
|
|
@@ -495,7 +506,7 @@ declare module OpenEO {
|
|
|
495
506
|
* @throws {Error}
|
|
496
507
|
* @see https://github.com/IdentityModel/oidc-client-js/wiki#other-optional-settings
|
|
497
508
|
*/
|
|
498
|
-
static signinCallback(provider?: OidcProvider, options?:
|
|
509
|
+
static signinCallback(provider?: OidcProvider, options?: Record<string, any>): Promise<User | null>;
|
|
499
510
|
/**
|
|
500
511
|
* Creates a new OidcProvider instance to authenticate using OpenID Connect.
|
|
501
512
|
*
|
|
@@ -595,7 +606,7 @@ declare module OpenEO {
|
|
|
595
606
|
* @see https://github.com/IdentityModel/oidc-client-js/wiki#other-optional-settings
|
|
596
607
|
* @see {OidcProvider#refreshTokenScope}
|
|
597
608
|
*/
|
|
598
|
-
login(options?:
|
|
609
|
+
login(options?: Record<string, any>, requestRefreshToken?: boolean): Promise<void>;
|
|
599
610
|
/**
|
|
600
611
|
* Returns the options for the OIDC client library.
|
|
601
612
|
*
|
|
@@ -607,7 +618,7 @@ declare module OpenEO {
|
|
|
607
618
|
* @returns {object.<string, *>}
|
|
608
619
|
* @see {OidcProvider#refreshTokenScope}
|
|
609
620
|
*/
|
|
610
|
-
protected getOptions(options?:
|
|
621
|
+
protected getOptions(options?: Record<string, any>, requestRefreshToken?: boolean): Record<string, any>;
|
|
611
622
|
/**
|
|
612
623
|
* Get the response_type based on the grant type.
|
|
613
624
|
*
|
|
@@ -687,13 +698,13 @@ declare module OpenEO {
|
|
|
687
698
|
*
|
|
688
699
|
* @returns {object.<string, FileType>}
|
|
689
700
|
*/
|
|
690
|
-
getInputTypes():
|
|
701
|
+
getInputTypes(): Record<string, FileType>;
|
|
691
702
|
/**
|
|
692
703
|
* Returns the output file formats.
|
|
693
704
|
*
|
|
694
705
|
* @returns {object.<string, FileType>}
|
|
695
706
|
*/
|
|
696
|
-
getOutputTypes():
|
|
707
|
+
getOutputTypes(): Record<string, FileType>;
|
|
697
708
|
/**
|
|
698
709
|
* Returns a single input file format for a given identifier.
|
|
699
710
|
*
|
|
@@ -1071,7 +1082,7 @@ declare module OpenEO {
|
|
|
1071
1082
|
* @returns {Promise<object.<string, *>>} The JSON-based response compatible to the API specification, but also including a `costs` property if present in the headers.
|
|
1072
1083
|
* @throws {Error}
|
|
1073
1084
|
*/
|
|
1074
|
-
getResultsAsStac(): Promise<
|
|
1085
|
+
getResultsAsStac(): Promise<Record<string, any>>;
|
|
1075
1086
|
/**
|
|
1076
1087
|
* Retrieves download links.
|
|
1077
1088
|
*
|
|
@@ -1138,14 +1149,14 @@ declare module OpenEO {
|
|
|
1138
1149
|
* @readonly
|
|
1139
1150
|
* @type {?Array.<object.<string, *>>}
|
|
1140
1151
|
*/
|
|
1141
|
-
public readonly parameters: Array<
|
|
1152
|
+
public readonly parameters: Array<Record<string, any>> | null;
|
|
1142
1153
|
/**
|
|
1143
1154
|
* Description of the data that is returned by this process.
|
|
1144
1155
|
* @public
|
|
1145
1156
|
* @readonly
|
|
1146
1157
|
* @type {?object.<string, *>}
|
|
1147
1158
|
*/
|
|
1148
|
-
public readonly returns:
|
|
1159
|
+
public readonly returns: Record<string, any> | null;
|
|
1149
1160
|
/**
|
|
1150
1161
|
* Specifies that the process or parameter is deprecated with the potential to be removed in any of the next versions.
|
|
1151
1162
|
* @public
|
|
@@ -1166,13 +1177,13 @@ declare module OpenEO {
|
|
|
1166
1177
|
* @readonly
|
|
1167
1178
|
* @type {?object.<string, *>}
|
|
1168
1179
|
*/
|
|
1169
|
-
public readonly exceptions:
|
|
1180
|
+
public readonly exceptions: Record<string, any> | null;
|
|
1170
1181
|
/**
|
|
1171
1182
|
* @public
|
|
1172
1183
|
* @readonly
|
|
1173
1184
|
* @type {?Array.<object.<string, *>>}
|
|
1174
1185
|
*/
|
|
1175
|
-
public readonly examples: Array<
|
|
1186
|
+
public readonly examples: Array<Record<string, any>> | null;
|
|
1176
1187
|
/**
|
|
1177
1188
|
* Links related to this process.
|
|
1178
1189
|
* @public
|
|
@@ -1185,7 +1196,7 @@ declare module OpenEO {
|
|
|
1185
1196
|
* @readonly
|
|
1186
1197
|
* @type {?object.<string, *>}
|
|
1187
1198
|
*/
|
|
1188
|
-
public readonly processGraph:
|
|
1199
|
+
public readonly processGraph: Record<string, any> | null;
|
|
1189
1200
|
/**
|
|
1190
1201
|
* Updates the data stored in this object by requesting the process graph metadata from the back-end.
|
|
1191
1202
|
*
|
|
@@ -1283,14 +1294,14 @@ declare module OpenEO {
|
|
|
1283
1294
|
* @readonly
|
|
1284
1295
|
* @type {?object.<string, *>}
|
|
1285
1296
|
*/
|
|
1286
|
-
public readonly configuration:
|
|
1297
|
+
public readonly configuration: Record<string, any> | null;
|
|
1287
1298
|
/**
|
|
1288
1299
|
* Additional attributes of the secondary web service, e.g. available layers for a WMS based on the bands in the underlying GeoTiff.
|
|
1289
1300
|
* @public
|
|
1290
1301
|
* @readonly
|
|
1291
1302
|
* @type {?object.<string, *>}
|
|
1292
1303
|
*/
|
|
1293
|
-
public readonly attributes:
|
|
1304
|
+
public readonly attributes: Record<string, any> | null;
|
|
1294
1305
|
/**
|
|
1295
1306
|
* Date and time of creation, formatted as a RFC 3339 date-time.
|
|
1296
1307
|
* @public
|
|
@@ -1347,7 +1358,7 @@ declare module OpenEO {
|
|
|
1347
1358
|
title: string;
|
|
1348
1359
|
description: string;
|
|
1349
1360
|
enabled: boolean;
|
|
1350
|
-
configuration:
|
|
1361
|
+
configuration: Record<string, any>;
|
|
1351
1362
|
plan: string;
|
|
1352
1363
|
budget: number;
|
|
1353
1364
|
}): Promise<Service>;
|
|
@@ -1430,7 +1441,7 @@ declare module OpenEO {
|
|
|
1430
1441
|
* @param {string} description - A description for the parameter
|
|
1431
1442
|
* @param {*} defaultValue - An optional default Value for the parameter. If set, make the parameter optional. If not set, the parameter is required. Defaults to `undefined`.
|
|
1432
1443
|
*/
|
|
1433
|
-
constructor(name: string, schema?:
|
|
1444
|
+
constructor(name: string, schema?: Record<string, any> | string, description?: string, defaultValue?: any);
|
|
1434
1445
|
name: string;
|
|
1435
1446
|
spec: {
|
|
1436
1447
|
name: string;
|
|
@@ -1442,7 +1453,7 @@ declare module OpenEO {
|
|
|
1442
1453
|
*
|
|
1443
1454
|
* @returns {object.<string, *>}
|
|
1444
1455
|
*/
|
|
1445
|
-
toJSON():
|
|
1456
|
+
toJSON(): Record<string, any>;
|
|
1446
1457
|
/**
|
|
1447
1458
|
* Returns the reference object for this parameter.
|
|
1448
1459
|
*
|
|
@@ -1498,7 +1509,7 @@ declare module OpenEO {
|
|
|
1498
1509
|
/**
|
|
1499
1510
|
* @type {object.<string, *>}
|
|
1500
1511
|
*/
|
|
1501
|
-
tree:
|
|
1512
|
+
tree: Record<string, any>;
|
|
1502
1513
|
/**
|
|
1503
1514
|
* @type {Builder | null}
|
|
1504
1515
|
*/
|
|
@@ -1527,7 +1538,7 @@ declare module OpenEO {
|
|
|
1527
1538
|
* @returns {object.<string, *>}
|
|
1528
1539
|
* @throws {Error}
|
|
1529
1540
|
*/
|
|
1530
|
-
protected parseTree(tree:
|
|
1541
|
+
protected parseTree(tree: Record<string, any>): Record<string, any>;
|
|
1531
1542
|
/**
|
|
1532
1543
|
* Gets the reference for a value, e.g. from_node or from_parameter.
|
|
1533
1544
|
*
|
|
@@ -1545,10 +1556,10 @@ declare module OpenEO {
|
|
|
1545
1556
|
* @returns {BuilderNode}
|
|
1546
1557
|
* @throws {Error}
|
|
1547
1558
|
*/
|
|
1548
|
-
addOperatorProcess(operator: string, left: number |
|
|
1559
|
+
addOperatorProcess(operator: string, left: number | Record<string, any>, right: number | Record<string, any>): BuilderNode;
|
|
1549
1560
|
}
|
|
1550
1561
|
export namespace Formula {
|
|
1551
|
-
let operatorMapping:
|
|
1562
|
+
let operatorMapping: Record<string, string>;
|
|
1552
1563
|
}
|
|
1553
1564
|
/**
|
|
1554
1565
|
* A class that represents a process node and also a result from a process.
|
|
@@ -1563,7 +1574,7 @@ declare module OpenEO {
|
|
|
1563
1574
|
* @param {?string} [processDescription=null]
|
|
1564
1575
|
* @param {?string} [processNamespace=null]
|
|
1565
1576
|
*/
|
|
1566
|
-
constructor(parent: Builder, processId: string, processArgs?:
|
|
1577
|
+
constructor(parent: Builder, processId: string, processArgs?: Record<string, any>, processDescription?: string | null, processNamespace?: string | null);
|
|
1567
1578
|
/**
|
|
1568
1579
|
* The parent builder.
|
|
1569
1580
|
* @type {Builder}
|
|
@@ -1589,7 +1600,7 @@ declare module OpenEO {
|
|
|
1589
1600
|
* The arguments for the process.
|
|
1590
1601
|
* @type {object.<string, *>}
|
|
1591
1602
|
*/
|
|
1592
|
-
arguments:
|
|
1603
|
+
arguments: Record<string, any>;
|
|
1593
1604
|
/**
|
|
1594
1605
|
* @ignore
|
|
1595
1606
|
*/
|
|
@@ -1606,13 +1617,13 @@ declare module OpenEO {
|
|
|
1606
1617
|
* @returns {object.<string, *>}
|
|
1607
1618
|
* @throws {Error}
|
|
1608
1619
|
*/
|
|
1609
|
-
namedArguments(processArgs: Array<
|
|
1620
|
+
namedArguments(processArgs: Array<Record<string, any>>): Record<string, any>;
|
|
1610
1621
|
/**
|
|
1611
1622
|
* Checks the arguments given for parameters and add them to the process.
|
|
1612
1623
|
*
|
|
1613
1624
|
* @param {object.<string, *>|Array} processArgs
|
|
1614
1625
|
*/
|
|
1615
|
-
addParametersToProcess(processArgs:
|
|
1626
|
+
addParametersToProcess(processArgs: Record<string, any> | any[]): void;
|
|
1616
1627
|
/**
|
|
1617
1628
|
* Gets/Sets a description for the node.
|
|
1618
1629
|
*
|
|
@@ -1658,13 +1669,13 @@ declare module OpenEO {
|
|
|
1658
1669
|
* @returns {object.<string, *>}
|
|
1659
1670
|
* @throws {Error}
|
|
1660
1671
|
*/
|
|
1661
|
-
protected exportCallback(arg: Function, name: string):
|
|
1672
|
+
protected exportCallback(arg: Function, name: string): Record<string, any>;
|
|
1662
1673
|
/**
|
|
1663
1674
|
* Returns a JSON serializable representation of the data that is API compliant.
|
|
1664
1675
|
*
|
|
1665
1676
|
* @returns {object.<string, *>}
|
|
1666
1677
|
*/
|
|
1667
|
-
toJSON():
|
|
1678
|
+
toJSON(): Record<string, any>;
|
|
1668
1679
|
/**
|
|
1669
1680
|
* Returns the reference object for this node.
|
|
1670
1681
|
*
|
|
@@ -1839,7 +1850,7 @@ declare module OpenEO {
|
|
|
1839
1850
|
* @returns {Array.<object.<string,*>>}
|
|
1840
1851
|
* @todo Should this also pass callback parameters from parents until root is reached?
|
|
1841
1852
|
*/
|
|
1842
|
-
getParentCallbackParameters(): Array<
|
|
1853
|
+
getParentCallbackParameters(): Array<Record<string, any>>;
|
|
1843
1854
|
/**
|
|
1844
1855
|
* Adds a parameter to the list of process parameters.
|
|
1845
1856
|
*
|
|
@@ -1848,7 +1859,7 @@ declare module OpenEO {
|
|
|
1848
1859
|
* @param {object.<string, *>} parameter - The parameter spec to add, must comply to the API.
|
|
1849
1860
|
* @param {boolean} [root=true] - Adds the parameter to the root process if set to `true`, otherwise to the process constructed by this builder. Usually you want to add it to the root.
|
|
1850
1861
|
*/
|
|
1851
|
-
addParameter(parameter:
|
|
1862
|
+
addParameter(parameter: Record<string, any>, root?: boolean): void;
|
|
1852
1863
|
/**
|
|
1853
1864
|
* Returns the process specification for the given process identifier and namespace (or `null`).
|
|
1854
1865
|
*
|
|
@@ -1884,7 +1895,7 @@ declare module OpenEO {
|
|
|
1884
1895
|
* @param {?string} [description=null] - An optional description for the process call.
|
|
1885
1896
|
* @returns {BuilderNode}
|
|
1886
1897
|
*/
|
|
1887
|
-
process(processId: string, args?:
|
|
1898
|
+
process(processId: string, args?: Record<string, any> | any[], description?: string | null): BuilderNode;
|
|
1888
1899
|
/**
|
|
1889
1900
|
* Returns a JSON serializable representation of the data that is API compliant.
|
|
1890
1901
|
*
|
|
@@ -2109,7 +2120,7 @@ declare module OpenEO {
|
|
|
2109
2120
|
* @protected
|
|
2110
2121
|
* @type {object.<string|Function>}
|
|
2111
2122
|
*/
|
|
2112
|
-
protected listeners:
|
|
2123
|
+
protected listeners: Record<string, Function>;
|
|
2113
2124
|
/**
|
|
2114
2125
|
* Additional options for the connection.
|
|
2115
2126
|
*
|
|
@@ -2167,6 +2178,14 @@ declare module OpenEO {
|
|
|
2167
2178
|
* @throws {Error}
|
|
2168
2179
|
*/
|
|
2169
2180
|
listFileTypes(): Promise<FileTypes>;
|
|
2181
|
+
/**
|
|
2182
|
+
* List the supported output file formats.
|
|
2183
|
+
*
|
|
2184
|
+
* @async
|
|
2185
|
+
* @returns {Promise<ProcessingParameters>} A response compatible to the API specification.
|
|
2186
|
+
* @throws {Error}
|
|
2187
|
+
*/
|
|
2188
|
+
listProcessingParameters(): Promise<ProcessingParameters>;
|
|
2170
2189
|
/**
|
|
2171
2190
|
* List the supported secondary service types.
|
|
2172
2191
|
*
|
|
@@ -2174,7 +2193,7 @@ declare module OpenEO {
|
|
|
2174
2193
|
* @returns {Promise<object.<string, ServiceType>>} A response compatible to the API specification.
|
|
2175
2194
|
* @throws {Error}
|
|
2176
2195
|
*/
|
|
2177
|
-
listServiceTypes(): Promise<
|
|
2196
|
+
listServiceTypes(): Promise<Record<string, ServiceType>>;
|
|
2178
2197
|
/**
|
|
2179
2198
|
* List the supported UDF runtimes.
|
|
2180
2199
|
*
|
|
@@ -2182,7 +2201,7 @@ declare module OpenEO {
|
|
|
2182
2201
|
* @returns {Promise<object.<string, UdfRuntime>>} A response compatible to the API specification.
|
|
2183
2202
|
* @throws {Error}
|
|
2184
2203
|
*/
|
|
2185
|
-
listUdfRuntimes(): Promise<
|
|
2204
|
+
listUdfRuntimes(): Promise<Record<string, UdfRuntime>>;
|
|
2186
2205
|
/**
|
|
2187
2206
|
* List all collections available on the back-end.
|
|
2188
2207
|
*
|
|
@@ -2487,7 +2506,7 @@ declare module OpenEO {
|
|
|
2487
2506
|
* @returns {object.<string, *>}
|
|
2488
2507
|
* @protected
|
|
2489
2508
|
*/
|
|
2490
|
-
protected _normalizeUserProcess(process: UserProcess | BuilderNode |
|
|
2509
|
+
protected _normalizeUserProcess(process: UserProcess | BuilderNode | Record<string, any>, additional?: Record<string, any>): Record<string, any>;
|
|
2491
2510
|
/**
|
|
2492
2511
|
* Validates a user-defined process at the back-end.
|
|
2493
2512
|
*
|
|
@@ -2545,7 +2564,7 @@ declare module OpenEO {
|
|
|
2545
2564
|
* @param {object.<string, *>} [additional={}] - Other parameters to pass for the batch job, e.g. `log_level`.
|
|
2546
2565
|
* @returns {Promise<SyncResult>} - An object with the data and some metadata.
|
|
2547
2566
|
*/
|
|
2548
|
-
computeResult(process: Process, plan?: string | null, budget?: number | null, abortController?: AbortController | null, additional?:
|
|
2567
|
+
computeResult(process: Process, plan?: string | null, budget?: number | null, abortController?: AbortController | null, additional?: Record<string, any>): Promise<SyncResult>;
|
|
2549
2568
|
/**
|
|
2550
2569
|
* Executes a process synchronously and downloads to result the given path.
|
|
2551
2570
|
*
|
|
@@ -2593,7 +2612,7 @@ declare module OpenEO {
|
|
|
2593
2612
|
* @returns {Promise<Job>} The stored batch job.
|
|
2594
2613
|
* @throws {Error}
|
|
2595
2614
|
*/
|
|
2596
|
-
createJob(process: Process, title?: string | null, description?: string | null, plan?: string | null, budget?: number | null, additional?:
|
|
2615
|
+
createJob(process: Process, title?: string | null, description?: string | null, plan?: string | null, budget?: number | null, additional?: Record<string, any>): Promise<Job>;
|
|
2597
2616
|
/**
|
|
2598
2617
|
* Get all information about a batch job.
|
|
2599
2618
|
*
|
|
@@ -2608,10 +2627,10 @@ declare module OpenEO {
|
|
|
2608
2627
|
*
|
|
2609
2628
|
* @async
|
|
2610
2629
|
* @param {Array.<Service>} [oldServices=[]] - A list of existing services to update.
|
|
2611
|
-
* @returns {Promise<ResponseArray.<
|
|
2630
|
+
* @returns {Promise<ResponseArray.<Service>>} A list of services.
|
|
2612
2631
|
* @throws {Error}
|
|
2613
2632
|
*/
|
|
2614
|
-
listServices(oldServices?: Array<Service>): Promise<ResponseArray<
|
|
2633
|
+
listServices(oldServices?: Array<Service>): Promise<ResponseArray<Service>>;
|
|
2615
2634
|
/**
|
|
2616
2635
|
* Paginate through the secondary web services of the authenticated user.
|
|
2617
2636
|
*
|
|
@@ -2635,7 +2654,7 @@ declare module OpenEO {
|
|
|
2635
2654
|
* @returns {Promise<Service>} The stored service.
|
|
2636
2655
|
* @throws {Error}
|
|
2637
2656
|
*/
|
|
2638
|
-
createService(process: Process, type: string, title?: string | null, description?: string | null, enabled?: boolean, configuration?:
|
|
2657
|
+
createService(process: Process, type: string, title?: string | null, description?: string | null, enabled?: boolean, configuration?: Record<string, any>, plan?: string | null, budget?: number | null, additional?: Record<string, any>): Promise<Service>;
|
|
2639
2658
|
/**
|
|
2640
2659
|
* Get all information about a secondary web service.
|
|
2641
2660
|
*
|
|
@@ -2676,7 +2695,7 @@ declare module OpenEO {
|
|
|
2676
2695
|
* @throws {Error}
|
|
2677
2696
|
* @see https://github.com/axios/axios#request-config
|
|
2678
2697
|
*/
|
|
2679
|
-
protected _get(path: string, query:
|
|
2698
|
+
protected _get(path: string, query: Record<string, any>, responseType: string, abortController?: AbortController | null): Promise<AxiosResponse>;
|
|
2680
2699
|
/**
|
|
2681
2700
|
* Sends a POST request.
|
|
2682
2701
|
*
|
|
@@ -2740,7 +2759,7 @@ declare module OpenEO {
|
|
|
2740
2759
|
* @protected
|
|
2741
2760
|
* @returns {object.<string, string>}
|
|
2742
2761
|
*/
|
|
2743
|
-
protected _getAuthHeaders():
|
|
2762
|
+
protected _getAuthHeaders(): Record<string, string>;
|
|
2744
2763
|
/**
|
|
2745
2764
|
* Sends a HTTP request.
|
|
2746
2765
|
*
|
|
@@ -2761,7 +2780,7 @@ declare module OpenEO {
|
|
|
2761
2780
|
* @throws {Error}
|
|
2762
2781
|
* @see https://github.com/axios/axios
|
|
2763
2782
|
*/
|
|
2764
|
-
protected _send(options:
|
|
2783
|
+
protected _send(options: Record<string, any>, abortController?: AbortController | null): Promise<AxiosResponse>;
|
|
2765
2784
|
}
|
|
2766
2785
|
namespace Connection {
|
|
2767
2786
|
export { oidcProviderFactoryFunction, uploadStatusCallback };
|
|
@@ -2857,7 +2876,7 @@ declare module OpenEO {
|
|
|
2857
2876
|
status: number;
|
|
2858
2877
|
statusText: string;
|
|
2859
2878
|
headers: any;
|
|
2860
|
-
config:
|
|
2879
|
+
config: Record<string, any>;
|
|
2861
2880
|
request: any;
|
|
2862
2881
|
};
|
|
2863
2882
|
export type BillingPlan = {
|
|
@@ -2890,22 +2909,22 @@ declare module OpenEO {
|
|
|
2890
2909
|
*/
|
|
2891
2910
|
"federation:missing": Array<string>;
|
|
2892
2911
|
};
|
|
2893
|
-
export type Collection =
|
|
2912
|
+
export type Collection = Record<string, any>;
|
|
2894
2913
|
export type FileTypesAPI = {
|
|
2895
2914
|
/**
|
|
2896
2915
|
* - File types supported to import
|
|
2897
2916
|
*/
|
|
2898
|
-
input:
|
|
2917
|
+
input: Record<string, FileType>;
|
|
2899
2918
|
/**
|
|
2900
2919
|
* - File types supported to export
|
|
2901
2920
|
*/
|
|
2902
|
-
output:
|
|
2921
|
+
output: Record<string, FileType>;
|
|
2903
2922
|
};
|
|
2904
2923
|
export type FileType = {
|
|
2905
2924
|
title: string;
|
|
2906
2925
|
description: string;
|
|
2907
2926
|
gis_data_types: Array<string>;
|
|
2908
|
-
parameters:
|
|
2927
|
+
parameters: Record<string, any>;
|
|
2909
2928
|
links: Array<Link>;
|
|
2910
2929
|
};
|
|
2911
2930
|
/**
|
|
@@ -2926,7 +2945,7 @@ declare module OpenEO {
|
|
|
2926
2945
|
*/
|
|
2927
2946
|
from_parameter: string;
|
|
2928
2947
|
};
|
|
2929
|
-
export type Item =
|
|
2948
|
+
export type Item = Record<string, any>;
|
|
2930
2949
|
export type ItemCollection = {
|
|
2931
2950
|
/**
|
|
2932
2951
|
* - The items in the collection.
|
|
@@ -3000,7 +3019,7 @@ declare module OpenEO {
|
|
|
3000
3019
|
level: string;
|
|
3001
3020
|
message: string;
|
|
3002
3021
|
data: any;
|
|
3003
|
-
path: Array<
|
|
3022
|
+
path: Array<Record<string, string | null>>;
|
|
3004
3023
|
links: Array<Link>;
|
|
3005
3024
|
};
|
|
3006
3025
|
/**
|
|
@@ -3077,7 +3096,28 @@ declare module OpenEO {
|
|
|
3077
3096
|
/**
|
|
3078
3097
|
* An openEO processing chain.
|
|
3079
3098
|
*/
|
|
3080
|
-
export type Process =
|
|
3099
|
+
export type Process = Record<string, any>;
|
|
3100
|
+
/**
|
|
3101
|
+
* A specific processing parameter.
|
|
3102
|
+
*/
|
|
3103
|
+
type ProcessingParameter = object<string, any>;
|
|
3104
|
+
/**
|
|
3105
|
+
* All types of processing parameters.
|
|
3106
|
+
*/
|
|
3107
|
+
type ProcessingParameters = {
|
|
3108
|
+
/**
|
|
3109
|
+
* Processing parameters for batch jobs.
|
|
3110
|
+
*/
|
|
3111
|
+
create_job_parameters: Array<ProcessingParameter>;
|
|
3112
|
+
/**
|
|
3113
|
+
* Processing parameters for secondary web services.
|
|
3114
|
+
*/
|
|
3115
|
+
create_service_parameters: Array<ProcessingParameter>;
|
|
3116
|
+
/**
|
|
3117
|
+
* Processing parameters for synchronous processing.
|
|
3118
|
+
*/
|
|
3119
|
+
create_synchronous_parameters: Array<ProcessingParameter>;
|
|
3120
|
+
};
|
|
3081
3121
|
/**
|
|
3082
3122
|
* A back-end in the federation.
|
|
3083
3123
|
*/
|
|
@@ -3125,7 +3165,7 @@ declare module OpenEO {
|
|
|
3125
3165
|
* Adds two properties: `links` and `federation:missing`.
|
|
3126
3166
|
*/
|
|
3127
3167
|
export type ResponseArray = any;
|
|
3128
|
-
export type ServiceType =
|
|
3168
|
+
export type ServiceType = Record<string, any>;
|
|
3129
3169
|
export type SyncResult = {
|
|
3130
3170
|
/**
|
|
3131
3171
|
* The data as `Stream` in NodeJS environments or as `Blob` in browsers.
|
|
@@ -3144,7 +3184,7 @@ declare module OpenEO {
|
|
|
3144
3184
|
*/
|
|
3145
3185
|
logs: Array<Log>;
|
|
3146
3186
|
};
|
|
3147
|
-
export type UdfRuntime =
|
|
3187
|
+
export type UdfRuntime = Record<string, any>;
|
|
3148
3188
|
export type UserAccountStorage = {
|
|
3149
3189
|
/**
|
|
3150
3190
|
* in bytes as integer
|