@openeo/js-client 2.5.0 → 2.6.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/src/typedefs.js CHANGED
@@ -1,243 +1,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
- */
51
-
52
- /**
53
- * @typedef Collection
54
- * @type {object.<string, *>}
55
- */
56
-
57
- /**
58
- * @typedef FileTypesAPI
59
- * @type {object}
60
- * @property {object.<string, FileType>} input - File types supported to import
61
- * @property {object.<string, FileType>} output - File types supported to export
62
- */
63
-
64
- /**
65
- * @typedef FileType
66
- * @type {object}
67
- * @property {string} title
68
- * @property {string} description
69
- * @property {Array.<string>} gis_data_types
70
- * @property {object.<string, *>} parameters
71
- * @property {Array.<Link>} links
72
- */
73
-
74
- /**
75
- * Reference to a parameter.
76
- *
77
- * @typedef FromNode
78
- * @type {object}
79
- * @property {string} from_node - The node identifier.
80
- */
81
-
82
- /**
83
- * Reference to a parameter.
84
- *
85
- * @typedef FromParameter
86
- * @type {object}
87
- * @property {string} from_parameter - The name of the parameter.
88
- */
89
-
90
- /**
91
- * @typedef Item
92
- * @type {object.<string, *>}
93
- */
94
-
95
- /**
96
- * @typedef ItemCollection
97
- * @type {object}
98
- * @property {Array.<Item>} features - The items in the collection.
99
- * @property {?Array.<Link>} links - Additional links, e.g. for pagination.
100
- * @property {?string} timeStamp This property indicates the time and date when the response was generated.
101
- * @property {?number} numberMatched The number (integer) of features of the feature type that match the selection parameters.
102
- * @property {?number} numberReturned The number (integer) of features in the feature collection.
103
- */
104
-
105
- /**
106
- * @typedef JobEstimate
107
- * @type {object}
108
- * @property {?number} costs
109
- * @property {string} duration
110
- * @property {number} size in bytes as integer
111
- * @property {?number} downloads_included integer
112
- * @property {string} expires
113
- */
114
-
115
- /**
116
- * A link to another resource.
117
- *
118
- * @typedef Link
119
- * @type {object}
120
- * @property {string} href The URL to the resource.
121
- * @property {?string} rel Relation type
122
- * @property {?string} type Media type
123
- * @property {?string} title Human-readable title
124
- * @property {?Array.<string>} roles A list of roles, if link is originating from an asset.
125
- */
126
-
127
- /**
128
- * @typedef LogsAPI
129
- * @type {object}
130
- * @property {Array.<Log>} logs
131
- * @property {Array.<Link>} links
132
- */
133
-
134
- /**
135
- * A log entry.
136
- *
137
- * @typedef Log
138
- * @type {object}
139
- * @property {string} id
140
- * @property {string} code
141
- * @property {string} level
142
- * @property {string} message
143
- * @property {*} data
144
- * @property {Array.<object.<string, ?string>>} path
145
- * @property {Array.<Link>} links
146
- */
147
-
148
- /**
149
- * Default OpenID Connect Client as returned by the API.
150
- *
151
- * @typedef OidcClient
152
- * @type {object}
153
- * @property {string} id Client ID
154
- * @property {Array.<string>} grant_types Supported Grant Types
155
- * @property {Array.<string>} redirect_urls Allowed Redirect URLs
156
- */
157
-
158
- /**
159
- * OpenID Connect Provider details as returned by the API.
160
- *
161
- * @augments AuthProviderMeta
162
- * @typedef OidcProviderMeta
163
- * @type {object}
164
- * @property {string} id Provider identifier.
165
- * @property {string} title Title for the authentication method.
166
- * @property {string} description Description for the authentication method.
167
- * @property {string} issuer The OpenID Connect issuer location (authority).
168
- * @property {Array.<string>} scopes OpenID Connect Scopes
169
- * @property {Array.<OidcClient>} default_clients Default OpenID Connect Clients
170
- * @property {Array.<Link>} links Links
171
- */
172
-
173
- /**
174
- * Connection options.
175
- *
176
- * @typedef Options
177
- * @type {object}
178
- * @property {boolean} addNamespaceToProcess Add a namespace property to processes if set to `true`. Defaults to `false`.
179
- */
180
-
181
- /**
182
- * @typedef Processes
183
- * @type {object}
184
- * @property {Array.<Process>} processes
185
- * @property {Array.<Link>} links
186
- * @property {?Array.<string>} namespaces EXPERIMENTAL!
187
- */
188
-
189
- /**
190
- * An openEO processing chain.
191
- *
192
- * @typedef Process
193
- * @type {object.<string, *>}
194
- */
195
-
196
- /**
197
- * An array, but enriched with additional details from an openEO API response.
198
- *
199
- * Adds two properties: `links` and `federation:missing`.
200
- *
201
- * @typedef ResponseArray
202
- * @augments Array
203
- * @type {Array.<*>}
204
- * @property {Array.<Link>} links A list of related links.
205
- * @property {Array.<string>} federation:missing A list of backends from the federation that are missing in the response data.
206
- */
207
-
208
- /**
209
- * @typedef ServiceType
210
- * @type {object.<string, *>}
211
- */
212
-
213
- /**
214
- * @typedef SyncResult
215
- * @type {object}
216
- * @property {Stream.Readable|Blob} data The data as `Stream` in NodeJS environments or as `Blob` in browsers.
217
- * @property {?number} costs The costs for the request in the currency exposed by the back-end.
218
- * @property {?string} type The content media type returned by the back-end.
219
- * @property {Array.<Log>} logs Array of log entries as specified in the API.
220
- */
221
-
222
- /**
223
- * @typedef UdfRuntime
224
- * @type {object.<string, *>}
225
- */
226
-
227
- /**
228
- * @typedef UserAccountStorage
229
- * @type {object}
230
- * @property {number} free in bytes as integer
231
- * @property {number} quota in bytes as integer
232
- */
233
-
234
- /**
235
- * @typedef UserAccount
236
- * @type {object}
237
- * @property {string} user_id
238
- * @property {?string} name
239
- * @property {?string} default_plan
240
- * @property {?UserAccountStorage} storage
241
- * @property {?number} budget
242
- * @property {?Array.<Link>} links
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
+ * @typedef Collection
54
+ * @type {object.<string, *>}
55
+ */
56
+
57
+ /**
58
+ * @typedef FileTypesAPI
59
+ * @type {object}
60
+ * @property {object.<string, FileType>} input - File types supported to import
61
+ * @property {object.<string, FileType>} output - File types supported to export
62
+ */
63
+
64
+ /**
65
+ * @typedef FileType
66
+ * @type {object}
67
+ * @property {string} title
68
+ * @property {string} description
69
+ * @property {Array.<string>} gis_data_types
70
+ * @property {object.<string, *>} parameters
71
+ * @property {Array.<Link>} links
72
+ */
73
+
74
+ /**
75
+ * Reference to a parameter.
76
+ *
77
+ * @typedef FromNode
78
+ * @type {object}
79
+ * @property {string} from_node - The node identifier.
80
+ */
81
+
82
+ /**
83
+ * Reference to a parameter.
84
+ *
85
+ * @typedef FromParameter
86
+ * @type {object}
87
+ * @property {string} from_parameter - The name of the parameter.
88
+ */
89
+
90
+ /**
91
+ * @typedef Item
92
+ * @type {object.<string, *>}
93
+ */
94
+
95
+ /**
96
+ * @typedef ItemCollection
97
+ * @type {object}
98
+ * @property {Array.<Item>} features - The items in the collection.
99
+ * @property {?Array.<Link>} links - Additional links, e.g. for pagination.
100
+ * @property {?string} timeStamp This property indicates the time and date when the response was generated.
101
+ * @property {?number} numberMatched The number (integer) of features of the feature type that match the selection parameters.
102
+ * @property {?number} numberReturned The number (integer) of features in the feature collection.
103
+ */
104
+
105
+ /**
106
+ * @typedef JobEstimate
107
+ * @type {object}
108
+ * @property {?number} costs
109
+ * @property {string} duration
110
+ * @property {number} size in bytes as integer
111
+ * @property {?number} downloads_included integer
112
+ * @property {string} expires
113
+ */
114
+
115
+ /**
116
+ * A link to another resource.
117
+ *
118
+ * @typedef Link
119
+ * @type {object}
120
+ * @property {string} href The URL to the resource.
121
+ * @property {?string} rel Relation type
122
+ * @property {?string} type Media type
123
+ * @property {?string} title Human-readable title
124
+ * @property {?Array.<string>} roles A list of roles, if link is originating from an asset.
125
+ */
126
+
127
+ /**
128
+ * @typedef LogsAPI
129
+ * @type {object}
130
+ * @property {Array.<Log>} logs
131
+ * @property {Array.<Link>} links
132
+ */
133
+
134
+ /**
135
+ * A log entry.
136
+ *
137
+ * @typedef Log
138
+ * @type {object}
139
+ * @property {string} id
140
+ * @property {string} code
141
+ * @property {string} level
142
+ * @property {string} message
143
+ * @property {*} data
144
+ * @property {Array.<object.<string, ?string>>} path
145
+ * @property {Array.<Link>} links
146
+ */
147
+
148
+ /**
149
+ * Default OpenID Connect Client as returned by the API.
150
+ *
151
+ * @typedef OidcClient
152
+ * @type {object}
153
+ * @property {string} id Client ID
154
+ * @property {Array.<string>} grant_types Supported Grant Types
155
+ * @property {Array.<string>} redirect_urls Allowed Redirect URLs
156
+ */
157
+
158
+ /**
159
+ * OpenID Connect Provider details as returned by the API.
160
+ *
161
+ * @augments AuthProviderMeta
162
+ * @typedef OidcProviderMeta
163
+ * @type {object}
164
+ * @property {string} id Provider identifier.
165
+ * @property {string} title Title for the authentication method.
166
+ * @property {string} description Description for the authentication method.
167
+ * @property {string} issuer The OpenID Connect issuer location (authority).
168
+ * @property {Array.<string>} scopes OpenID Connect Scopes
169
+ * @property {Array.<OidcClient>} default_clients Default OpenID Connect Clients
170
+ * @property {Array.<Link>} links Links
171
+ */
172
+
173
+ /**
174
+ * Connection options.
175
+ *
176
+ * @typedef Options
177
+ * @type {object}
178
+ * @property {boolean} addNamespaceToProcess Add a namespace property to processes if set to `true`. Defaults to `false`.
179
+ */
180
+
181
+ /**
182
+ * @typedef Processes
183
+ * @type {object}
184
+ * @property {Array.<Process>} processes
185
+ * @property {Array.<Link>} links
186
+ * @property {?Array.<string>} namespaces EXPERIMENTAL!
187
+ */
188
+
189
+ /**
190
+ * An openEO processing chain.
191
+ *
192
+ * @typedef Process
193
+ * @type {object.<string, *>}
194
+ */
195
+
196
+ /**
197
+ * An array, but enriched with additional details from an openEO API response.
198
+ *
199
+ * Adds two properties: `links` and `federation:missing`.
200
+ *
201
+ * @typedef ResponseArray
202
+ * @augments Array
203
+ * @type {Array.<*>}
204
+ * @property {Array.<Link>} links A list of related links.
205
+ * @property {Array.<string>} ["federation:missing"] A list of backends from the federation that are missing in the response data.
206
+ */
207
+
208
+ /**
209
+ * @typedef ServiceType
210
+ * @type {object.<string, *>}
211
+ */
212
+
213
+ /**
214
+ * @typedef SyncResult
215
+ * @type {object}
216
+ * @property {Stream.Readable|Blob} data The data as `Stream` in NodeJS environments or as `Blob` in browsers.
217
+ * @property {?number} costs The costs for the request in the currency exposed by the back-end.
218
+ * @property {?string} type The content media type returned by the back-end.
219
+ * @property {Array.<Log>} logs Array of log entries as specified in the API.
220
+ */
221
+
222
+ /**
223
+ * @typedef UdfRuntime
224
+ * @type {object.<string, *>}
225
+ */
226
+
227
+ /**
228
+ * @typedef UserAccountStorage
229
+ * @type {object}
230
+ * @property {number} free in bytes as integer
231
+ * @property {number} quota in bytes as integer
232
+ */
233
+
234
+ /**
235
+ * @typedef UserAccount
236
+ * @type {object}
237
+ * @property {string} user_id
238
+ * @property {?string} name
239
+ * @property {?string} default_plan
240
+ * @property {?UserAccountStorage} storage
241
+ * @property {?number} budget
242
+ * @property {?Array.<Link>} links
243
243
  */