@google/earthengine 1.6.13 → 1.6.14

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/build/main.js CHANGED
@@ -2,15 +2,6 @@ const {google} = require('googleapis');
2
2
  const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
3
3
  var $jscomp = $jscomp || {};
4
4
  $jscomp.scope = {};
5
- $jscomp.arrayIteratorImpl = function(array) {
6
- var index = 0;
7
- return function() {
8
- return index < array.length ? {done:!1, value:array[index++]} : {done:!0};
9
- };
10
- };
11
- $jscomp.arrayIterator = function(array) {
12
- return {next:$jscomp.arrayIteratorImpl(array)};
13
- };
14
5
  $jscomp.ASSUME_ES5 = !1;
15
6
  $jscomp.ASSUME_ES6 = !1;
16
7
  $jscomp.ASSUME_ES2020 = !1;
@@ -20,6 +11,12 @@ $jscomp.ISOLATE_POLYFILLS = !1;
20
11
  $jscomp.FORCE_POLYFILL_PROMISE = !1;
21
12
  $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;
22
13
  $jscomp.INSTRUMENT_ASYNC_CONTEXT = !0;
14
+ $jscomp.objectCreate = $jscomp.ASSUME_ES5 || typeof Object.create == "function" ? Object.create : function(prototype) {
15
+ var ctor = function() {
16
+ };
17
+ ctor.prototype = prototype;
18
+ return new ctor();
19
+ };
23
20
  $jscomp.defineProperty = $jscomp.ASSUME_ES5 || typeof Object.defineProperties == "function" ? Object.defineProperty : function(target, property, descriptor) {
24
21
  if (target == Array.prototype || target == Object.prototype) {
25
22
  return target;
@@ -104,50 +101,6 @@ $jscomp.polyfillIsolated = function(target, polyfill, fromLang, toLang) {
104
101
  }
105
102
  }
106
103
  };
107
- $jscomp.initSymbol = function() {
108
- };
109
- $jscomp.polyfill("Symbol", function(orig) {
110
- if (orig) {
111
- return orig;
112
- }
113
- var SymbolClass = function(id, opt_description) {
114
- this.$jscomp$symbol$id_ = id;
115
- $jscomp.defineProperty(this, "description", {configurable:!0, writable:!0, value:opt_description});
116
- };
117
- SymbolClass.prototype.toString = function() {
118
- return this.$jscomp$symbol$id_;
119
- };
120
- var SYMBOL_PREFIX = "jscomp_symbol_" + (Math.random() * 1E9 >>> 0) + "_", counter = 0, symbolPolyfill = function(opt_description) {
121
- if (this instanceof symbolPolyfill) {
122
- throw new TypeError("Symbol is not a constructor");
123
- }
124
- return new SymbolClass(SYMBOL_PREFIX + (opt_description || "") + "_" + counter++, opt_description);
125
- };
126
- return symbolPolyfill;
127
- }, "es6", "es3");
128
- $jscomp.polyfill("Symbol.iterator", function(orig) {
129
- if (orig) {
130
- return orig;
131
- }
132
- var symbolIterator = Symbol("Symbol.iterator");
133
- $jscomp.defineProperty(Array.prototype, symbolIterator, {configurable:!0, writable:!0, value:function() {
134
- return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this));
135
- }});
136
- return symbolIterator;
137
- }, "es6", "es3");
138
- $jscomp.iteratorPrototype = function(next) {
139
- var iterator = {next:next};
140
- iterator[Symbol.iterator] = function() {
141
- return this;
142
- };
143
- return iterator;
144
- };
145
- $jscomp.objectCreate = $jscomp.ASSUME_ES5 || typeof Object.create == "function" ? Object.create : function(prototype) {
146
- var ctor = function() {
147
- };
148
- ctor.prototype = prototype;
149
- return new ctor();
150
- };
151
104
  $jscomp.getConstructImplementation = function() {
152
105
  function reflectConstructWorks() {
153
106
  function Base() {
@@ -210,6 +163,15 @@ $jscomp.inherits = function(childCtor, parentCtor) {
210
163
  }
211
164
  childCtor.superClass_ = parentCtor.prototype;
212
165
  };
166
+ $jscomp.arrayIteratorImpl = function(array) {
167
+ var index = 0;
168
+ return function() {
169
+ return index < array.length ? {done:!1, value:array[index++]} : {done:!0};
170
+ };
171
+ };
172
+ $jscomp.arrayIterator = function(array) {
173
+ return {next:$jscomp.arrayIteratorImpl(array)};
174
+ };
213
175
  $jscomp.makeIterator = function(iterable) {
214
176
  var iteratorFunction = typeof Symbol != "undefined" && Symbol.iterator && iterable[Symbol.iterator];
215
177
  if (iteratorFunction) {
@@ -513,6 +475,44 @@ $jscomp.polyfill("Reflect.setPrototypeOf", function(orig) {
513
475
  }
514
476
  return null;
515
477
  }, "es6", "es5");
478
+ $jscomp.initSymbol = function() {
479
+ };
480
+ $jscomp.polyfill("Symbol", function(orig) {
481
+ if (orig) {
482
+ return orig;
483
+ }
484
+ var SymbolClass = function(id, opt_description) {
485
+ this.$jscomp$symbol$id_ = id;
486
+ $jscomp.defineProperty(this, "description", {configurable:!0, writable:!0, value:opt_description});
487
+ };
488
+ SymbolClass.prototype.toString = function() {
489
+ return this.$jscomp$symbol$id_;
490
+ };
491
+ var SYMBOL_PREFIX = "jscomp_symbol_" + (Math.random() * 1E9 >>> 0) + "_", counter = 0, symbolPolyfill = function(opt_description) {
492
+ if (this instanceof symbolPolyfill) {
493
+ throw new TypeError("Symbol is not a constructor");
494
+ }
495
+ return new SymbolClass(SYMBOL_PREFIX + (opt_description || "") + "_" + counter++, opt_description);
496
+ };
497
+ return symbolPolyfill;
498
+ }, "es6", "es3");
499
+ $jscomp.polyfill("Symbol.iterator", function(orig) {
500
+ if (orig) {
501
+ return orig;
502
+ }
503
+ var symbolIterator = Symbol("Symbol.iterator");
504
+ $jscomp.defineProperty(Array.prototype, symbolIterator, {configurable:!0, writable:!0, value:function() {
505
+ return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this));
506
+ }});
507
+ return symbolIterator;
508
+ }, "es6", "es3");
509
+ $jscomp.iteratorPrototype = function(next) {
510
+ var iterator = {next:next};
511
+ iterator[Symbol.iterator] = function() {
512
+ return this;
513
+ };
514
+ return iterator;
515
+ };
516
516
  $jscomp.polyfill("Promise", function(NativePromise) {
517
517
  function platformSupportsPromiseRejectionEvents() {
518
518
  return typeof $jscomp.global.PromiseRejectionEvent !== "undefined";
@@ -19497,7 +19497,7 @@ var $jscomp$templatelit$m1153655765$101 = $jscomp.createTemplateTagFirstArg(["ht
19497
19497
  ee.apiclient = {};
19498
19498
  var module$contents$ee$apiclient_apiclient = {};
19499
19499
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
19500
- ee.apiclient.API_CLIENT_VERSION = "1.6.13";
19500
+ ee.apiclient.API_CLIENT_VERSION = "1.6.14";
19501
19501
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
19502
19502
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
19503
19503
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -19802,8 +19802,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
19802
19802
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
19803
19803
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
19804
19804
  method = method || "POST";
19805
- var headers = {"Content-Type":contentType}, version = "1.6.13";
19806
- version === "1.6.13" && (version = "latest");
19805
+ var headers = {"Content-Type":contentType}, version = "1.6.14";
19806
+ version === "1.6.14" && (version = "latest");
19807
19807
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
19808
19808
  module$contents$ee$apiclient_apiclient.userAgent_ && (headers["User-Agent"] = module$contents$ee$apiclient_apiclient.userAgent_);
19809
19809
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
@@ -24820,6 +24820,9 @@ ee.promote_ = function(arg, klass) {
24820
24820
  return null;
24821
24821
  }
24822
24822
  if (arg !== void 0) {
24823
+ if (typeof klass != "string") {
24824
+ throw Error("Unexpected type: " + Object.prototype.toString.call(klass));
24825
+ }
24823
24826
  var exportedEE = goog.global.ee;
24824
24827
  switch(klass) {
24825
24828
  case "Image":
@@ -27336,28 +27339,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
27336
27339
  ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
27337
27340
  ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
27338
27341
  (function() {
27339
- var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.batch.Export.table.toCloudStorage ee.batch.Export.table.toDrive ee.batch.Export.table.toBigQuery ee.batch.Export.map.toCloudStorage ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.image.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.video.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.table.toFeatureView ee.batch.Export.video.toCloudStorage ee.Collection.prototype.limit ee.Collection.prototype.filter ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.map ee.Collection.prototype.filterDate ee.Collection.prototype.iterate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.getTaskListWithLimit ee.data.renameAsset ee.data.listOperations ee.data.listFeatures ee.data.copyAsset ee.data.cancelOperation ee.data.authenticateViaOauth ee.data.deleteAsset ee.data.getAsset ee.data.getOperation ee.data.computeValue ee.data.getThumbId ee.data.getInfo ee.data.getAssetAcl ee.data.cancelTask ee.data.updateTask ee.data.getVideoThumbId ee.data.startProcessing ee.data.getFilmstripThumbId ee.data.getList ee.data.listAssets ee.data.makeThumbUrl ee.data.authenticate ee.data.getDownloadId ee.data.authenticateViaPopup ee.data.updateAsset ee.data.setAssetAcl ee.data.makeDownloadUrl ee.data.setWorkloadTag ee.data.getTableDownloadId ee.data.getWorkloadTag ee.data.listImages ee.data.authenticateViaPrivateKey ee.data.makeTableDownloadUrl ee.data.setAssetProperties ee.data.listBuckets ee.data.newTaskId ee.data.getAssetRootQuota ee.data.getAssetRoots ee.data.createAssetHome ee.data.getTaskStatus ee.data.startIngestion ee.data.getMapId ee.data.createAsset ee.data.setDefaultWorkloadTag ee.data.resetWorkloadTag ee.data.getTileUrl ee.data.startTableIngestion ee.data.getTaskList ee.data.createFolder ee.data.getFeatureViewTilesKey ee.Date ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Dictionary ee.TILE_SIZE ee.Algorithms ee.reset ee.InitState ee.call ee.initialize ee.apply ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.getInfo ee.FeatureCollection ee.Filter.lt ee.Filter.bounds ee.Filter.prototype.not ee.Filter.or ee.Filter.gte ee.Filter ee.Filter.date ee.Filter.eq ee.Filter.metadata ee.Filter.gt ee.Filter.inList ee.Filter.neq ee.Filter.lte ee.Filter.and ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.prototype.toGeoJSON ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSONString ee.Geometry.LineString ee.Geometry.Rectangle ee.Geometry.MultiLineString ee.Geometry.Point ee.Geometry.prototype.serialize ee.Geometry.LinearRing ee.Geometry ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.MultiPolygon ee.Image.prototype.getThumbURL ee.Image ee.Image.prototype.getMap ee.Image.prototype.expression ee.Image.rgb ee.Image.cat ee.Image.prototype.getInfo ee.Image.prototype.select ee.Image.prototype.getMapId ee.Image.prototype.getThumbId ee.Image.prototype.clip ee.Image.prototype.getDownloadURL ee.Image.prototype.rename ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getMapId ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getInfo ee.List ee.Number ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.toReadableJSON ee.String ee.Terrain".split(" "),
27340
- orderedParamLists = [["name"], ["name", "namedArgs"], ["name", "var_args"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
27341
- "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
27342
- "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),
27343
- ["classifier", "opt_description", "opt_assetId", "opt_priority"], "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), ["max", "opt_property", "opt_ascending"], ["filter"], ["property", "opt_ascending"], ["name",
27344
- "operator", "value"], ["geometry"], ["algorithm", "opt_dropNulls"], ["start", "opt_end"], ["algorithm", "opt_first"], ["func", "var_args"], ["callback"], ["opt_callback"], ["legacy"], ["opt_limit", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["opt_limit", "opt_callback"], ["asset", "params", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["operationName", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),
27345
- ["assetId", "opt_callback"], ["id", "opt_callback"], ["operationName", "opt_callback"], ["obj", "opt_callback"], ["params", "opt_callback"], ["id", "opt_callback"], ["assetId", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "action", "opt_callback"], ["params", "opt_callback"], ["taskId", "params", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["id"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"],
27346
- ["params", "opt_callback"], ["opt_success", "opt_error"], ["assetId", "asset", "updateFields", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["id"], ["tag"], ["params", "opt_callback"], [], ["parent", "opt_params", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["id"], ["assetId", "properties", "opt_callback"], ["project", "opt_callback"], ["opt_count", "opt_callback"], ["rootId", "opt_callback"], ["opt_callback"], ["requestedId",
27347
- "opt_callback"], ["taskId", "opt_callback"], ["taskId", "request", "opt_callback"], ["params", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["tag"], ["opt_resetDefault"], ["id", "x", "y", "z"], ["taskId", "request", "opt_callback"], ["opt_callback"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], [], [], [], ["func", "var_args"], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),
27348
- ["func", "namedArgs"], ["var_args"], [], ["geometry", "opt_properties"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["args", "opt_column"], ["name", "value"], ["geometry", "opt_errorMargin"], [], ["var_args"], ["name", "value"], ["opt_filter"],
27349
- ["start", "opt_end"], ["name", "value"], ["name", "operator", "value"], ["name", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["name", "value"], ["var_args"], ["namedArgs"], ["var_args"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords",
27350
- "opt_proj"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["west", "south", "east", "north"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["params", "opt_callback"], ["opt_args"], ["opt_visParams", "opt_callback"], ["expression", "opt_map"], ["r", "g", "b"], ["var_args"], ["opt_callback"], ["var_args"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["geometry"],
27351
- ["params", "opt_callback"], ["var_args"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["args"], ["params", "opt_callback"], ["params", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], [], ["opt_callback"], ["list"], ["number"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
27352
- [ee.ApiFunction.lookup, ee.ApiFunction._apply, ee.ApiFunction._call, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.image.toAsset,
27353
- module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toCloudStorage, ee.Collection.prototype.limit, ee.Collection.prototype.filter, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.Collection.prototype.map, ee.Collection.prototype.filterDate, ee.Collection.prototype.iterate, ee.ComputedObject.prototype.aside,
27354
- ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.data.getTaskListWithLimit, ee.data.renameAsset, ee.data.listOperations, ee.data.listFeatures, ee.data.copyAsset, ee.data.cancelOperation, ee.data.authenticateViaOauth, ee.data.deleteAsset, ee.data.getAsset, ee.data.getOperation, ee.data.computeValue, ee.data.getThumbId, ee.data.getInfo, ee.data.getAssetAcl, ee.data.cancelTask, ee.data.updateTask, ee.data.getVideoThumbId, ee.data.startProcessing,
27355
- ee.data.getFilmstripThumbId, ee.data.getList, ee.data.listAssets, ee.data.makeThumbUrl, ee.data.authenticate, ee.data.getDownloadId, ee.data.authenticateViaPopup, ee.data.updateAsset, ee.data.setAssetAcl, ee.data.makeDownloadUrl, ee.data.setWorkloadTag, ee.data.getTableDownloadId, ee.data.getWorkloadTag, ee.data.listImages, ee.data.authenticateViaPrivateKey, ee.data.makeTableDownloadUrl, ee.data.setAssetProperties, ee.data.listBuckets, ee.data.newTaskId, ee.data.getAssetRootQuota, ee.data.getAssetRoots,
27356
- ee.data.createAssetHome, ee.data.getTaskStatus, ee.data.startIngestion, ee.data.getMapId, ee.data.createAsset, ee.data.setDefaultWorkloadTag, ee.data.resetWorkloadTag, ee.data.getTileUrl, ee.data.startTableIngestion, ee.data.getTaskList, ee.data.createFolder, ee.data.getFeatureViewTilesKey, ee.Date, ee.Deserializer.fromJSON, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Deserializer.decodeCloudApi, ee.Dictionary, ee.TILE_SIZE, ee.Algorithms, ee.reset, ee.InitState, ee.call, ee.initialize,
27357
- ee.apply, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getMap, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection, ee.Filter.lt, ee.Filter.bounds, ee.Filter.prototype.not, ee.Filter.or, ee.Filter.gte, ee.Filter, ee.Filter.date,
27358
- ee.Filter.eq, ee.Filter.metadata, ee.Filter.gt, ee.Filter.inList, ee.Filter.neq, ee.Filter.lte, ee.Filter.and, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.prototype.toGeoJSON, ee.Geometry.Polygon, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.LineString, ee.Geometry.Rectangle, ee.Geometry.MultiLineString, ee.Geometry.Point, ee.Geometry.prototype.serialize, ee.Geometry.LinearRing, ee.Geometry, ee.Geometry.BBox, ee.Geometry.MultiPoint, ee.Geometry.MultiPolygon, ee.Image.prototype.getThumbURL,
27359
- ee.Image, ee.Image.prototype.getMap, ee.Image.prototype.expression, ee.Image.rgb, ee.Image.cat, ee.Image.prototype.getInfo, ee.Image.prototype.select, ee.Image.prototype.getMapId, ee.Image.prototype.getThumbId, ee.Image.prototype.clip, ee.Image.prototype.getDownloadURL, ee.Image.prototype.rename, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getMapId, ee.ImageCollection, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.getVideoThumbURL,
27360
- ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getInfo, ee.List, ee.Number, ee.Serializer.encode, ee.Serializer.toJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toCloudApiJSON, ee.Serializer.toReadableJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
27342
+ var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._call ee.ApiFunction.lookup ee.ApiFunction._apply ee.batch.Export.table.toFeatureView ee.batch.Export.video.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.image.toCloudStorage ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toDrive ee.batch.Export.table.toBigQuery ee.batch.Export.table.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.map.toCloudStorage ee.batch.Export.classifier.toAsset ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.Collection.prototype.filterBounds ee.Collection.prototype.limit ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filter ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterDate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.serialize ee.data.getAssetAcl ee.data.authenticate ee.data.getList ee.data.getTableDownloadId ee.data.listAssets ee.data.setAssetAcl ee.data.updateAsset ee.data.startProcessing ee.data.getDownloadId ee.data.makeThumbUrl ee.data.authenticateViaPopup ee.data.makeDownloadUrl ee.data.updateTask ee.data.authenticateViaPrivateKey ee.data.makeTableDownloadUrl ee.data.listImages ee.data.setAssetProperties ee.data.newTaskId ee.data.listBuckets ee.data.getAssetRootQuota ee.data.getAssetRoots ee.data.getMapId ee.data.getTaskStatus ee.data.createAssetHome ee.data.getWorkloadTag ee.data.getTileUrl ee.data.startIngestion ee.data.setWorkloadTag ee.data.createAsset ee.data.setDefaultWorkloadTag ee.data.getTaskList ee.data.resetWorkloadTag ee.data.createFolder ee.data.getFeatureViewTilesKey ee.data.getTaskListWithLimit ee.data.listOperations ee.data.renameAsset ee.data.listFeatures ee.data.startTableIngestion ee.data.getAsset ee.data.computeValue ee.data.copyAsset ee.data.getVideoThumbId ee.data.deleteAsset ee.data.getThumbId ee.data.getFilmstripThumbId ee.data.getInfo ee.data.getOperation ee.data.cancelOperation ee.data.authenticateViaOauth ee.data.cancelTask ee.Date ee.Deserializer.fromJSON ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Dictionary ee.reset ee.call ee.InitState ee.initialize ee.TILE_SIZE ee.apply ee.Algorithms ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature ee.Feature.prototype.getMapId ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMapId ee.Filter.lt ee.Filter.or ee.Filter.bounds ee.Filter.prototype.not ee.Filter.gte ee.Filter.date ee.Filter.eq ee.Filter.gt ee.Filter.inList ee.Filter.metadata ee.Filter.neq ee.Filter ee.Filter.lte ee.Filter.and ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.LinearRing ee.Geometry.Rectangle ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Geometry.Point ee.Geometry.MultiLineString ee.Geometry.BBox ee.Geometry.prototype.toGeoJSON ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSONString ee.Image.prototype.getThumbId ee.Image.prototype.getThumbURL ee.Image ee.Image.cat ee.Image.prototype.getDownloadURL ee.Image.prototype.getMap ee.Image.prototype.rename ee.Image.prototype.expression ee.Image.prototype.getInfo ee.Image.rgb ee.Image.prototype.clip ee.Image.prototype.select ee.Image.prototype.getMapId ee.ImageCollection.prototype.getMapId ee.ImageCollection ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.Serializer.toJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encodeCloudApi ee.Serializer.toReadableJSON ee.String ee.Terrain".split(" "),
27343
+ orderedParamLists = [["name", "var_args"], ["name"], ["name", "namedArgs"], "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "),
27344
+ "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
27345
+ "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
27346
+ "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), ["classifier", "opt_description", "opt_assetId", "opt_priority"], "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),
27347
+ ["geometry"], ["max", "opt_property", "opt_ascending"], ["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["filter"], ["property", "opt_ascending"], ["name", "operator", "value"], ["start", "opt_end"], ["func", "var_args"], ["opt_callback"], ["callback"], ["legacy"], ["assetId", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["params", "opt_callback"], ["params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["assetId",
27348
+ "aclUpdate", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "params", "opt_callback"], ["params", "opt_callback"], ["id"], ["opt_success", "opt_error"], ["id"], ["taskId", "action", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["id"], ["parent", "opt_params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["opt_count", "opt_callback"], ["project", "opt_callback"], ["rootId", "opt_callback"],
27349
+ ["opt_callback"], ["params", "opt_callback"], ["taskId", "opt_callback"], ["requestedId", "opt_callback"], [], ["id", "x", "y", "z"], ["taskId", "request", "opt_callback"], ["tag"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["tag"], ["opt_callback"], ["opt_resetDefault"], ["path", "opt_force", "opt_callback"], ["params", "opt_callback"], ["opt_limit", "opt_callback"], ["opt_limit", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["asset", "params", "opt_callback"],
27350
+ ["taskId", "request", "opt_callback"], ["id", "opt_callback"], ["obj", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["params", "opt_callback"], ["assetId", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["id", "opt_callback"], ["operationName", "opt_callback"], ["operationName", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["taskId", "opt_callback"], ["date",
27351
+ "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], ["func", "var_args"], [], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], ["func", "namedArgs"], [], ["var_args"], [], ["opt_visParams", "opt_callback"], ["opt_callback"], ["geometry", "opt_properties"], ["opt_visParams", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["opt_callback"],
27352
+ ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"], ["name", "value"], ["var_args"], ["geometry", "opt_errorMargin"], [], ["name", "value"], ["start", "opt_end"], ["name", "value"], ["name", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "operator", "value"], ["name", "value"], ["opt_filter"], ["name", "value"], ["var_args"], ["namedArgs"], ["var_args"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"],
27353
+ ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["west", "south", "east", "north"], [], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], [], ["params", "opt_callback"], ["params",
27354
+ "opt_callback"], ["opt_args"], ["var_args"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["var_args"], ["expression", "opt_map"], ["opt_callback"], ["r", "g", "b"], ["geometry"], ["var_args"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["args"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["params", "opt_callback"], ["params", "opt_callback"], ["selectors",
27355
+ "opt_names"], [], ["list"], ["number"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
27356
+ [ee.ApiFunction._call, ee.ApiFunction.lookup, ee.ApiFunction._apply, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.videoMap.toCloudStorage,
27357
+ module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, ee.Collection.prototype.filterBounds, ee.Collection.prototype.limit, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.filter, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterDate, ee.ComputedObject.prototype.aside,
27358
+ ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.serialize, ee.data.getAssetAcl, ee.data.authenticate, ee.data.getList, ee.data.getTableDownloadId, ee.data.listAssets, ee.data.setAssetAcl, ee.data.updateAsset, ee.data.startProcessing, ee.data.getDownloadId, ee.data.makeThumbUrl, ee.data.authenticateViaPopup, ee.data.makeDownloadUrl, ee.data.updateTask, ee.data.authenticateViaPrivateKey, ee.data.makeTableDownloadUrl, ee.data.listImages, ee.data.setAssetProperties,
27359
+ ee.data.newTaskId, ee.data.listBuckets, ee.data.getAssetRootQuota, ee.data.getAssetRoots, ee.data.getMapId, ee.data.getTaskStatus, ee.data.createAssetHome, ee.data.getWorkloadTag, ee.data.getTileUrl, ee.data.startIngestion, ee.data.setWorkloadTag, ee.data.createAsset, ee.data.setDefaultWorkloadTag, ee.data.getTaskList, ee.data.resetWorkloadTag, ee.data.createFolder, ee.data.getFeatureViewTilesKey, ee.data.getTaskListWithLimit, ee.data.listOperations, ee.data.renameAsset, ee.data.listFeatures, ee.data.startTableIngestion,
27360
+ ee.data.getAsset, ee.data.computeValue, ee.data.copyAsset, ee.data.getVideoThumbId, ee.data.deleteAsset, ee.data.getThumbId, ee.data.getFilmstripThumbId, ee.data.getInfo, ee.data.getOperation, ee.data.cancelOperation, ee.data.authenticateViaOauth, ee.data.cancelTask, ee.Date, ee.Deserializer.fromJSON, ee.Deserializer.decode, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Dictionary, ee.reset, ee.call, ee.InitState, ee.initialize, ee.TILE_SIZE, ee.apply, ee.Algorithms, ee.Element.prototype.set,
27361
+ ee.Encodable.SourceFrame, ee.Feature.prototype.getMap, ee.Feature.prototype.getInfo, ee.Feature, ee.Feature.prototype.getMapId, ee.FeatureCollection.prototype.select, ee.FeatureCollection, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMapId, ee.Filter.lt, ee.Filter.or, ee.Filter.bounds, ee.Filter.prototype.not, ee.Filter.gte, ee.Filter.date, ee.Filter.eq, ee.Filter.gt, ee.Filter.inList,
27362
+ ee.Filter.metadata, ee.Filter.neq, ee.Filter, ee.Filter.lte, ee.Filter.and, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.LinearRing, ee.Geometry.Rectangle, ee.Geometry.prototype.serialize, ee.Geometry.MultiPolygon, ee.Geometry.Point, ee.Geometry.MultiLineString, ee.Geometry.BBox, ee.Geometry.prototype.toGeoJSON, ee.Geometry.MultiPoint, ee.Geometry.LineString, ee.Geometry, ee.Geometry.Polygon, ee.Geometry.prototype.toGeoJSONString, ee.Image.prototype.getThumbId, ee.Image.prototype.getThumbURL,
27363
+ ee.Image, ee.Image.cat, ee.Image.prototype.getDownloadURL, ee.Image.prototype.getMap, ee.Image.prototype.rename, ee.Image.prototype.expression, ee.Image.prototype.getInfo, ee.Image.rgb, ee.Image.prototype.clip, ee.Image.prototype.select, ee.Image.prototype.getMapId, ee.ImageCollection.prototype.getMapId, ee.ImageCollection, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.getVideoThumbURL,
27364
+ ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.first, ee.List, ee.Number, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encode, ee.Serializer.toCloudApiJSON, ee.Serializer.toJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encodeCloudApi, ee.Serializer.toReadableJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
27361
27365
  fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
27362
27366
  });
27363
27367
  goog.global.EXPORTED_FN_INFO = exportedFnInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/earthengine",
3
- "version": "1.6.13",
3
+ "version": "1.6.14",
4
4
  "description": "JavaScript client for Google Earth Engine API.",
5
5
  "author": "Google LLC",
6
6
  "license": "Apache-2.0",
package/src/apiclient.js CHANGED
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues.index');
24
24
  /** @namespace */
25
25
  const apiclient = {};
26
26
 
27
- const API_CLIENT_VERSION = '1.6.13';
27
+ const API_CLIENT_VERSION = '1.6.14';
28
28
 
29
29
  exports.VERSION = apiVersion.VERSION;
30
30
  exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
package/src/ee.js CHANGED
@@ -369,6 +369,10 @@ ee.promote_ = function(arg, klass) {
369
369
  return undefined;
370
370
  }
371
371
 
372
+ if (typeof klass != 'string') { // b/451628586
373
+ throw Error('Unexpected type: ' + Object.prototype.toString.call(klass));
374
+ }
375
+
372
376
  const exportedEE = goog.global['ee'];
373
377
 
374
378
  switch (klass) {