@openeo/js-client 2.5.1 → 2.7.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/LICENSE +201 -201
- package/README.md +94 -84
- package/openeo.d.ts +310 -72
- package/openeo.js +5412 -5191
- package/openeo.min.js +1 -1
- package/package.json +72 -70
- package/src/authprovider.js +147 -138
- package/src/baseentity.js +162 -162
- package/src/basicprovider.js +69 -48
- package/src/browser.js +168 -168
- package/src/builder/builder.js +400 -400
- package/src/builder/formula.js +211 -211
- package/src/builder/node.js +268 -268
- package/src/builder/parameter.js +144 -144
- package/src/builder/tapdigit.js +489 -489
- package/src/capabilities.js +274 -220
- package/src/connection.js +1290 -1211
- package/src/env.js +16 -6
- package/src/filetypes.js +111 -111
- package/src/job.js +323 -322
- package/src/logs.js +109 -68
- package/src/node.js +168 -168
- package/src/oidcprovider.js +387 -375
- package/src/openeo.js +137 -138
- package/src/pages.js +349 -0
- package/src/service.js +222 -221
- package/src/typedefs.js +271 -243
- package/src/userfile.js +128 -128
- package/src/userprocess.js +166 -166
package/src/typedefs.js
CHANGED
|
@@ -1,243 +1,271 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An error.
|
|
3
|
-
*
|
|
4
|
-
* @typedef ApiError
|
|
5
|
-
* @type {object}
|
|
6
|
-
* @property {string} id
|
|
7
|
-
* @property {string} code
|
|
8
|
-
* @property {string} message
|
|
9
|
-
* @property {Array.<Link>} links
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Authentication Provider details.
|
|
14
|
-
*
|
|
15
|
-
* @typedef AuthProviderMeta
|
|
16
|
-
* @type {object}
|
|
17
|
-
* @property {?string} id Provider identifier, may not be used for all authentication methods.
|
|
18
|
-
* @property {string} title Title for the authentication method.
|
|
19
|
-
* @property {string} description Description for the authentication method.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Response for a HTTP request.
|
|
24
|
-
*
|
|
25
|
-
* @typedef AxiosResponse
|
|
26
|
-
* @type {object}
|
|
27
|
-
* @property {*} data
|
|
28
|
-
* @property {number} status
|
|
29
|
-
* @property {string} statusText
|
|
30
|
-
* @property {*} headers
|
|
31
|
-
* @property {object.<string, *>} config
|
|
32
|
-
* @property {*} request
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @typedef BillingPlan
|
|
37
|
-
* @type {object}
|
|
38
|
-
* @property {string} name Name of the billing plan.
|
|
39
|
-
* @property {string} description A description of the billing plan, may include CommonMark syntax.
|
|
40
|
-
* @property {boolean} paid `true` if it is a paid plan, otherwise `false`.
|
|
41
|
-
* @property {string} url A URL pointing to a page describing the billing plan.
|
|
42
|
-
* @property {boolean} default `true` if it is the default plan of the back-end, otherwise `false`.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @typedef Collections
|
|
47
|
-
* @type {object}
|
|
48
|
-
* @property {Array.<Collection>} collections
|
|
49
|
-
* @property {Array.<Link>} links
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
* @
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
* @
|
|
60
|
-
* @
|
|
61
|
-
* @property {object.<string, FileType>}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* @
|
|
67
|
-
* @
|
|
68
|
-
* @property {string}
|
|
69
|
-
* @property {
|
|
70
|
-
* @property {
|
|
71
|
-
* @property {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* @
|
|
79
|
-
* @
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* @
|
|
87
|
-
* @
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
* @
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
* @
|
|
98
|
-
* @
|
|
99
|
-
* @property {
|
|
100
|
-
* @property {?
|
|
101
|
-
* @property {?
|
|
102
|
-
* @property {?number}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
* @
|
|
108
|
-
* @
|
|
109
|
-
* @property {
|
|
110
|
-
* @property {
|
|
111
|
-
* @property {
|
|
112
|
-
* @property {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* @
|
|
120
|
-
* @
|
|
121
|
-
* @property {
|
|
122
|
-
* @property {?string}
|
|
123
|
-
* @property {?string}
|
|
124
|
-
* @property {?
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
* @
|
|
130
|
-
* @
|
|
131
|
-
* @property {Array.<
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @
|
|
139
|
-
* @
|
|
140
|
-
* @property {string}
|
|
141
|
-
* @property {string}
|
|
142
|
-
* @property {string}
|
|
143
|
-
* @property {
|
|
144
|
-
* @property {
|
|
145
|
-
* @property {Array.<
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* @
|
|
153
|
-
* @
|
|
154
|
-
* @property {
|
|
155
|
-
* @property {Array.<string>}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* @
|
|
163
|
-
* @
|
|
164
|
-
* @
|
|
165
|
-
* @property {string}
|
|
166
|
-
* @property {string}
|
|
167
|
-
* @property {string}
|
|
168
|
-
* @property {
|
|
169
|
-
* @property {Array.<
|
|
170
|
-
* @property {Array.<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* @
|
|
178
|
-
* @
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* @
|
|
184
|
-
* @
|
|
185
|
-
* @property {Array.<
|
|
186
|
-
* @property {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* @typedef
|
|
202
|
-
* @
|
|
203
|
-
* @
|
|
204
|
-
* @property {
|
|
205
|
-
* @property {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
* @
|
|
210
|
-
* @
|
|
211
|
-
*/
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* @
|
|
219
|
-
* @
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
* @
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
* @
|
|
236
|
-
* @
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
* @
|
|
241
|
-
* @
|
|
242
|
-
|
|
243
|
-
|
|
1
|
+
/**
|
|
2
|
+
* An error.
|
|
3
|
+
*
|
|
4
|
+
* @typedef ApiError
|
|
5
|
+
* @type {object}
|
|
6
|
+
* @property {string} id
|
|
7
|
+
* @property {string} code
|
|
8
|
+
* @property {string} message
|
|
9
|
+
* @property {Array.<Link>} links
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Authentication Provider details.
|
|
14
|
+
*
|
|
15
|
+
* @typedef AuthProviderMeta
|
|
16
|
+
* @type {object}
|
|
17
|
+
* @property {?string} id Provider identifier, may not be used for all authentication methods.
|
|
18
|
+
* @property {string} title Title for the authentication method.
|
|
19
|
+
* @property {string} description Description for the authentication method.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Response for a HTTP request.
|
|
24
|
+
*
|
|
25
|
+
* @typedef AxiosResponse
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @property {*} data
|
|
28
|
+
* @property {number} status
|
|
29
|
+
* @property {string} statusText
|
|
30
|
+
* @property {*} headers
|
|
31
|
+
* @property {object.<string, *>} config
|
|
32
|
+
* @property {*} request
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef BillingPlan
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @property {string} name Name of the billing plan.
|
|
39
|
+
* @property {string} description A description of the billing plan, may include CommonMark syntax.
|
|
40
|
+
* @property {boolean} paid `true` if it is a paid plan, otherwise `false`.
|
|
41
|
+
* @property {string} url A URL pointing to a page describing the billing plan.
|
|
42
|
+
* @property {boolean} default `true` if it is the default plan of the back-end, otherwise `false`.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @typedef Collections
|
|
47
|
+
* @type {object}
|
|
48
|
+
* @property {Array.<Collection>} collections
|
|
49
|
+
* @property {Array.<Link>} links
|
|
50
|
+
* @property {Array.<string>} ["federation:missing"] A list of backends from the federation that are missing in the response data.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @typedef Collection
|
|
55
|
+
* @type {object.<string, *>}
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @typedef FileTypesAPI
|
|
60
|
+
* @type {object}
|
|
61
|
+
* @property {object.<string, FileType>} input - File types supported to import
|
|
62
|
+
* @property {object.<string, FileType>} output - File types supported to export
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @typedef FileType
|
|
67
|
+
* @type {object}
|
|
68
|
+
* @property {string} title
|
|
69
|
+
* @property {string} description
|
|
70
|
+
* @property {Array.<string>} gis_data_types
|
|
71
|
+
* @property {object.<string, *>} parameters
|
|
72
|
+
* @property {Array.<Link>} links
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Reference to a parameter.
|
|
77
|
+
*
|
|
78
|
+
* @typedef FromNode
|
|
79
|
+
* @type {object}
|
|
80
|
+
* @property {string} from_node - The node identifier.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Reference to a parameter.
|
|
85
|
+
*
|
|
86
|
+
* @typedef FromParameter
|
|
87
|
+
* @type {object}
|
|
88
|
+
* @property {string} from_parameter - The name of the parameter.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @typedef Item
|
|
93
|
+
* @type {object.<string, *>}
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @typedef ItemCollection
|
|
98
|
+
* @type {object}
|
|
99
|
+
* @property {Array.<Item>} features - The items in the collection.
|
|
100
|
+
* @property {?Array.<Link>} links - Additional links, e.g. for pagination.
|
|
101
|
+
* @property {?string} timeStamp This property indicates the time and date when the response was generated.
|
|
102
|
+
* @property {?number} numberMatched The number (integer) of features of the feature type that match the selection parameters.
|
|
103
|
+
* @property {?number} numberReturned The number (integer) of features in the feature collection.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @typedef JobEstimate
|
|
108
|
+
* @type {object}
|
|
109
|
+
* @property {?number} costs
|
|
110
|
+
* @property {string} duration
|
|
111
|
+
* @property {number} size in bytes as integer
|
|
112
|
+
* @property {?number} downloads_included integer
|
|
113
|
+
* @property {string} expires
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* A link to another resource.
|
|
118
|
+
*
|
|
119
|
+
* @typedef Link
|
|
120
|
+
* @type {object}
|
|
121
|
+
* @property {string} href The URL to the resource.
|
|
122
|
+
* @property {?string} rel Relation type
|
|
123
|
+
* @property {?string} type Media type
|
|
124
|
+
* @property {?string} title Human-readable title
|
|
125
|
+
* @property {?Array.<string>} roles A list of roles, if link is originating from an asset.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @typedef LogsAPI
|
|
130
|
+
* @type {object}
|
|
131
|
+
* @property {Array.<Log>} logs
|
|
132
|
+
* @property {Array.<Link>} links
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* A log entry.
|
|
137
|
+
*
|
|
138
|
+
* @typedef Log
|
|
139
|
+
* @type {object}
|
|
140
|
+
* @property {string} id
|
|
141
|
+
* @property {string} code
|
|
142
|
+
* @property {string} level
|
|
143
|
+
* @property {string} message
|
|
144
|
+
* @property {*} data
|
|
145
|
+
* @property {Array.<object.<string, ?string>>} path
|
|
146
|
+
* @property {Array.<Link>} links
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Default OpenID Connect Client as returned by the API.
|
|
151
|
+
*
|
|
152
|
+
* @typedef OidcClient
|
|
153
|
+
* @type {object}
|
|
154
|
+
* @property {string} id Client ID
|
|
155
|
+
* @property {Array.<string>} grant_types Supported Grant Types
|
|
156
|
+
* @property {Array.<string>} redirect_urls Allowed Redirect URLs
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* OpenID Connect Provider details as returned by the API.
|
|
161
|
+
*
|
|
162
|
+
* @augments AuthProviderMeta
|
|
163
|
+
* @typedef OidcProviderMeta
|
|
164
|
+
* @type {object}
|
|
165
|
+
* @property {string} id Provider identifier.
|
|
166
|
+
* @property {string} title Title for the authentication method.
|
|
167
|
+
* @property {string} description Description for the authentication method.
|
|
168
|
+
* @property {string} issuer The OpenID Connect issuer location (authority).
|
|
169
|
+
* @property {Array.<string>} scopes OpenID Connect Scopes
|
|
170
|
+
* @property {Array.<OidcClient>} default_clients Default OpenID Connect Clients
|
|
171
|
+
* @property {Array.<Link>} links Links
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Connection options.
|
|
176
|
+
*
|
|
177
|
+
* @typedef Options
|
|
178
|
+
* @type {object}
|
|
179
|
+
* @property {boolean} addNamespaceToProcess Add a namespace property to processes if set to `true`. Defaults to `false`.
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @typedef Processes
|
|
184
|
+
* @type {object}
|
|
185
|
+
* @property {Array.<Process>} processes
|
|
186
|
+
* @property {Array.<Link>} links
|
|
187
|
+
* @property {?Array.<string>} namespaces EXPERIMENTAL!
|
|
188
|
+
* @property {Array.<string>} ["federation:missing"] A list of backends from the federation that are missing in the response data.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* An openEO processing chain.
|
|
193
|
+
*
|
|
194
|
+
* @typedef Process
|
|
195
|
+
* @type {object.<string, *>}
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* An array of backends in the federation.
|
|
200
|
+
*
|
|
201
|
+
* @typedef FederationBackend
|
|
202
|
+
* @type {object}
|
|
203
|
+
* @property {string} url URL to the versioned API endpoint of the back-end.
|
|
204
|
+
* @property {string} title Name of the back-end.
|
|
205
|
+
* @property {string} description A description of the back-end and its specifics.
|
|
206
|
+
* @property {string} status Current status of the back-ends (online or offline).
|
|
207
|
+
* @property {string} last_status_check The time at which the status of the back-end was checked last, formatted as a RFC 3339 date-time.
|
|
208
|
+
* @property {string} last_successful_check If the `status` is `offline`: The time at which the back-end was checked and available the last time. Otherwise, this is equal to the property `last_status_check`. Formatted as a RFC 3339 date-time.
|
|
209
|
+
* @property {boolean} experimental Declares the back-end to be experimental.
|
|
210
|
+
* @property {boolean} deprecated Declares the back-end to be deprecated.
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* An array, but enriched with additional details from an openEO API response.
|
|
215
|
+
*
|
|
216
|
+
* Adds three properties: `links` and `federation:missing`.
|
|
217
|
+
*
|
|
218
|
+
* @typedef ResponseArray
|
|
219
|
+
* @augments Array
|
|
220
|
+
* @type {Array.<*>}
|
|
221
|
+
* @property {Array.<Link>} links A list of related links.
|
|
222
|
+
* @property {Array.<string>} ["federation:missing"] A list of backends from the federation that are missing in the response data.
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @typedef ServiceType
|
|
227
|
+
* @type {object.<string, *>}
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @typedef SyncResult
|
|
232
|
+
* @type {object}
|
|
233
|
+
* @property {Stream.Readable|Blob} data The data as `Stream` in NodeJS environments or as `Blob` in browsers.
|
|
234
|
+
* @property {?number} costs The costs for the request in the currency exposed by the back-end.
|
|
235
|
+
* @property {?string} type The content media type returned by the back-end.
|
|
236
|
+
* @property {Array.<Log>} logs Array of log entries as specified in the API.
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @typedef UdfRuntime
|
|
241
|
+
* @type {object.<string, *>}
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* @typedef UserAccountStorage
|
|
246
|
+
* @type {object}
|
|
247
|
+
* @property {number} free in bytes as integer
|
|
248
|
+
* @property {number} quota in bytes as integer
|
|
249
|
+
*/
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @typedef UserAccount
|
|
253
|
+
* @type {object}
|
|
254
|
+
* @property {string} user_id
|
|
255
|
+
* @property {?string} name
|
|
256
|
+
* @property {?string} default_plan
|
|
257
|
+
* @property {?UserAccountStorage} storage
|
|
258
|
+
* @property {?number} budget
|
|
259
|
+
* @property {?Array.<Link>} links
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* An array, but enriched with additional details from an openEO API response.
|
|
264
|
+
*
|
|
265
|
+
* Adds the property `federation:backends`.
|
|
266
|
+
*
|
|
267
|
+
* @typedef ValidationResult
|
|
268
|
+
* @augments Array
|
|
269
|
+
* @type {Array.<ApiError>}
|
|
270
|
+
* @property {Array.<string>} ["federation:backends"] The back-ends that support / do not support the process.
|
|
271
|
+
*/
|