@google/earthengine 0.1.392 → 0.1.393
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/browser.js +51 -68
- package/build/ee_api_js.js +572 -572
- package/build/ee_api_js_debug.js +29 -46
- package/build/ee_api_js_npm.js +51 -68
- package/build/main.js +51 -68
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +25 -23
- package/src/encodable_batch.js +6 -0
- package/.tmp/BUILD +0 -699
- package/.tmp/METADATA +0 -23
- package/.tmp/VERSION_BUILD +0 -47
package/build/main.js
CHANGED
|
@@ -1202,7 +1202,7 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1202
1202
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1203
1203
|
};
|
|
1204
1204
|
}, "es8", "es3");
|
|
1205
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1};
|
|
1205
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1};
|
|
1206
1206
|
/*
|
|
1207
1207
|
|
|
1208
1208
|
Copyright The Closure Library Authors.
|
|
@@ -2862,12 +2862,12 @@ module$exports$tslib.__await = function(v) {
|
|
|
2862
2862
|
return this instanceof module$exports$tslib.__await ? (this.v = v, this) : new module$exports$tslib.__await(v);
|
|
2863
2863
|
};
|
|
2864
2864
|
module$exports$tslib.__asyncGenerator = function(thisArg, _arguments, generator) {
|
|
2865
|
-
function verb(n) {
|
|
2865
|
+
function verb(n, f) {
|
|
2866
2866
|
g[n] && (i[n] = function(v) {
|
|
2867
2867
|
return new Promise(function(a, b) {
|
|
2868
2868
|
1 < q.push([n, v, a, b]) || resume(n, v);
|
|
2869
2869
|
});
|
|
2870
|
-
});
|
|
2870
|
+
}, f && (i[n] = f(i[n])));
|
|
2871
2871
|
}
|
|
2872
2872
|
function resume(n, v) {
|
|
2873
2873
|
try {
|
|
@@ -2892,7 +2892,11 @@ module$exports$tslib.__asyncGenerator = function(thisArg, _arguments, generator)
|
|
|
2892
2892
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2893
2893
|
}
|
|
2894
2894
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
2895
|
-
return i = {}, verb("next"), verb("throw"), verb("return"
|
|
2895
|
+
return i = {}, verb("next"), verb("throw"), verb("return", function(f) {
|
|
2896
|
+
return function(v) {
|
|
2897
|
+
return Promise.resolve(v).then(f, reject);
|
|
2898
|
+
};
|
|
2899
|
+
}), i[Symbol.asyncIterator] = function() {
|
|
2896
2900
|
return this;
|
|
2897
2901
|
}, i;
|
|
2898
2902
|
};
|
|
@@ -2967,6 +2971,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles = !1;
|
|
|
2967
2971
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles = !1;
|
|
2968
2972
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable = !1;
|
|
2969
2973
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable = !1;
|
|
2974
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable = !1;
|
|
2970
2975
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
2971
2976
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
2972
2977
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -2975,6 +2980,7 @@ goog.flags = {};
|
|
|
2975
2980
|
var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1, goog.FLAGS_STAGING_DEFAULT);
|
|
2976
2981
|
goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable : goog.readFlagInternalDoNotUseOrElse(610401301, !1);
|
|
2977
2982
|
goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable : goog.readFlagInternalDoNotUseOrElse(899588437, !1);
|
|
2983
|
+
goog.flags.JSPB_STOP_USING_REPEATED_FIELD_SETS_FROM_GENCODE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable : goog.readFlagInternalDoNotUseOrElse(188588736, goog.DEBUG);
|
|
2978
2984
|
goog.flags.TESTONLY_DISABLED_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483644, !1);
|
|
2979
2985
|
goog.flags.TESTONLY_DEBUG_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG);
|
|
2980
2986
|
goog.flags.TESTONLY_STAGING_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) : goog.readFlagInternalDoNotUseOrElse(2147483646, module$contents$goog$flags_STAGING);
|
|
@@ -6694,10 +6700,6 @@ goog.html.SafeUrl.fromBlob = function(blob) {
|
|
|
6694
6700
|
var url = goog.html.SafeUrl.isSafeMimeType(blob.type) ? goog.fs.url.createObjectUrl(blob) : goog.html.SafeUrl.INNOCUOUS_STRING;
|
|
6695
6701
|
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url);
|
|
6696
6702
|
};
|
|
6697
|
-
goog.html.SafeUrl.revokeObjectUrl = function(safeUrl) {
|
|
6698
|
-
var url = safeUrl.toString();
|
|
6699
|
-
url !== goog.html.SafeUrl.INNOCUOUS_STRING && goog.fs.url.revokeObjectUrl(url);
|
|
6700
|
-
};
|
|
6701
6703
|
goog.html.DATA_URL_PATTERN_ = /^data:(.*);base64,[a-z0-9+\/]+=*$/i;
|
|
6702
6704
|
goog.html.SafeUrl.tryFromDataUrl = function(dataUrl) {
|
|
6703
6705
|
dataUrl = String(dataUrl);
|
|
@@ -6707,26 +6709,6 @@ goog.html.SafeUrl.tryFromDataUrl = function(dataUrl) {
|
|
|
6707
6709
|
goog.html.SafeUrl.fromDataUrl = function(dataUrl) {
|
|
6708
6710
|
return goog.html.SafeUrl.tryFromDataUrl(dataUrl) || goog.html.SafeUrl.INNOCUOUS_URL;
|
|
6709
6711
|
};
|
|
6710
|
-
goog.html.SIP_URL_PATTERN_ = RegExp("^sip[s]?:[+a-z0-9_.!$%&'*\\/=^`{|}~-]+@([a-z0-9-]+\\.)+[a-z0-9]{2,63}$", "i");
|
|
6711
|
-
goog.html.SafeUrl.fromSipUrl = function(sipUrl) {
|
|
6712
|
-
goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(sipUrl)) || (sipUrl = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6713
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(sipUrl);
|
|
6714
|
-
};
|
|
6715
|
-
goog.html.SafeUrl.sanitizeChromeExtensionUrl = function(url, extensionId) {
|
|
6716
|
-
return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//, url, extensionId);
|
|
6717
|
-
};
|
|
6718
|
-
goog.html.SafeUrl.sanitizeExtensionUrl_ = function(scheme, url, extensionId) {
|
|
6719
|
-
var matches = scheme.exec(url);
|
|
6720
|
-
if (matches) {
|
|
6721
|
-
var extractedExtensionId = matches[1];
|
|
6722
|
-
-1 == (extensionId instanceof goog.string.Const ? [goog.string.Const.unwrap(extensionId)] : extensionId.map(function unwrap(x) {
|
|
6723
|
-
return goog.string.Const.unwrap(x);
|
|
6724
|
-
})).indexOf(extractedExtensionId) && (url = goog.html.SafeUrl.INNOCUOUS_STRING);
|
|
6725
|
-
} else {
|
|
6726
|
-
url = goog.html.SafeUrl.INNOCUOUS_STRING;
|
|
6727
|
-
}
|
|
6728
|
-
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(url);
|
|
6729
|
-
};
|
|
6730
6712
|
goog.html.SafeUrl.fromTrustedResourceUrl = function(trustedResourceUrl) {
|
|
6731
6713
|
return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(trustedResourceUrl));
|
|
6732
6714
|
};
|
|
@@ -7305,8 +7287,8 @@ function module$contents$safevalues$internals$url_impl_createUrlInternal(url) {
|
|
|
7305
7287
|
return (0,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse)(url);
|
|
7306
7288
|
}
|
|
7307
7289
|
module$exports$safevalues$internals$url_impl.createUrlInternal = module$contents$safevalues$internals$url_impl_createUrlInternal;
|
|
7308
|
-
module$exports$safevalues$internals$url_impl.ABOUT_BLANK =
|
|
7309
|
-
module$exports$safevalues$internals$url_impl.INNOCUOUS_URL =
|
|
7290
|
+
module$exports$safevalues$internals$url_impl.ABOUT_BLANK = module$contents$safevalues$internals$url_impl_createUrlInternal("about:blank");
|
|
7291
|
+
module$exports$safevalues$internals$url_impl.INNOCUOUS_URL = module$contents$safevalues$internals$url_impl_createUrlInternal("about:invalid#zClosurez");
|
|
7310
7292
|
function module$contents$safevalues$internals$url_impl_isUrl(value) {
|
|
7311
7293
|
return value instanceof goog.html.SafeUrl;
|
|
7312
7294
|
}
|
|
@@ -7488,10 +7470,11 @@ goog.dom.safe.createImageFromBlob = function(blob) {
|
|
|
7488
7470
|
if (!/^image\/.*/g.test(blob.type)) {
|
|
7489
7471
|
throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");
|
|
7490
7472
|
}
|
|
7491
|
-
var objectUrl = goog.global.URL.createObjectURL(blob), image = new goog.global.Image()
|
|
7492
|
-
image.onload = function() {
|
|
7473
|
+
var objectUrl = goog.global.URL.createObjectURL(blob), image = new goog.global.Image(), revokeFn = function() {
|
|
7493
7474
|
goog.global.URL.revokeObjectURL(objectUrl);
|
|
7494
7475
|
};
|
|
7476
|
+
image.onload = revokeFn;
|
|
7477
|
+
image.onerror = revokeFn;
|
|
7495
7478
|
image.src = objectUrl;
|
|
7496
7479
|
return image;
|
|
7497
7480
|
};
|
|
@@ -17586,7 +17569,7 @@ function module$contents$safevalues$builders$url_builders_sanitizeUrl(url, allow
|
|
|
17586
17569
|
allowedSchemes = void 0 === allowedSchemes ? module$contents$safevalues$builders$url_builders_DEFAULT_SCHEMES : allowedSchemes;
|
|
17587
17570
|
var sanitizedUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl(url, allowedSchemes);
|
|
17588
17571
|
void 0 === sanitizedUrl && module$contents$safevalues$builders$url_builders_triggerCallbacks(url.toString());
|
|
17589
|
-
return sanitizedUrl ||
|
|
17572
|
+
return sanitizedUrl || module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
17590
17573
|
}
|
|
17591
17574
|
module$exports$safevalues$builders$url_builders.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
17592
17575
|
function module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(source) {
|
|
@@ -17995,18 +17978,18 @@ module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanit
|
|
|
17995
17978
|
})}]];
|
|
17996
17979
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
17997
17980
|
new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES));
|
|
17998
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.lenientSanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
17981
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.lenientSanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["BUTTON"])), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
17999
17982
|
new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
18000
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id"]);
|
|
17983
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "name"]);
|
|
18001
17984
|
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
18002
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.
|
|
17985
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]]);
|
|
18003
17986
|
})));
|
|
18004
17987
|
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.superLenientSanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
18005
17988
|
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat("STYLE TITLE INPUT TEXTAREA BUTTON LABEL".split(" "));
|
|
18006
17989
|
})), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES), new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
18007
17990
|
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "tabindex", "contenteditable", "name"]);
|
|
18008
17991
|
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
18009
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.
|
|
17992
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]]);
|
|
18010
17993
|
})), new Set(["data-", "aria-"]));
|
|
18011
17994
|
var module$exports$safevalues$builders$html_sanitizer$html_sanitizer = {}, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/html_sanitizer.closure.js"};
|
|
18012
17995
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizer = function() {
|
|
@@ -18552,8 +18535,8 @@ module$exports$safevalues$index.unwrapStyle = module$contents$safevalues$interna
|
|
|
18552
18535
|
module$exports$safevalues$index.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
18553
18536
|
module$exports$safevalues$index.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
18554
18537
|
module$exports$safevalues$index.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
18555
|
-
module$exports$safevalues$index.ABOUT_BLANK =
|
|
18556
|
-
module$exports$safevalues$index.INNOCUOUS_URL =
|
|
18538
|
+
module$exports$safevalues$index.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
|
|
18539
|
+
module$exports$safevalues$index.INNOCUOUS_URL = module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
18557
18540
|
module$exports$safevalues$index.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
18558
18541
|
module$exports$safevalues$index.SafeUrl = goog.html.SafeUrl;
|
|
18559
18542
|
module$exports$safevalues$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
@@ -18621,8 +18604,8 @@ safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapS
|
|
|
18621
18604
|
safevalues.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
18622
18605
|
safevalues.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
18623
18606
|
safevalues.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
18624
|
-
safevalues.ABOUT_BLANK =
|
|
18625
|
-
safevalues.INNOCUOUS_URL =
|
|
18607
|
+
safevalues.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
|
|
18608
|
+
safevalues.INNOCUOUS_URL = module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
18626
18609
|
safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
18627
18610
|
safevalues.SafeUrl = goog.html.SafeUrl;
|
|
18628
18611
|
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
@@ -18635,7 +18618,7 @@ var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
18635
18618
|
ee.apiclient = {};
|
|
18636
18619
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18637
18620
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18638
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
18621
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.393";
|
|
18639
18622
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18640
18623
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18641
18624
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -18925,8 +18908,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
18925
18908
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
18926
18909
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
18927
18910
|
method = method || "POST";
|
|
18928
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
18929
|
-
"0.1.
|
|
18911
|
+
var headers = {"Content-Type":contentType}, version = "0.1.393";
|
|
18912
|
+
"0.1.393" === version && (version = "latest");
|
|
18930
18913
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
18931
18914
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
18932
18915
|
if (null != authToken) {
|
|
@@ -25544,7 +25527,7 @@ ee.layers.ImageTile.prototype.finishLoad = function() {
|
|
|
25544
25527
|
try {
|
|
25545
25528
|
var safeUrl = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(this.sourceData);
|
|
25546
25529
|
this.objectUrl_ = module$contents$safevalues$internals$url_impl_unwrapUrl(safeUrl);
|
|
25547
|
-
var imageUrl = this.objectUrl_ !==
|
|
25530
|
+
var imageUrl = this.objectUrl_ !== module$exports$safevalues$internals$url_impl.INNOCUOUS_URL.toString() ? this.objectUrl_ : this.sourceUrl;
|
|
25548
25531
|
} catch (e) {
|
|
25549
25532
|
imageUrl = this.sourceUrl;
|
|
25550
25533
|
}
|
|
@@ -26202,7 +26185,7 @@ ee.MapTileManager.Request_.prototype.start_ = function() {
|
|
|
26202
26185
|
if (200 <= xhrIo.getStatus() && 300 > xhrIo.getStatus()) {
|
|
26203
26186
|
try {
|
|
26204
26187
|
var objectUrl = module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource(xhrIo.getResponse()));
|
|
26205
|
-
var ok = objectUrl !==
|
|
26188
|
+
var ok = objectUrl !== module$exports$safevalues$internals$url_impl.INNOCUOUS_URL.toString();
|
|
26206
26189
|
} catch (e) {
|
|
26207
26190
|
}
|
|
26208
26191
|
}
|
|
@@ -26478,29 +26461,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
26478
26461
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
26479
26462
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
26480
26463
|
(function() {
|
|
26481
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.
|
|
26482
|
-
orderedParamLists = [["name", "
|
|
26483
|
-
["classifier", "opt_description", "opt_assetId", "opt_priority"], "image opt_description
|
|
26464
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.video.toCloudStorage ee.batch.Export.image.toCloudStorage ee.Collection.prototype.filter ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.Collection.prototype.filterDate ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.getInfo ee.data.deleteAsset ee.data.authenticate ee.data.getTileUrl ee.data.makeTableDownloadUrl ee.data.startTableIngestion ee.data.getWorkloadTag ee.data.getTaskListWithLimit ee.data.listOperations ee.data.getAssetAcl ee.data.listImages ee.data.getDownloadId ee.data.cancelOperation ee.data.getAssetRoots ee.data.authenticateViaPopup ee.data.getFeatureViewTilesKey ee.data.makeDownloadUrl ee.data.setWorkloadTag ee.data.getAsset ee.data.listFeatures ee.data.createAssetHome ee.data.setDefaultWorkloadTag ee.data.getInfo ee.data.getOperation ee.data.authenticateViaPrivateKey ee.data.createAsset ee.data.resetWorkloadTag ee.data.newTaskId ee.data.computeValue ee.data.cancelTask ee.data.updateAsset ee.data.getThumbId ee.data.getVideoThumbId ee.data.createFolder ee.data.setAssetAcl ee.data.updateTask ee.data.getTaskStatus ee.data.startIngestion ee.data.getList ee.data.getFilmstripThumbId ee.data.startProcessing ee.data.listBuckets ee.data.renameAsset ee.data.makeThumbUrl ee.data.setAssetProperties ee.data.listAssets ee.data.authenticateViaOauth ee.data.copyAsset ee.data.getMapId ee.data.getTableDownloadId ee.data.getTaskList ee.data.getAssetRootQuota ee.Date ee.Deserializer.decodeCloudApi ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Dictionary ee.apply ee.TILE_SIZE ee.initialize ee.reset ee.call ee.Algorithms ee.InitState ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.Filter.lt ee.Filter.prototype.not ee.Filter.neq ee.Filter.lte ee.Filter.gte ee.Filter.metadata ee.Filter.date ee.Filter.bounds ee.Filter ee.Filter.eq ee.Filter.and ee.Filter.or ee.Filter.inList ee.Filter.gt ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.Point ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSON ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSONString ee.Geometry.LineString ee.Geometry.LinearRing ee.Geometry.MultiPoint ee.Geometry.BBox ee.Geometry.Rectangle ee.Geometry.prototype.serialize ee.Geometry ee.Geometry.MultiPolygon ee.Image.prototype.getThumbId ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getMap ee.Image.prototype.rename ee.Image.prototype.getThumbURL ee.Image.prototype.getDownloadURL ee.Image.rgb ee.Image.cat ee.Image.prototype.select ee.Image ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.first ee.ImageCollection ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.List ee.Number ee.Serializer.toReadableJSON ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.toCloudApiJSON ee.Serializer.encodeCloudApi ee.String ee.Terrain".split(" "),
|
|
26465
|
+
orderedParamLists = [["name"], ["name", "namedArgs"], ["name", "var_args"], "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking 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(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
26466
|
+
["classifier", "opt_description", "opt_assetId", "opt_priority"], "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_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
26467
|
+
"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize 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_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(" "),
|
|
26484
26468
|
"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices 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_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(" "),
|
|
26485
|
-
"
|
|
26486
|
-
|
|
26487
|
-
"
|
|
26488
|
-
"opt_callback"], ["taskId", "
|
|
26489
|
-
"
|
|
26490
|
-
|
|
26491
|
-
|
|
26492
|
-
|
|
26493
|
-
|
|
26494
|
-
[
|
|
26495
|
-
|
|
26496
|
-
|
|
26497
|
-
ee.
|
|
26498
|
-
ee.data.
|
|
26499
|
-
ee.
|
|
26500
|
-
ee.
|
|
26501
|
-
ee.
|
|
26502
|
-
ee.
|
|
26503
|
-
ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getVideoThumbURL, ee.List, ee.Number, ee.Serializer.encode, ee.Serializer.encodeCloudApi, ee.Serializer.toJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toReadableJSON, ee.Serializer.toCloudApiJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
26469
|
+
["filter"], ["max", "opt_property", "opt_ascending"], ["property", "opt_ascending"], ["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["name", "operator", "value"], ["geometry"], ["start", "opt_end"], ["legacy"], ["callback"], ["func", "var_args"], ["opt_callback"], ["assetId", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id", "x", "y", "z"], ["id"], ["taskId", "request", "opt_callback"], [], ["opt_limit", "opt_callback"], ["opt_limit",
|
|
26470
|
+
"opt_callback"], ["assetId", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["params", "opt_callback"], ["operationName", "opt_callback"], ["opt_callback"], ["opt_success", "opt_error"], ["params", "opt_callback"], ["id"], ["tag"], ["id", "opt_callback"], ["asset", "params", "opt_callback"], ["requestedId", "opt_callback"], ["tag"], ["id", "opt_callback"], ["operationName", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["value",
|
|
26471
|
+
"opt_path", "opt_force", "opt_properties", "opt_callback"], ["opt_resetDefault"], ["opt_count", "opt_callback"], ["obj", "opt_callback"], ["taskId", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["path", "opt_force", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["taskId", "action", "opt_callback"], ["taskId", "opt_callback"], ["taskId", "request", "opt_callback"], ["params", "opt_callback"], ["params",
|
|
26472
|
+
"opt_callback"], ["taskId", "params", "opt_callback"], ["project", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["id"], ["assetId", "properties", "opt_callback"], ["parent", "opt_params", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["opt_callback"], ["rootId", "opt_callback"], ["date",
|
|
26473
|
+
"opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], ["func", "namedArgs"], [], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], ["func", "var_args"], [], [], ["var_args"], [], ["geometry", "opt_properties"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["args", "opt_column"], ["opt_format", "opt_selectors", "opt_filename",
|
|
26474
|
+
"opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["name", "value"], [], ["name", "value"], ["name", "value"], ["name", "value"], ["name", "operator", "value"], ["start", "opt_end"], ["geometry", "opt_errorMargin"], ["opt_filter"], ["name", "value"], ["var_args"], ["var_args"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["namedArgs"], ["var_args"], ["coords", "opt_proj"], ["coords", "opt_proj",
|
|
26475
|
+
"opt_geodesic", "opt_maxError", "opt_evenOdd"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj"], ["west", "south", "east", "north"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["legacy"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["params", "opt_callback"],
|
|
26476
|
+
["expression", "opt_map"], ["geometry"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["var_args"], ["params", "opt_callback"], ["params", "opt_callback"], ["r", "g", "b"], ["var_args"], ["var_args"], ["opt_args"], ["params", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], [], ["args"], ["opt_callback"],
|
|
26477
|
+
["selectors", "opt_names"], ["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
26478
|
+
[ee.ApiFunction.lookup, ee.ApiFunction._apply, ee.ApiFunction._call, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage,
|
|
26479
|
+
module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.image.toCloudStorage, ee.Collection.prototype.filter, ee.Collection.prototype.limit, ee.Collection.prototype.sort, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.Collection.prototype.filterDate, ee.ComputedObject.prototype.serialize,
|
|
26480
|
+
ee.ComputedObject.prototype.evaluate, ee.ComputedObject.prototype.aside, ee.ComputedObject.prototype.getInfo, ee.data.deleteAsset, ee.data.authenticate, ee.data.getTileUrl, ee.data.makeTableDownloadUrl, ee.data.startTableIngestion, ee.data.getWorkloadTag, ee.data.getTaskListWithLimit, ee.data.listOperations, ee.data.getAssetAcl, ee.data.listImages, ee.data.getDownloadId, ee.data.cancelOperation, ee.data.getAssetRoots, ee.data.authenticateViaPopup, ee.data.getFeatureViewTilesKey, ee.data.makeDownloadUrl,
|
|
26481
|
+
ee.data.setWorkloadTag, ee.data.getAsset, ee.data.listFeatures, ee.data.createAssetHome, ee.data.setDefaultWorkloadTag, ee.data.getInfo, ee.data.getOperation, ee.data.authenticateViaPrivateKey, ee.data.createAsset, ee.data.resetWorkloadTag, ee.data.newTaskId, ee.data.computeValue, ee.data.cancelTask, ee.data.updateAsset, ee.data.getThumbId, ee.data.getVideoThumbId, ee.data.createFolder, ee.data.setAssetAcl, ee.data.updateTask, ee.data.getTaskStatus, ee.data.startIngestion, ee.data.getList, ee.data.getFilmstripThumbId,
|
|
26482
|
+
ee.data.startProcessing, ee.data.listBuckets, ee.data.renameAsset, ee.data.makeThumbUrl, ee.data.setAssetProperties, ee.data.listAssets, ee.data.authenticateViaOauth, ee.data.copyAsset, ee.data.getMapId, ee.data.getTableDownloadId, ee.data.getTaskList, ee.data.getAssetRootQuota, ee.Date, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromJSON, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Dictionary, ee.apply, ee.TILE_SIZE, ee.initialize, ee.reset, ee.call, ee.Algorithms, ee.InitState,
|
|
26483
|
+
ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.FeatureCollection.prototype.select, ee.FeatureCollection, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getMapId, ee.Filter.lt, ee.Filter.prototype.not, ee.Filter.neq, ee.Filter.lte, ee.Filter.gte, ee.Filter.metadata, ee.Filter.date,
|
|
26484
|
+
ee.Filter.bounds, ee.Filter, ee.Filter.eq, ee.Filter.and, ee.Filter.or, ee.Filter.inList, ee.Filter.gt, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry.Point, ee.Geometry.Polygon, ee.Geometry.prototype.toGeoJSON, ee.Geometry.MultiLineString, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.LineString, ee.Geometry.LinearRing, ee.Geometry.MultiPoint, ee.Geometry.BBox, ee.Geometry.Rectangle, ee.Geometry.prototype.serialize, ee.Geometry, ee.Geometry.MultiPolygon, ee.Image.prototype.getThumbId,
|
|
26485
|
+
ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.prototype.getMap, ee.Image.prototype.rename, ee.Image.prototype.getThumbURL, ee.Image.prototype.getDownloadURL, ee.Image.rgb, ee.Image.cat, ee.Image.prototype.select, ee.Image, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getMapId,
|
|
26486
|
+
ee.ImageCollection.prototype.first, ee.ImageCollection, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.List, ee.Number, ee.Serializer.toReadableJSON, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.Serializer.toJSON, ee.Serializer.toCloudApiJSON, ee.Serializer.encodeCloudApi, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
26504
26487
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
26505
26488
|
});
|
|
26506
26489
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues');
|
|
|
24
24
|
/** @namespace */
|
|
25
25
|
const apiclient = {};
|
|
26
26
|
|
|
27
|
-
const API_CLIENT_VERSION = '0.1.
|
|
27
|
+
const API_CLIENT_VERSION = '0.1.393';
|
|
28
28
|
|
|
29
29
|
exports.VERSION = apiVersion.VERSION;
|
|
30
30
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
package/src/batch.js
CHANGED
|
@@ -126,14 +126,14 @@ class ExportTask {
|
|
|
126
126
|
* @param {!Array<number>|string=} opt_crsTransform
|
|
127
127
|
* @param {number=} opt_maxPixels
|
|
128
128
|
* @param {number=} opt_shardSize
|
|
129
|
+
* @param {number=} opt_priority
|
|
129
130
|
* @return {!ExportTask}
|
|
130
131
|
* @export
|
|
131
132
|
*/
|
|
132
133
|
Export.image.toAsset = function(
|
|
133
134
|
image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions,
|
|
134
135
|
opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
|
|
135
|
-
opt_shardSize,
|
|
136
|
-
) {
|
|
136
|
+
opt_shardSize, opt_priority) {
|
|
137
137
|
const clientConfig =
|
|
138
138
|
eeArguments.extractFromFunction(Export.image.toAsset, arguments);
|
|
139
139
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -158,6 +158,7 @@ Export.image.toAsset = function(
|
|
|
158
158
|
* @param {boolean=} opt_skipEmptyTiles
|
|
159
159
|
* @param {string=} opt_fileFormat
|
|
160
160
|
* @param {?data.ImageExportFormatConfig=} opt_formatOptions
|
|
161
|
+
* @param {number=} opt_priority
|
|
161
162
|
* @return {!ExportTask}
|
|
162
163
|
* @export
|
|
163
164
|
*/
|
|
@@ -165,8 +166,7 @@ Export.image.toCloudStorage = function(
|
|
|
165
166
|
image, opt_description, opt_bucket, opt_fileNamePrefix, opt_dimensions,
|
|
166
167
|
opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
|
|
167
168
|
opt_shardSize, opt_fileDimensions, opt_skipEmptyTiles, opt_fileFormat,
|
|
168
|
-
opt_formatOptions,
|
|
169
|
-
) {
|
|
169
|
+
opt_formatOptions, opt_priority) {
|
|
170
170
|
const clientConfig =
|
|
171
171
|
eeArguments.extractFromFunction(Export.image.toCloudStorage, arguments);
|
|
172
172
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -191,6 +191,7 @@ Export.image.toCloudStorage = function(
|
|
|
191
191
|
* @param {boolean=} opt_skipEmptyTiles
|
|
192
192
|
* @param {string=} opt_fileFormat
|
|
193
193
|
* @param {?data.ImageExportFormatConfig=} opt_formatOptions
|
|
194
|
+
* @param {number=} opt_priority
|
|
194
195
|
* @return {!ExportTask}
|
|
195
196
|
* @export
|
|
196
197
|
*/
|
|
@@ -198,8 +199,7 @@ Export.image.toDrive = function(
|
|
|
198
199
|
image, opt_description, opt_folder, opt_fileNamePrefix, opt_dimensions,
|
|
199
200
|
opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels,
|
|
200
201
|
opt_shardSize, opt_fileDimensions, opt_skipEmptyTiles, opt_fileFormat,
|
|
201
|
-
opt_formatOptions,
|
|
202
|
-
) {
|
|
202
|
+
opt_formatOptions, opt_priority) {
|
|
203
203
|
const clientConfig =
|
|
204
204
|
eeArguments.extractFromFunction(Export.image.toDrive, arguments);
|
|
205
205
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -222,14 +222,14 @@ Export.image.toDrive = function(
|
|
|
222
222
|
* @param {boolean=} opt_skipEmptyTiles
|
|
223
223
|
* @param {string=} opt_mapsApiKey
|
|
224
224
|
* @param {?Array<string>=} opt_bucketCorsUris
|
|
225
|
+
* @param {number=} opt_priority
|
|
225
226
|
* @return {!ExportTask}
|
|
226
227
|
* @export
|
|
227
228
|
*/
|
|
228
229
|
Export.map.toCloudStorage = function(
|
|
229
230
|
image, opt_description, opt_bucket, opt_fileFormat, opt_path,
|
|
230
231
|
opt_writePublicTiles, opt_scale, opt_maxZoom, opt_minZoom, opt_region,
|
|
231
|
-
opt_skipEmptyTiles, opt_mapsApiKey, opt_bucketCorsUris,
|
|
232
|
-
) {
|
|
232
|
+
opt_skipEmptyTiles, opt_mapsApiKey, opt_bucketCorsUris, opt_priority) {
|
|
233
233
|
const clientConfig =
|
|
234
234
|
eeArguments.extractFromFunction(Export.map.toCloudStorage, arguments);
|
|
235
235
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -246,13 +246,13 @@ Export.map.toCloudStorage = function(
|
|
|
246
246
|
* @param {string=} opt_fileFormat
|
|
247
247
|
* @param {string|!Array<string>=} opt_selectors
|
|
248
248
|
* @param {number=} opt_maxVertices
|
|
249
|
+
* @param {number=} opt_priority
|
|
249
250
|
* @return {!ExportTask}
|
|
250
251
|
* @export
|
|
251
252
|
*/
|
|
252
253
|
Export.table.toCloudStorage = function(
|
|
253
254
|
collection, opt_description, opt_bucket, opt_fileNamePrefix, opt_fileFormat,
|
|
254
|
-
opt_selectors, opt_maxVertices,
|
|
255
|
-
) {
|
|
255
|
+
opt_selectors, opt_maxVertices, opt_priority) {
|
|
256
256
|
const clientConfig =
|
|
257
257
|
eeArguments.extractFromFunction(Export.table.toCloudStorage, arguments);
|
|
258
258
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -269,13 +269,13 @@ Export.table.toCloudStorage = function(
|
|
|
269
269
|
* @param {string=} opt_fileFormat
|
|
270
270
|
* @param {string|!Array<string>=} opt_selectors
|
|
271
271
|
* @param {number=} opt_maxVertices
|
|
272
|
+
* @param {number=} opt_priority
|
|
272
273
|
* @return {!ExportTask}
|
|
273
274
|
* @export
|
|
274
275
|
*/
|
|
275
276
|
Export.table.toDrive = function(
|
|
276
277
|
collection, opt_description, opt_folder, opt_fileNamePrefix, opt_fileFormat,
|
|
277
|
-
opt_selectors, opt_maxVertices,
|
|
278
|
-
) {
|
|
278
|
+
opt_selectors, opt_maxVertices, opt_priority) {
|
|
279
279
|
const clientConfig =
|
|
280
280
|
eeArguments.extractFromFunction(Export.table.toDrive, arguments);
|
|
281
281
|
clientConfig['type'] = ExportType.TABLE;
|
|
@@ -290,12 +290,12 @@ Export.table.toDrive = function(
|
|
|
290
290
|
* @param {string=} opt_description
|
|
291
291
|
* @param {string=} opt_assetId
|
|
292
292
|
* @param {number=} opt_maxVertices
|
|
293
|
+
* @param {number=} opt_priority
|
|
293
294
|
* @return {!ExportTask}
|
|
294
295
|
* @export
|
|
295
296
|
*/
|
|
296
297
|
Export.table.toAsset = function(
|
|
297
|
-
collection, opt_description, opt_assetId, opt_maxVertices,
|
|
298
|
-
) {
|
|
298
|
+
collection, opt_description, opt_assetId, opt_maxVertices, opt_priority) {
|
|
299
299
|
const clientConfig =
|
|
300
300
|
eeArguments.extractFromFunction(Export.table.toAsset, arguments);
|
|
301
301
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -312,13 +312,14 @@ Export.table.toAsset = function(
|
|
|
312
312
|
* @param {string=} opt_thinningStrategy
|
|
313
313
|
* @param {string|!Array<string>=} opt_thinningRanking
|
|
314
314
|
* @param {string|!Array<string>=} opt_zOrderRanking
|
|
315
|
+
* @param {number=} opt_priority
|
|
315
316
|
* @return {!ExportTask}
|
|
316
317
|
* @export
|
|
317
318
|
*/
|
|
318
319
|
Export.table.toFeatureView = function(
|
|
319
320
|
collection, opt_description, opt_assetId, opt_maxFeaturesPerTile,
|
|
320
321
|
opt_thinningStrategy, opt_thinningRanking, opt_zOrderRanking,
|
|
321
|
-
) {
|
|
322
|
+
opt_priority) {
|
|
322
323
|
const clientConfig =
|
|
323
324
|
eeArguments.extractFromFunction(Export.table.toFeatureView, arguments);
|
|
324
325
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -335,13 +336,13 @@ Export.table.toFeatureView = function(
|
|
|
335
336
|
* @param {boolean=} opt_append
|
|
336
337
|
* @param {string|!Array<string>=} opt_selectors
|
|
337
338
|
* @param {number=} opt_maxVertices
|
|
339
|
+
* @param {number=} opt_priority
|
|
338
340
|
* @return {!ExportTask}
|
|
339
341
|
* @export
|
|
340
342
|
*/
|
|
341
343
|
Export.table.toBigQuery = function(
|
|
342
344
|
collection, opt_description, opt_table, opt_overwrite, opt_append,
|
|
343
|
-
opt_selectors, opt_maxVertices,
|
|
344
|
-
) {
|
|
345
|
+
opt_selectors, opt_maxVertices, opt_priority) {
|
|
345
346
|
const clientConfig =
|
|
346
347
|
eeArguments.extractFromFunction(Export.table.toBigQuery, arguments);
|
|
347
348
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -363,14 +364,14 @@ Export.table.toBigQuery = function(
|
|
|
363
364
|
* @param {!Array<number>|string=} opt_crsTransform
|
|
364
365
|
* @param {number=} opt_maxPixels
|
|
365
366
|
* @param {number=} opt_maxFrames
|
|
367
|
+
* @param {number=} opt_priority
|
|
366
368
|
* @return {!ExportTask}
|
|
367
369
|
* @export
|
|
368
370
|
*/
|
|
369
371
|
Export.video.toCloudStorage = function(
|
|
370
372
|
collection, opt_description, opt_bucket, opt_fileNamePrefix,
|
|
371
373
|
opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs,
|
|
372
|
-
opt_crsTransform, opt_maxPixels, opt_maxFrames,
|
|
373
|
-
) {
|
|
374
|
+
opt_crsTransform, opt_maxPixels, opt_maxFrames, opt_priority) {
|
|
374
375
|
const clientConfig =
|
|
375
376
|
eeArguments.extractFromFunction(Export.video.toCloudStorage, arguments);
|
|
376
377
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -392,14 +393,14 @@ Export.video.toCloudStorage = function(
|
|
|
392
393
|
* @param {!Array<number>|string=} opt_crsTransform
|
|
393
394
|
* @param {number=} opt_maxPixels
|
|
394
395
|
* @param {number=} opt_maxFrames
|
|
396
|
+
* @param {number=} opt_priority
|
|
395
397
|
* @return {!ExportTask}
|
|
396
398
|
* @export
|
|
397
399
|
*/
|
|
398
400
|
Export.video.toDrive = function(
|
|
399
401
|
collection, opt_description, opt_folder, opt_fileNamePrefix,
|
|
400
402
|
opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs,
|
|
401
|
-
opt_crsTransform, opt_maxPixels, opt_maxFrames,
|
|
402
|
-
) {
|
|
403
|
+
opt_crsTransform, opt_maxPixels, opt_maxFrames, opt_priority) {
|
|
403
404
|
const clientConfig =
|
|
404
405
|
eeArguments.extractFromFunction(Export.video.toDrive, arguments);
|
|
405
406
|
const serverConfig = Export.convertToServerParams(
|
|
@@ -411,11 +412,12 @@ Export.video.toDrive = function(
|
|
|
411
412
|
* @param {!ComputedObject} classifier
|
|
412
413
|
* @param {string=} opt_description
|
|
413
414
|
* @param {string=} opt_assetId
|
|
415
|
+
* @param {number=} opt_priority
|
|
414
416
|
* @return {!ExportTask}
|
|
415
417
|
* @export
|
|
416
418
|
*/
|
|
417
|
-
Export.classifier.toAsset = function(
|
|
418
|
-
) {
|
|
419
|
+
Export.classifier.toAsset = function(
|
|
420
|
+
classifier, opt_description, opt_assetId, opt_priority) {
|
|
419
421
|
const clientConfig =
|
|
420
422
|
eeArguments.extractFromFunction(Export.classifier.toAsset, arguments);
|
|
421
423
|
const serverConfig = Export.convertToServerParams(
|
package/src/encodable_batch.js
CHANGED
|
@@ -45,6 +45,7 @@ ee.rpc_convert_batch.taskToExportImageRequest = function(params) {
|
|
|
45
45
|
// Int64s are encoded as strings.
|
|
46
46
|
maxPixels: stringOrNull_(params['maxPixels']),
|
|
47
47
|
requestId: stringOrNull_(params['id']),
|
|
48
|
+
priority: numberOrNull_(params['priority']),
|
|
48
49
|
});
|
|
49
50
|
|
|
50
51
|
const destination = ee.rpc_convert_batch.guessDestination_(params);
|
|
@@ -94,6 +95,7 @@ ee.rpc_convert_batch.taskToExportTableRequest = function(params) {
|
|
|
94
95
|
maxErrorMeters: numberOrNull_(params['maxErrorMeters']),
|
|
95
96
|
requestId: stringOrNull_(params['id']),
|
|
96
97
|
maxVertices: numberOrNull_(params['maxVertices']),
|
|
98
|
+
priority: numberOrNull_(params['priority']),
|
|
97
99
|
});
|
|
98
100
|
|
|
99
101
|
const destination = ee.rpc_convert_batch.guessDestination_(params);
|
|
@@ -144,6 +146,7 @@ ee.rpc_convert_batch.taskToExportVideoRequest = function(params) {
|
|
|
144
146
|
videoOptions: ee.rpc_convert_batch.buildVideoOptions_(params),
|
|
145
147
|
fileExportOptions: null,
|
|
146
148
|
requestId: stringOrNull_(params['id']),
|
|
149
|
+
priority: numberOrNull_(params['priority']),
|
|
147
150
|
});
|
|
148
151
|
|
|
149
152
|
const destination = ee.rpc_convert_batch.guessDestination_(params);
|
|
@@ -172,6 +175,7 @@ ee.rpc_convert_batch.taskToExportMapRequest = function(params) {
|
|
|
172
175
|
// Only Export to cloud storage is allow currently.
|
|
173
176
|
params, ee.rpc_convert_batch.ExportDestination.GCS),
|
|
174
177
|
requestId: stringOrNull_(params['id']),
|
|
178
|
+
priority: numberOrNull_(params['priority']),
|
|
175
179
|
});
|
|
176
180
|
};
|
|
177
181
|
|
|
@@ -196,6 +200,7 @@ ee.rpc_convert_batch.taskToExportVideoMapRequest = function(params) {
|
|
|
196
200
|
params, ee.rpc_convert_batch.ExportDestination.GCS),
|
|
197
201
|
requestId: stringOrNull_(params['id']),
|
|
198
202
|
version: stringOrNull_(params['version']),
|
|
203
|
+
priority: numberOrNull_(params['priority']),
|
|
199
204
|
});
|
|
200
205
|
};
|
|
201
206
|
|
|
@@ -222,6 +227,7 @@ ee.rpc_convert_batch.taskToExportClassifierRequest = function(params) {
|
|
|
222
227
|
earthEngineDestination:
|
|
223
228
|
ee.rpc_convert_batch.buildEarthEngineDestination_(params)
|
|
224
229
|
}),
|
|
230
|
+
priority: numberOrNull_(params['priority']),
|
|
225
231
|
});
|
|
226
232
|
};
|
|
227
233
|
|