@google/earthengine 0.1.390 → 0.1.392
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/.tmp/BUILD +2 -2
- package/.tmp/METADATA +4 -4
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +164 -123
- package/build/ee_api_js.js +305 -302
- package/build/ee_api_js_debug.js +141 -100
- package/build/ee_api_js_npm.js +164 -123
- package/build/main.js +164 -123
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +24 -12
- package/src/data.js +8 -0
- package/src/eeapiclient/domain_object.ts +7 -8
- package/src/eeapiclient/multipart_request.ts +4 -2
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues');
|
|
|
24
24
|
/** @namespace */
|
|
25
25
|
const apiclient = {};
|
|
26
26
|
|
|
27
|
-
const API_CLIENT_VERSION = '0.1.
|
|
27
|
+
const API_CLIENT_VERSION = '0.1.392';
|
|
28
28
|
|
|
29
29
|
exports.VERSION = apiVersion.VERSION;
|
|
30
30
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
package/src/batch.js
CHANGED
|
@@ -132,7 +132,8 @@ class ExportTask {
|
|
|
132
132
|
Export.image.toAsset = function(
|
|
133
133
|
image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions,
|
|
134
134
|
opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
|
|
135
|
-
opt_shardSize
|
|
135
|
+
opt_shardSize,
|
|
136
|
+
) {
|
|
136
137
|
const clientConfig =
|
|
137
138
|
eeArguments.extractFromFunction(Export.image.toAsset, arguments);
|
|
138
139
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -164,7 +165,8 @@ Export.image.toCloudStorage = function(
|
|
|
164
165
|
image, opt_description, opt_bucket, opt_fileNamePrefix, opt_dimensions,
|
|
165
166
|
opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
|
|
166
167
|
opt_shardSize, opt_fileDimensions, opt_skipEmptyTiles, opt_fileFormat,
|
|
167
|
-
opt_formatOptions
|
|
168
|
+
opt_formatOptions,
|
|
169
|
+
) {
|
|
168
170
|
const clientConfig =
|
|
169
171
|
eeArguments.extractFromFunction(Export.image.toCloudStorage, arguments);
|
|
170
172
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -196,7 +198,8 @@ Export.image.toDrive = function(
|
|
|
196
198
|
image, opt_description, opt_folder, opt_fileNamePrefix, opt_dimensions,
|
|
197
199
|
opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
|
|
198
200
|
opt_shardSize, opt_fileDimensions, opt_skipEmptyTiles, opt_fileFormat,
|
|
199
|
-
opt_formatOptions
|
|
201
|
+
opt_formatOptions,
|
|
202
|
+
) {
|
|
200
203
|
const clientConfig =
|
|
201
204
|
eeArguments.extractFromFunction(Export.image.toDrive, arguments);
|
|
202
205
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -225,7 +228,8 @@ Export.image.toDrive = function(
|
|
|
225
228
|
Export.map.toCloudStorage = function(
|
|
226
229
|
image, opt_description, opt_bucket, opt_fileFormat, opt_path,
|
|
227
230
|
opt_writePublicTiles, opt_scale, opt_maxZoom, opt_minZoom, opt_region,
|
|
228
|
-
opt_skipEmptyTiles, opt_mapsApiKey, opt_bucketCorsUris
|
|
231
|
+
opt_skipEmptyTiles, opt_mapsApiKey, opt_bucketCorsUris,
|
|
232
|
+
) {
|
|
229
233
|
const clientConfig =
|
|
230
234
|
eeArguments.extractFromFunction(Export.map.toCloudStorage, arguments);
|
|
231
235
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -247,7 +251,8 @@ Export.map.toCloudStorage = function(
|
|
|
247
251
|
*/
|
|
248
252
|
Export.table.toCloudStorage = function(
|
|
249
253
|
collection, opt_description, opt_bucket, opt_fileNamePrefix, opt_fileFormat,
|
|
250
|
-
opt_selectors, opt_maxVertices
|
|
254
|
+
opt_selectors, opt_maxVertices,
|
|
255
|
+
) {
|
|
251
256
|
const clientConfig =
|
|
252
257
|
eeArguments.extractFromFunction(Export.table.toCloudStorage, arguments);
|
|
253
258
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -269,7 +274,8 @@ Export.table.toCloudStorage = function(
|
|
|
269
274
|
*/
|
|
270
275
|
Export.table.toDrive = function(
|
|
271
276
|
collection, opt_description, opt_folder, opt_fileNamePrefix, opt_fileFormat,
|
|
272
|
-
opt_selectors, opt_maxVertices
|
|
277
|
+
opt_selectors, opt_maxVertices,
|
|
278
|
+
) {
|
|
273
279
|
const clientConfig =
|
|
274
280
|
eeArguments.extractFromFunction(Export.table.toDrive, arguments);
|
|
275
281
|
clientConfig['type'] = ExportType.TABLE;
|
|
@@ -288,7 +294,8 @@ Export.table.toDrive = function(
|
|
|
288
294
|
* @export
|
|
289
295
|
*/
|
|
290
296
|
Export.table.toAsset = function(
|
|
291
|
-
collection, opt_description, opt_assetId, opt_maxVertices
|
|
297
|
+
collection, opt_description, opt_assetId, opt_maxVertices,
|
|
298
|
+
) {
|
|
292
299
|
const clientConfig =
|
|
293
300
|
eeArguments.extractFromFunction(Export.table.toAsset, arguments);
|
|
294
301
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -310,7 +317,8 @@ Export.table.toAsset = function(
|
|
|
310
317
|
*/
|
|
311
318
|
Export.table.toFeatureView = function(
|
|
312
319
|
collection, opt_description, opt_assetId, opt_maxFeaturesPerTile,
|
|
313
|
-
opt_thinningStrategy, opt_thinningRanking, opt_zOrderRanking
|
|
320
|
+
opt_thinningStrategy, opt_thinningRanking, opt_zOrderRanking,
|
|
321
|
+
) {
|
|
314
322
|
const clientConfig =
|
|
315
323
|
eeArguments.extractFromFunction(Export.table.toFeatureView, arguments);
|
|
316
324
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -332,7 +340,8 @@ Export.table.toFeatureView = function(
|
|
|
332
340
|
*/
|
|
333
341
|
Export.table.toBigQuery = function(
|
|
334
342
|
collection, opt_description, opt_table, opt_overwrite, opt_append,
|
|
335
|
-
opt_selectors, opt_maxVertices
|
|
343
|
+
opt_selectors, opt_maxVertices,
|
|
344
|
+
) {
|
|
336
345
|
const clientConfig =
|
|
337
346
|
eeArguments.extractFromFunction(Export.table.toBigQuery, arguments);
|
|
338
347
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -360,7 +369,8 @@ Export.table.toBigQuery = function(
|
|
|
360
369
|
Export.video.toCloudStorage = function(
|
|
361
370
|
collection, opt_description, opt_bucket, opt_fileNamePrefix,
|
|
362
371
|
opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs,
|
|
363
|
-
opt_crsTransform, opt_maxPixels, opt_maxFrames
|
|
372
|
+
opt_crsTransform, opt_maxPixels, opt_maxFrames,
|
|
373
|
+
) {
|
|
364
374
|
const clientConfig =
|
|
365
375
|
eeArguments.extractFromFunction(Export.video.toCloudStorage, arguments);
|
|
366
376
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -388,7 +398,8 @@ Export.video.toCloudStorage = function(
|
|
|
388
398
|
Export.video.toDrive = function(
|
|
389
399
|
collection, opt_description, opt_folder, opt_fileNamePrefix,
|
|
390
400
|
opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs,
|
|
391
|
-
opt_crsTransform, opt_maxPixels, opt_maxFrames
|
|
401
|
+
opt_crsTransform, opt_maxPixels, opt_maxFrames,
|
|
402
|
+
) {
|
|
392
403
|
const clientConfig =
|
|
393
404
|
eeArguments.extractFromFunction(Export.video.toDrive, arguments);
|
|
394
405
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -403,7 +414,8 @@ Export.video.toDrive = function(
|
|
|
403
414
|
* @return {!ExportTask}
|
|
404
415
|
* @export
|
|
405
416
|
*/
|
|
406
|
-
Export.classifier.toAsset = function(classifier, opt_description, opt_assetId
|
|
417
|
+
Export.classifier.toAsset = function(classifier, opt_description, opt_assetId,
|
|
418
|
+
) {
|
|
407
419
|
const clientConfig =
|
|
408
420
|
eeArguments.extractFromFunction(Export.classifier.toAsset, arguments);
|
|
409
421
|
const serverConfig = Export.convertToServerParams(
|
package/src/data.js
CHANGED
|
@@ -3494,6 +3494,7 @@ ee.data.AbstractTaskConfig;
|
|
|
3494
3494
|
* assetId: (undefined|string),
|
|
3495
3495
|
* pyramidingPolicy: (undefined|string),
|
|
3496
3496
|
* workloadTag: (undefined|string),
|
|
3497
|
+
* priority: (undefined|number),
|
|
3497
3498
|
* }}
|
|
3498
3499
|
*/
|
|
3499
3500
|
ee.data.ImageTaskConfigUnformatted;
|
|
@@ -3538,6 +3539,7 @@ ee.data.ImageTaskConfigUnformatted;
|
|
|
3538
3539
|
* assetId: (undefined|string),
|
|
3539
3540
|
* pyramidingPolicy: (undefined|string),
|
|
3540
3541
|
* workloadTag: (undefined|string),
|
|
3542
|
+
* priority: (undefined|number),
|
|
3541
3543
|
* }}
|
|
3542
3544
|
*/
|
|
3543
3545
|
ee.data.ImageTaskConfig;
|
|
@@ -3589,6 +3591,7 @@ ee.data.ImageExportFormatConfig;
|
|
|
3589
3591
|
* mapsApiKey: (undefined|string),
|
|
3590
3592
|
* generateEarthHtml: (undefined|boolean),
|
|
3591
3593
|
* workloadTag: (undefined|string),
|
|
3594
|
+
* priority: (undefined|number),
|
|
3592
3595
|
* }}
|
|
3593
3596
|
*/
|
|
3594
3597
|
ee.data.MapTaskConfig;
|
|
@@ -3606,6 +3609,7 @@ ee.data.MapTaskConfig;
|
|
|
3606
3609
|
* assetId: (undefined|string),
|
|
3607
3610
|
* maxWorkers: (undefined|number),
|
|
3608
3611
|
* workloadTag: (undefined|string),
|
|
3612
|
+
* priority: (undefined|number),
|
|
3609
3613
|
* }}
|
|
3610
3614
|
*/
|
|
3611
3615
|
ee.data.ClassifierTaskConfig;
|
|
@@ -3627,6 +3631,7 @@ ee.data.ClassifierTaskConfig;
|
|
|
3627
3631
|
* thinningRanking: (undefined|string|!Array<string>),
|
|
3628
3632
|
* zOrderRanking: (undefined|string|!Array<string>),
|
|
3629
3633
|
* workloadTag: (undefined|string),
|
|
3634
|
+
* priority: (undefined|number),
|
|
3630
3635
|
* }}
|
|
3631
3636
|
*/
|
|
3632
3637
|
ee.data.FeatureViewTaskConfig;
|
|
@@ -3647,6 +3652,7 @@ ee.data.FeatureViewTaskConfig;
|
|
|
3647
3652
|
* maxWorkers: (undefined|number),
|
|
3648
3653
|
* maxVertices: (undefined|number),
|
|
3649
3654
|
* workloadTag: (undefined|string),
|
|
3655
|
+
* priority: (undefined|number),
|
|
3650
3656
|
* }}
|
|
3651
3657
|
*/
|
|
3652
3658
|
ee.data.BigQueryTaskConfig;
|
|
@@ -3671,6 +3677,7 @@ ee.data.BigQueryTaskConfig;
|
|
|
3671
3677
|
* maxWorkers: (undefined|number),
|
|
3672
3678
|
* maxVertices: (undefined|number),
|
|
3673
3679
|
* workloadTag: (undefined|string),
|
|
3680
|
+
* priority: (undefined|number),
|
|
3674
3681
|
* }}
|
|
3675
3682
|
*/
|
|
3676
3683
|
ee.data.TableTaskConfig;
|
|
@@ -3699,6 +3706,7 @@ ee.data.TableTaskConfig;
|
|
|
3699
3706
|
* outputBucket: (undefined|string),
|
|
3700
3707
|
* outputPrefix: (undefined|string),
|
|
3701
3708
|
* workloadTag: (undefined|string),
|
|
3709
|
+
* priority: (undefined|number),
|
|
3702
3710
|
* }}
|
|
3703
3711
|
*/
|
|
3704
3712
|
ee.data.VideoTaskConfig;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* g3-format-changed-lines-during-prettier-version-upgrade
|
|
3
2
|
* Utility map for ClassMetadata to describe how to create instances of child
|
|
4
3
|
* properties.
|
|
5
4
|
*/
|
|
@@ -27,13 +26,13 @@ type Primitive = string | number | boolean | null | undefined;
|
|
|
27
26
|
export type DeepPartialISerializable<T> = T extends Primitive
|
|
28
27
|
? Partial<T>
|
|
29
28
|
: T extends ISerializable
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
? Omit<
|
|
30
|
+
{[K in keyof T]?: DeepPartialISerializable<T[K]>},
|
|
31
|
+
keyof ISerializable | 'getPartialClassMetadata'
|
|
32
|
+
>
|
|
33
|
+
: T extends object
|
|
34
|
+
? {[K in keyof T]?: DeepPartialISerializable<T[K]>}
|
|
35
|
+
: unknown;
|
|
37
36
|
|
|
38
37
|
/**
|
|
39
38
|
* Description of the properties in a Serializable class.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// g3-format-changed-lines-during-prettier-version-upgrade
|
|
2
1
|
import {Serializable, serialize} from './domain_object';
|
|
3
2
|
|
|
4
3
|
export class MultipartRequest {
|
|
@@ -6,7 +5,10 @@ export class MultipartRequest {
|
|
|
6
5
|
private _metadataPayload = '';
|
|
7
6
|
private _payloadPromise: Promise<string>;
|
|
8
7
|
|
|
9
|
-
constructor(
|
|
8
|
+
constructor(
|
|
9
|
+
private files: File[],
|
|
10
|
+
private _metadata?: {} | null,
|
|
11
|
+
) {
|
|
10
12
|
this._boundary = Date.now().toString();
|
|
11
13
|
if (_metadata) {
|
|
12
14
|
this.addMetadata(_metadata);
|