@google/earthengine 1.6.11 → 1.6.13

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
@@ -19210,6 +19210,13 @@ goog.net.XhrIo.prototype.setTrustToken = function(trustToken) {
19210
19210
  goog.net.XhrIo.prototype.setAttributionReporting = function(attributionReportingOptions) {
19211
19211
  this.attributionReportingOptions_ = attributionReportingOptions;
19212
19212
  };
19213
+ goog.net.XhrIo.prototype.getResponseUrl = function() {
19214
+ try {
19215
+ return this.xhr_ ? this.xhr_.responseURL : "";
19216
+ } catch (e) {
19217
+ return goog.log.fine(this.logger_, "Can not get responseURL: " + e.message), "";
19218
+ }
19219
+ };
19213
19220
  goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_headers) {
19214
19221
  if (this.xhr_) {
19215
19222
  throw Error("[goog.net.XhrIo] Object is active with another request=" + this.lastUri_ + "; newUri=" + url);
@@ -19240,8 +19247,8 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
19240
19247
  headers.set(key, opt_headers[key]);
19241
19248
  }
19242
19249
  } else if (typeof opt_headers.keys === "function" && typeof opt_headers.get === "function") {
19243
- for (var $jscomp$iter$45 = (0,$jscomp.makeIterator)(opt_headers.keys()), $jscomp$key$m71669834$54$key = $jscomp$iter$45.next(); !$jscomp$key$m71669834$54$key.done; $jscomp$key$m71669834$54$key = $jscomp$iter$45.next()) {
19244
- var key$jscomp$0 = $jscomp$key$m71669834$54$key.value;
19250
+ for (var $jscomp$iter$45 = (0,$jscomp.makeIterator)(opt_headers.keys()), $jscomp$key$m71669834$55$key = $jscomp$iter$45.next(); !$jscomp$key$m71669834$55$key.done; $jscomp$key$m71669834$55$key = $jscomp$iter$45.next()) {
19251
+ var key$jscomp$0 = $jscomp$key$m71669834$55$key.value;
19245
19252
  headers.set(key$jscomp$0, opt_headers.get(key$jscomp$0));
19246
19253
  }
19247
19254
  } else {
@@ -19252,8 +19259,8 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
19252
19259
  return goog.string.caseInsensitiveEquals(goog.net.XhrIo.CONTENT_TYPE_HEADER, header);
19253
19260
  }), contentIsFormData = goog.global.FormData && content instanceof goog.global.FormData;
19254
19261
  !module$contents$goog$array_contains(goog.net.XhrIo.METHODS_WITH_FORM_DATA, method) || contentTypeKey || contentIsFormData || headers.set(goog.net.XhrIo.CONTENT_TYPE_HEADER, goog.net.XhrIo.FORM_CONTENT_TYPE);
19255
- for (var $jscomp$iter$46 = (0,$jscomp.makeIterator)(headers), $jscomp$key$m71669834$55$ = $jscomp$iter$46.next(); !$jscomp$key$m71669834$55$.done; $jscomp$key$m71669834$55$ = $jscomp$iter$46.next()) {
19256
- var $jscomp$destructuring$var40 = (0,$jscomp.makeIterator)($jscomp$key$m71669834$55$.value), key$jscomp$1 = $jscomp$destructuring$var40.next().value, value = $jscomp$destructuring$var40.next().value;
19262
+ for (var $jscomp$iter$46 = (0,$jscomp.makeIterator)(headers), $jscomp$key$m71669834$56$ = $jscomp$iter$46.next(); !$jscomp$key$m71669834$56$.done; $jscomp$key$m71669834$56$ = $jscomp$iter$46.next()) {
19263
+ var $jscomp$destructuring$var40 = (0,$jscomp.makeIterator)($jscomp$key$m71669834$56$.value), key$jscomp$1 = $jscomp$destructuring$var40.next().value, value = $jscomp$destructuring$var40.next().value;
19257
19264
  this.xhr_.setRequestHeader(key$jscomp$1, value);
19258
19265
  }
19259
19266
  this.responseType_ && (this.xhr_.responseType = this.responseType_);
@@ -19486,11 +19493,11 @@ goog.net.XhrIo.prototype.formatMsg_ = function(msg) {
19486
19493
  goog.debug.entryPointRegistry.register(function(transformer) {
19487
19494
  goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_ = transformer(goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_);
19488
19495
  });
19489
- var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["https://accounts.google.com/gsi/client"]);
19496
+ var $jscomp$templatelit$m1153655765$101 = $jscomp.createTemplateTagFirstArg(["https://accounts.google.com/gsi/client"]);
19490
19497
  ee.apiclient = {};
19491
19498
  var module$contents$ee$apiclient_apiclient = {};
19492
19499
  ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
19493
- ee.apiclient.API_CLIENT_VERSION = "1.6.11";
19500
+ ee.apiclient.API_CLIENT_VERSION = "1.6.13";
19494
19501
  ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
19495
19502
  ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
19496
19503
  ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
@@ -19653,14 +19660,15 @@ module$contents$ee$apiclient_BatchRequestService.prototype.send = function(param
19653
19660
  request.push("Content-Type: application/json; charset=utf-8");
19654
19661
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
19655
19662
  authToken != null && request.push("Authorization: " + authToken);
19663
+ module$contents$ee$apiclient_apiclient.userAgent_ && request.push("User-Agent: " + module$contents$ee$apiclient_apiclient.userAgent_);
19656
19664
  var body = params.body ? JSON.stringify(params.body) : "";
19657
19665
  return [request.join("\r\n") + "\r\n\r\n" + body, responseCtor];
19658
19666
  };
19659
19667
  module$contents$ee$apiclient_BatchRequestService.prototype.makeRequest = function(params) {
19660
19668
  };
19661
19669
  module$contents$ee$apiclient_apiclient.parseBatchReply = function(contentType, responseText, handle) {
19662
- for (var boundary = contentType.split("; boundary=")[1], $jscomp$iter$47 = (0,$jscomp.makeIterator)(responseText.split("--" + boundary)), $jscomp$key$m1153655765$100$part = $jscomp$iter$47.next(); !$jscomp$key$m1153655765$100$part.done; $jscomp$key$m1153655765$100$part = $jscomp$iter$47.next()) {
19663
- var groups = $jscomp$key$m1153655765$100$part.value.split("\r\n\r\n");
19670
+ for (var boundary = contentType.split("; boundary=")[1], $jscomp$iter$47 = (0,$jscomp.makeIterator)(responseText.split("--" + boundary)), $jscomp$key$m1153655765$102$part = $jscomp$iter$47.next(); !$jscomp$key$m1153655765$102$part.done; $jscomp$key$m1153655765$102$part = $jscomp$iter$47.next()) {
19671
+ var groups = $jscomp$key$m1153655765$102$part.value.split("\r\n\r\n");
19664
19672
  if (!(groups.length < 3)) {
19665
19673
  var id = groups[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1], status = Number(groups[1].match(/^HTTP\S*\s(\d+)\s/)[1]), text = groups.slice(2).join("\r\n\r\n");
19666
19674
  handle(id, status, text);
@@ -19752,6 +19760,12 @@ module$contents$ee$apiclient_apiclient.setAuthClient = function(clientId, scopes
19752
19760
  module$contents$ee$apiclient_apiclient.setAppIdToken = function(token) {
19753
19761
  module$contents$ee$apiclient_apiclient.appIdToken_ = token;
19754
19762
  };
19763
+ module$contents$ee$apiclient_apiclient.setUserAgent = function(userAgent) {
19764
+ module$contents$ee$apiclient_apiclient.userAgent_ = userAgent;
19765
+ };
19766
+ module$contents$ee$apiclient_apiclient.getUserAgent = function() {
19767
+ return module$contents$ee$apiclient_apiclient.userAgent_;
19768
+ };
19755
19769
  module$contents$ee$apiclient_apiclient.initialize = function(apiBaseUrl, tileBaseUrl, xsrfToken, project) {
19756
19770
  apiBaseUrl != null ? module$contents$ee$apiclient_apiclient.apiBaseUrl_ = apiBaseUrl : module$contents$ee$apiclient_apiclient.initialized_ || (module$contents$ee$apiclient_apiclient.apiBaseUrl_ = module$contents$ee$apiclient_apiclient.DEFAULT_API_BASE_URL_);
19757
19771
  tileBaseUrl != null ? module$contents$ee$apiclient_apiclient.tileBaseUrl_ = tileBaseUrl : module$contents$ee$apiclient_apiclient.initialized_ || (module$contents$ee$apiclient_apiclient.tileBaseUrl_ = module$contents$ee$apiclient_apiclient.DEFAULT_TILE_BASE_URL_);
@@ -19788,9 +19802,10 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
19788
19802
  var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
19789
19803
  body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
19790
19804
  method = method || "POST";
19791
- var headers = {"Content-Type":contentType}, version = "1.6.11";
19792
- version === "1.6.11" && (version = "latest");
19805
+ var headers = {"Content-Type":contentType}, version = "1.6.13";
19806
+ version === "1.6.13" && (version = "latest");
19793
19807
  headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
19808
+ module$contents$ee$apiclient_apiclient.userAgent_ && (headers["User-Agent"] = module$contents$ee$apiclient_apiclient.userAgent_);
19794
19809
  var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
19795
19810
  if (authToken != null) {
19796
19811
  headers.Authorization = authToken;
@@ -19899,7 +19914,7 @@ module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_ = function(callback)
19899
19914
  callback();
19900
19915
  };
19901
19916
  (function() {
19902
- goog.isObject(goog.global.default_gsi) ? done() : goog.net.jsloader.safeLoad(module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$m1153655765$99)).addCallback(done);
19917
+ goog.isObject(goog.global.default_gsi) ? done() : goog.net.jsloader.safeLoad(module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$m1153655765$101)).addCallback(done);
19903
19918
  })();
19904
19919
  };
19905
19920
  module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, error, result) {
@@ -19917,21 +19932,21 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
19917
19932
  }
19918
19933
  };
19919
19934
  module$contents$ee$apiclient_apiclient.makeRequest_ = function(params) {
19920
- for (var request = new goog.Uri.QueryData(), $jscomp$iter$48 = (0,$jscomp.makeIterator)(Object.entries(params)), $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next(); !$jscomp$key$m1153655765$101$.done; $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next()) {
19921
- var $jscomp$destructuring$var48 = (0,$jscomp.makeIterator)($jscomp$key$m1153655765$101$.value), name = $jscomp$destructuring$var48.next().value, item = $jscomp$destructuring$var48.next().value;
19935
+ for (var request = new goog.Uri.QueryData(), $jscomp$iter$48 = (0,$jscomp.makeIterator)(Object.entries(params)), $jscomp$key$m1153655765$103$ = $jscomp$iter$48.next(); !$jscomp$key$m1153655765$103$.done; $jscomp$key$m1153655765$103$ = $jscomp$iter$48.next()) {
19936
+ var $jscomp$destructuring$var48 = (0,$jscomp.makeIterator)($jscomp$key$m1153655765$103$.value), name = $jscomp$destructuring$var48.next().value, item = $jscomp$destructuring$var48.next().value;
19922
19937
  request.set(name, item);
19923
19938
  }
19924
19939
  return request;
19925
19940
  };
19926
19941
  module$contents$ee$apiclient_apiclient.setupMockSend = function(calls) {
19927
- function getResponse(url, method, data) {
19942
+ function getResponse(url, method, data, headers) {
19928
19943
  url = url.replace(apiBaseUrl, "").replace(module$exports$ee$apiVersion.V1 + "/projects/" + module$contents$ee$apiclient_apiclient.DEFAULT_PROJECT_ + "/", "");
19929
19944
  if (url in calls) {
19930
19945
  var response = calls[url];
19931
19946
  } else {
19932
19947
  throw Error(url + " mock response not specified");
19933
19948
  }
19934
- typeof response === "function" && (response = response(url, method, data));
19949
+ typeof response === "function" && (response = response(url, method, data, headers));
19935
19950
  typeof response === "string" && (response = {text:response, status:200, contentType:"application/json; charset=utf-8"});
19936
19951
  if (typeof response.text !== "string") {
19937
19952
  throw Error(url + " mock response missing/invalid text");
@@ -19943,9 +19958,9 @@ module$contents$ee$apiclient_apiclient.setupMockSend = function(calls) {
19943
19958
  }
19944
19959
  calls = calls ? module$contents$goog$object_clone(calls) : {};
19945
19960
  var apiBaseUrl;
19946
- goog.net.XhrIo.send = function(url, callback, method, data) {
19961
+ goog.net.XhrIo.send = function(url, callback, method, data, headers) {
19947
19962
  apiBaseUrl = apiBaseUrl || module$contents$ee$apiclient_apiclient.apiBaseUrl_;
19948
- var responseData = getResponse(url, method, data), e = new function() {
19963
+ var responseData = getResponse(url, method, data, headers), e = new function() {
19949
19964
  this.target = {};
19950
19965
  }();
19951
19966
  e.target.getResponseText = function() {
@@ -19961,19 +19976,21 @@ module$contents$ee$apiclient_apiclient.setupMockSend = function(calls) {
19961
19976
  return new goog.net.XhrIo();
19962
19977
  };
19963
19978
  var fakeXmlHttp = function() {
19979
+ this.requestHeaders_ = {};
19964
19980
  };
19965
19981
  fakeXmlHttp.prototype.open = function(method, urlIn) {
19966
19982
  apiBaseUrl = apiBaseUrl || module$contents$ee$apiclient_apiclient.apiBaseUrl_;
19967
19983
  this.url = urlIn;
19968
19984
  this.method = method;
19969
19985
  };
19970
- fakeXmlHttp.prototype.setRequestHeader = function() {
19986
+ fakeXmlHttp.prototype.setRequestHeader = function(key, value) {
19987
+ this.requestHeaders_[key] = value;
19971
19988
  };
19972
19989
  fakeXmlHttp.prototype.getResponseHeader = function(header) {
19973
19990
  return header === "Content-Type" ? this.contentType_ || null : null;
19974
19991
  };
19975
19992
  fakeXmlHttp.prototype.send = function(data) {
19976
- var responseData = getResponse(this.url, this.method, data);
19993
+ var responseData = getResponse(this.url, this.method, data, this.requestHeaders_);
19977
19994
  this.responseText = responseData.text;
19978
19995
  this.status = typeof responseData.status === "function" ? responseData.status() : responseData.status;
19979
19996
  this.contentType_ = responseData.contentType;
@@ -20007,6 +20024,7 @@ module$contents$ee$apiclient_apiclient.apiBaseUrl_ = null;
20007
20024
  module$contents$ee$apiclient_apiclient.tileBaseUrl_ = null;
20008
20025
  module$contents$ee$apiclient_apiclient.xsrfToken_ = null;
20009
20026
  module$contents$ee$apiclient_apiclient.appIdToken_ = null;
20027
+ module$contents$ee$apiclient_apiclient.userAgent_ = null;
20010
20028
  module$contents$ee$apiclient_apiclient.paramAugmenter_ = goog.functions.identity;
20011
20029
  module$contents$ee$apiclient_apiclient.authToken_ = null;
20012
20030
  module$contents$ee$apiclient_apiclient.authTokenExpiration_ = null;
@@ -20073,6 +20091,8 @@ ee.apiclient.setAuthToken = module$contents$ee$apiclient_apiclient.setAuthToken;
20073
20091
  ee.apiclient.clearAuthToken = module$contents$ee$apiclient_apiclient.clearAuthToken;
20074
20092
  ee.apiclient.setAuthTokenRefresher = module$contents$ee$apiclient_apiclient.setAuthTokenRefresher;
20075
20093
  ee.apiclient.setAppIdToken = module$contents$ee$apiclient_apiclient.setAppIdToken;
20094
+ ee.apiclient.setUserAgent = module$contents$ee$apiclient_apiclient.setUserAgent;
20095
+ ee.apiclient.getUserAgent = module$contents$ee$apiclient_apiclient.getUserAgent;
20076
20096
  ee.apiclient.mergeAuthScopes = module$contents$ee$apiclient_apiclient.mergeAuthScopes_;
20077
20097
  ee.apiclient.setupMockSend = module$contents$ee$apiclient_apiclient.setupMockSend;
20078
20098
  ee.apiclient.setParamAugmenter = module$contents$ee$apiclient_apiclient.setParamAugmenter;
@@ -21498,6 +21518,10 @@ ee.data.getAuthScopes = module$contents$ee$apiclient_apiclient.getAuthScopes;
21498
21518
  goog.exportSymbol("ee.data.getAuthScopes", ee.data.getAuthScopes);
21499
21519
  ee.data.setDeadline = module$contents$ee$apiclient_apiclient.setDeadline;
21500
21520
  goog.exportSymbol("ee.data.setDeadline", ee.data.setDeadline);
21521
+ ee.data.setUserAgent = module$contents$ee$apiclient_apiclient.setUserAgent;
21522
+ goog.exportSymbol("ee.data.setUserAgent", ee.data.setUserAgent);
21523
+ ee.data.getUserAgent = module$contents$ee$apiclient_apiclient.getUserAgent;
21524
+ goog.exportSymbol("ee.data.getUserAgent", ee.data.getUserAgent);
21501
21525
  ee.data.setParamAugmenter = module$contents$ee$apiclient_apiclient.setParamAugmenter;
21502
21526
  goog.exportSymbol("ee.data.setParamAugmenter", ee.data.setParamAugmenter);
21503
21527
  ee.data.initialize = module$contents$ee$apiclient_apiclient.initialize;
@@ -27312,29 +27336,28 @@ ee.data.Profiler.Format.prototype.toString = function() {
27312
27336
  ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
27313
27337
  ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
27314
27338
  (function() {
27315
- var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.classifier.toAsset ee.batch.Export.video.toDrive ee.batch.Export.table.toFeatureView ee.batch.Export.table.toDrive ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toDrive ee.batch.Export.table.toBigQuery ee.batch.Export.map.toCloudStorage ee.batch.Export.table.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.image.toCloudStorage ee.batch.Export.image.toAsset ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterDate ee.Collection.prototype.iterate ee.Collection.prototype.limit ee.Collection.prototype.filter ee.Collection.prototype.map ee.Collection.prototype.sort ee.Collection.prototype.filterBounds ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.data.createFolder ee.data.getTaskListWithLimit ee.data.renameAsset ee.data.listOperations ee.data.listFeatures ee.data.getOperation ee.data.startTableIngestion ee.data.cancelOperation ee.data.computeValue ee.data.copyAsset ee.data.getVideoThumbId ee.data.deleteAsset ee.data.getThumbId ee.data.authenticateViaOauth ee.data.cancelTask ee.data.getAsset ee.data.getAssetAcl ee.data.getFilmstripThumbId ee.data.getInfo ee.data.makeThumbUrl ee.data.updateAsset ee.data.updateTask ee.data.authenticate ee.data.getList ee.data.listAssets ee.data.authenticateViaPopup ee.data.getDownloadId ee.data.authenticateViaPrivateKey ee.data.startProcessing ee.data.makeDownloadUrl ee.data.getTableDownloadId ee.data.setAssetAcl ee.data.makeTableDownloadUrl ee.data.listImages ee.data.setAssetProperties ee.data.newTaskId ee.data.listBuckets ee.data.getAssetRootQuota ee.data.setDefaultWorkloadTag ee.data.getAssetRoots ee.data.getMapId ee.data.getWorkloadTag ee.data.getTileUrl ee.data.startIngestion ee.data.setWorkloadTag ee.data.createAsset ee.data.createAssetHome ee.data.getTaskStatus ee.data.getFeatureViewTilesKey ee.data.resetWorkloadTag ee.data.getTaskList ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.decodeCloudApi ee.Deserializer.fromJSON ee.Dictionary ee.apply ee.initialize ee.TILE_SIZE ee.reset ee.Algorithms ee.InitState ee.call ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getMapId ee.Feature.prototype.getInfo ee.Feature.prototype.getMap ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMap ee.FeatureCollection ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMapId ee.Filter.inList ee.Filter.lt ee.Filter.prototype.not ee.Filter.and ee.Filter ee.Filter.or ee.Filter.bounds ee.Filter.gte ee.Filter.eq ee.Filter.metadata ee.Filter.date ee.Filter.gt ee.Filter.neq ee.Filter.lte ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry ee.Geometry.Rectangle ee.Geometry.LinearRing ee.Geometry.MultiPolygon ee.Geometry.prototype.serialize ee.Geometry.MultiLineString ee.Geometry.Point ee.Geometry.BBox ee.Geometry.prototype.toGeoJSON ee.Geometry.prototype.toGeoJSONString ee.Image.rgb ee.Image.prototype.getMapId ee.Image.prototype.clip ee.Image.prototype.getThumbId ee.Image.prototype.getThumbURL ee.Image.prototype.getMap ee.Image ee.Image.prototype.getDownloadURL ee.Image.cat ee.Image.prototype.getInfo ee.Image.prototype.select ee.Image.prototype.expression ee.Image.prototype.rename ee.ImageCollection.prototype.getMapId ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getMap ee.List ee.Number ee.Serializer.toJSON ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toReadableCloudApiJSON ee.Serializer.encode ee.String ee.Terrain".split(" "),
27316
- orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], ["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_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),
27317
- "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(" "), "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(" "),
27318
- "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(" "), ["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(" "),
27319
- "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(" "), ["name", "operator", "value"], ["start", "opt_end"], ["algorithm", "opt_first"], ["max",
27320
- "opt_property", "opt_ascending"], ["filter"], ["algorithm", "opt_dropNulls"], ["property", "opt_ascending"], ["geometry"], ["callback"], ["func", "var_args"], ["opt_callback"], ["legacy"], ["path", "opt_force", "opt_callback"], ["opt_limit", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["opt_limit", "opt_callback"], ["asset", "params", "opt_callback"], ["operationName", "opt_callback"], ["taskId", "request", "opt_callback"], ["operationName", "opt_callback"], ["obj", "opt_callback"],
27321
- ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["params", "opt_callback"], ["assetId", "opt_callback"], ["params", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["taskId", "opt_callback"], ["id", "opt_callback"], ["assetId", "opt_callback"], ["params", "opt_callback"], ["id", "opt_callback"], ["id"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "action", "opt_callback"], ["clientId",
27322
- "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["opt_success", "opt_error"], ["params", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["taskId", "params", "opt_callback"], ["id"], ["params", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["id"], ["parent", "opt_params", "opt_callback"], ["assetId", "properties", "opt_callback"], ["opt_count",
27323
- "opt_callback"], ["project", "opt_callback"], ["rootId", "opt_callback"], ["tag"], ["opt_callback"], ["params", "opt_callback"], [], ["id", "x", "y", "z"], ["taskId", "request", "opt_callback"], ["tag"], ["value", "opt_path", "opt_force", "opt_properties", "opt_callback"], ["requestedId", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["opt_resetDefault"], ["opt_callback"], ["date", "opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], ["func", "namedArgs"],
27324
- "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], [], [], [], ["func", "var_args"], ["var_args"], [], ["geometry", "opt_properties"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["args", "opt_column"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams",
27325
- "opt_callback"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], [], ["var_args"], ["opt_filter"], ["var_args"], ["geometry", "opt_errorMargin"], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["start", "opt_end"], ["name", "value"], ["name", "value"], ["name", "value"], ["namedArgs"], ["var_args"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError",
27326
- "opt_evenOdd"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["legacy"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj"], ["west", "south", "east", "north"], [], [], ["r", "g", "b"], ["opt_visParams", "opt_callback"], ["geometry"], ["params", "opt_callback"], ["params", "opt_callback"],
27327
- ["opt_visParams", "opt_callback"], ["opt_args"], ["params", "opt_callback"], ["var_args"], ["opt_callback"], ["var_args"], ["expression", "opt_map"], ["var_args"], ["opt_visParams", "opt_callback"], ["args"], ["params", "opt_callback"], ["params", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["opt_callback"], ["selectors", "opt_names"], [], ["opt_visParams", "opt_callback"], ["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"],
27328
- ["obj"], ["obj", "opt_isCompound"], ["string"], []];
27329
- [ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.video.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.map.toCloudStorage,
27330
- 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, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterDate, ee.Collection.prototype.iterate, ee.Collection.prototype.limit, ee.Collection.prototype.filter, ee.Collection.prototype.map, ee.Collection.prototype.sort, ee.Collection.prototype.filterBounds, ee.ComputedObject.prototype.evaluate,
27331
- ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.data.createFolder, ee.data.getTaskListWithLimit, ee.data.renameAsset, ee.data.listOperations, ee.data.listFeatures, ee.data.getOperation, ee.data.startTableIngestion, ee.data.cancelOperation, ee.data.computeValue, ee.data.copyAsset, ee.data.getVideoThumbId, ee.data.deleteAsset, ee.data.getThumbId, ee.data.authenticateViaOauth, ee.data.cancelTask, ee.data.getAsset, ee.data.getAssetAcl,
27332
- ee.data.getFilmstripThumbId, ee.data.getInfo, ee.data.makeThumbUrl, ee.data.updateAsset, ee.data.updateTask, ee.data.authenticate, ee.data.getList, ee.data.listAssets, ee.data.authenticateViaPopup, ee.data.getDownloadId, ee.data.authenticateViaPrivateKey, ee.data.startProcessing, ee.data.makeDownloadUrl, ee.data.getTableDownloadId, ee.data.setAssetAcl, ee.data.makeTableDownloadUrl, ee.data.listImages, ee.data.setAssetProperties, ee.data.newTaskId, ee.data.listBuckets, ee.data.getAssetRootQuota,
27333
- ee.data.setDefaultWorkloadTag, ee.data.getAssetRoots, ee.data.getMapId, ee.data.getWorkloadTag, ee.data.getTileUrl, ee.data.startIngestion, ee.data.setWorkloadTag, ee.data.createAsset, ee.data.createAssetHome, ee.data.getTaskStatus, ee.data.getFeatureViewTilesKey, ee.data.resetWorkloadTag, ee.data.getTaskList, ee.Date, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromJSON, ee.Dictionary, ee.apply, ee.initialize, ee.TILE_SIZE, ee.reset,
27334
- ee.Algorithms, ee.InitState, ee.call, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getMapId, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMapId, ee.Filter.inList, ee.Filter.lt, ee.Filter.prototype.not, ee.Filter.and, ee.Filter,
27335
- ee.Filter.or, ee.Filter.bounds, ee.Filter.gte, ee.Filter.eq, ee.Filter.metadata, ee.Filter.date, ee.Filter.gt, ee.Filter.neq, ee.Filter.lte, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.MultiPoint, ee.Geometry.LineString, ee.Geometry.Polygon, ee.Geometry, ee.Geometry.Rectangle, ee.Geometry.LinearRing, ee.Geometry.MultiPolygon, ee.Geometry.prototype.serialize, ee.Geometry.MultiLineString, ee.Geometry.Point, ee.Geometry.BBox, ee.Geometry.prototype.toGeoJSON, ee.Geometry.prototype.toGeoJSONString,
27336
- ee.Image.rgb, ee.Image.prototype.getMapId, ee.Image.prototype.clip, ee.Image.prototype.getThumbId, ee.Image.prototype.getThumbURL, ee.Image.prototype.getMap, ee.Image, ee.Image.prototype.getDownloadURL, ee.Image.cat, ee.Image.prototype.getInfo, ee.Image.prototype.select, ee.Image.prototype.expression, ee.Image.prototype.rename, ee.ImageCollection.prototype.getMapId, ee.ImageCollection, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.linkCollection,
27337
- ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getMap, ee.List, ee.Number, ee.Serializer.toJSON, ee.Serializer.toReadableJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encode, ee.String, ee.Terrain].forEach(function(fn, i) {
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) {
27338
27361
  fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
27339
27362
  });
27340
27363
  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.11",
3
+ "version": "1.6.13",
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.11';
27
+ const API_CLIENT_VERSION = '1.6.13';
28
28
 
29
29
  exports.VERSION = apiVersion.VERSION;
30
30
  exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
@@ -380,6 +380,9 @@ class BatchRequestService extends PromiseRequestService {
380
380
  if (authToken != null) {
381
381
  request.push('Authorization: ' + authToken);
382
382
  }
383
+ if (apiclient.userAgent_) {
384
+ request.push('User-Agent: ' + apiclient.userAgent_);
385
+ }
383
386
  const body = params.body ? JSON.stringify(params.body) : '';
384
387
  const message = `${request.join('\r\n')}\r\n\r\n${body}`;
385
388
  return /** @type {?} */([message, responseCtor]);
@@ -672,6 +675,24 @@ apiclient.setAppIdToken = function(token) {
672
675
  };
673
676
 
674
677
 
678
+ /**
679
+ * Sets the user agent for API requests.
680
+ * @param {string} userAgent The user agent string.
681
+ */
682
+ apiclient.setUserAgent = function(userAgent) {
683
+ apiclient.userAgent_ = userAgent;
684
+ };
685
+
686
+
687
+ /**
688
+ * Returns the user agent for API requests.
689
+ * @return {?string}
690
+ */
691
+ apiclient.getUserAgent = function() {
692
+ return apiclient.userAgent_;
693
+ };
694
+
695
+
675
696
  ////////////////////////////////////////////////////////////////////////////////
676
697
  // Initialization. //
677
698
  ////////////////////////////////////////////////////////////////////////////////
@@ -836,6 +857,9 @@ apiclient.send = function(
836
857
  let version = API_CLIENT_VERSION;
837
858
  headers[apiclient.API_CLIENT_VERSION_HEADER] = 'ee-js/' + version;
838
859
  }
860
+ if (apiclient.userAgent_) {
861
+ headers['User-Agent'] = apiclient.userAgent_;
862
+ }
839
863
 
840
864
  // Set up client-side authorization.
841
865
  const authToken = apiclient.getAuthToken();
@@ -1250,7 +1274,7 @@ apiclient.setupMockSend = function(calls) {
1250
1274
  // If it's a function, call the function and use its return value.
1251
1275
  // If it's an object it has fields specifying more details.
1252
1276
  // If there's nothing set for this url, throw.
1253
- function getResponse(url, method, data) {
1277
+ function getResponse(url, method, data, headers) {
1254
1278
  url =
1255
1279
  url.replace(apiBaseUrl, '')
1256
1280
  .replace(
@@ -1263,7 +1287,7 @@ apiclient.setupMockSend = function(calls) {
1263
1287
  throw new Error(url + ' mock response not specified');
1264
1288
  }
1265
1289
  if (typeof response === 'function') {
1266
- response = response(url, method, data);
1290
+ response = response(url, method, data, headers);
1267
1291
  }
1268
1292
  if (typeof response === 'string') {
1269
1293
  response = {
@@ -1284,9 +1308,9 @@ apiclient.setupMockSend = function(calls) {
1284
1308
  }
1285
1309
 
1286
1310
  // Mock XhrIo.send for async calls.
1287
- XhrIo.send = function(url, callback, method, data) {
1311
+ XhrIo.send = function(url, callback, method, data, headers) {
1288
1312
  apiBaseUrl = apiBaseUrl || apiclient.apiBaseUrl_;
1289
- const responseData = getResponse(url, method, data);
1313
+ const responseData = getResponse(url, method, data, headers);
1290
1314
  // An anonymous class to simulate an event. Closure doesn't like this.
1291
1315
  /** @constructor */
1292
1316
  const fakeEvent = function() {
@@ -1321,13 +1345,16 @@ apiclient.setupMockSend = function(calls) {
1321
1345
  /** @type {string} */ this.contentType_;
1322
1346
  /** @type {string} */ this.responseText;
1323
1347
  /** @type {number} */ this.status;
1348
+ /** @type {!Object<string, string>} */ this.requestHeaders_ = {};
1324
1349
  };
1325
1350
  fakeXmlHttp.prototype.open = function(method, urlIn) {
1326
1351
  apiBaseUrl = apiBaseUrl || apiclient.apiBaseUrl_;
1327
1352
  this.url = urlIn;
1328
1353
  this.method = method;
1329
1354
  };
1330
- fakeXmlHttp.prototype.setRequestHeader = function() {};
1355
+ fakeXmlHttp.prototype.setRequestHeader = function(key, value) {
1356
+ this.requestHeaders_[key] = value;
1357
+ };
1331
1358
  fakeXmlHttp.prototype.getResponseHeader = function(header) {
1332
1359
  if (header === 'Content-Type') {
1333
1360
  return this.contentType_ || null;
@@ -1336,7 +1363,8 @@ apiclient.setupMockSend = function(calls) {
1336
1363
  }
1337
1364
  };
1338
1365
  fakeXmlHttp.prototype.send = function(data) {
1339
- const responseData = getResponse(this.url, this.method, data);
1366
+ const responseData =
1367
+ getResponse(this.url, this.method, data, this.requestHeaders_);
1340
1368
  this.responseText = responseData.text;
1341
1369
  this.status = typeof responseData.status === 'function' ?
1342
1370
  responseData.status() :
@@ -1482,6 +1510,13 @@ apiclient.xsrfToken_ = null;
1482
1510
  apiclient.appIdToken_ = null;
1483
1511
 
1484
1512
 
1513
+ /**
1514
+ * A string to pass as User-Agent header in XHRs.
1515
+ * @private {?string}
1516
+ */
1517
+ apiclient.userAgent_ = null;
1518
+
1519
+
1485
1520
  /**
1486
1521
  * A function used to transform parameters right before they are sent to the
1487
1522
  * server. Takes the URL of the request as the second argument.
@@ -1781,6 +1816,8 @@ exports.setAuthToken = apiclient.setAuthToken;
1781
1816
  exports.clearAuthToken = apiclient.clearAuthToken;
1782
1817
  exports.setAuthTokenRefresher = apiclient.setAuthTokenRefresher;
1783
1818
  exports.setAppIdToken = apiclient.setAppIdToken;
1819
+ exports.setUserAgent = apiclient.setUserAgent;
1820
+ exports.getUserAgent = apiclient.getUserAgent;
1784
1821
  exports.mergeAuthScopes = apiclient.mergeAuthScopes_;
1785
1822
 
1786
1823
  exports.setupMockSend = apiclient.setupMockSend;
package/src/data.js CHANGED
@@ -266,6 +266,10 @@ ee.data.getAuthScopes = ee.apiclient.getAuthScopes;
266
266
  goog.exportSymbol('ee.data.getAuthScopes', ee.data.getAuthScopes);
267
267
  ee.data.setDeadline = ee.apiclient.setDeadline;
268
268
  goog.exportSymbol('ee.data.setDeadline', ee.data.setDeadline);
269
+ ee.data.setUserAgent = ee.apiclient.setUserAgent;
270
+ goog.exportSymbol('ee.data.setUserAgent', ee.data.setUserAgent);
271
+ ee.data.getUserAgent = ee.apiclient.getUserAgent;
272
+ goog.exportSymbol('ee.data.getUserAgent', ee.data.getUserAgent);
269
273
 
270
274
  // The following symbol is exported because it is used in the Code Editor, much
271
275
  // like ee.data.setExpressionAugmenter above is.