@google/earthengine 0.1.371 → 0.1.373
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.tmp/BUILD +46 -2
- package/.tmp/METADATA +10 -8
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +44 -14
- package/build/ee_api_js.js +609 -607
- package/build/ee_api_js_debug.js +44 -14
- package/build/ee_api_js_npm.js +44 -14
- package/build/main.js +44 -14
- package/package.json +1 -1
- package/src/apiclient.js +8 -7
- package/src/data.js +1 -1
- package/src/imagecollection.js +12 -13
package/.tmp/BUILD
CHANGED
|
@@ -622,8 +622,52 @@ Fileset(
|
|
|
622
622
|
destdir = "0.1.357",
|
|
623
623
|
),
|
|
624
624
|
FilesetEntry(
|
|
625
|
-
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.
|
|
626
|
-
destdir = "0.1.
|
|
625
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.358:public",
|
|
626
|
+
destdir = "0.1.358",
|
|
627
|
+
),
|
|
628
|
+
FilesetEntry(
|
|
629
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.360:public",
|
|
630
|
+
destdir = "0.1.360",
|
|
631
|
+
),
|
|
632
|
+
FilesetEntry(
|
|
633
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.361:public",
|
|
634
|
+
destdir = "0.1.361",
|
|
635
|
+
),
|
|
636
|
+
FilesetEntry(
|
|
637
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.362:public",
|
|
638
|
+
destdir = "0.1.362",
|
|
639
|
+
),
|
|
640
|
+
FilesetEntry(
|
|
641
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.363:public",
|
|
642
|
+
destdir = "0.1.363",
|
|
643
|
+
),
|
|
644
|
+
FilesetEntry(
|
|
645
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.365:public",
|
|
646
|
+
destdir = "0.1.365",
|
|
647
|
+
),
|
|
648
|
+
FilesetEntry(
|
|
649
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.366:public",
|
|
650
|
+
destdir = "0.1.366",
|
|
651
|
+
),
|
|
652
|
+
FilesetEntry(
|
|
653
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.368:public",
|
|
654
|
+
destdir = "0.1.368",
|
|
655
|
+
),
|
|
656
|
+
FilesetEntry(
|
|
657
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.369:public",
|
|
658
|
+
destdir = "0.1.369",
|
|
659
|
+
),
|
|
660
|
+
FilesetEntry(
|
|
661
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.370:public",
|
|
662
|
+
destdir = "0.1.370",
|
|
663
|
+
),
|
|
664
|
+
FilesetEntry(
|
|
665
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.371:public",
|
|
666
|
+
destdir = "0.1.371",
|
|
667
|
+
),
|
|
668
|
+
FilesetEntry(
|
|
669
|
+
srcdir = "//third_party/hosted_libraries/libs/earthengine/0.1.373:public",
|
|
670
|
+
destdir = "0.1.373",
|
|
627
671
|
),
|
|
628
672
|
# NEXT RELEASE GOES HERE. DO NOT REMOVE OR CHANGE THIS LINE.
|
|
629
673
|
],
|
package/.tmp/METADATA
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Format: google3/devtools/metadata/metadata.proto (go/google3metadata)
|
|
2
2
|
|
|
3
|
-
name: "0.1.
|
|
3
|
+
name: "0.1.373"
|
|
4
4
|
description:
|
|
5
5
|
"Google Earth Engine is a cloud-based platform for planetary-scale "
|
|
6
6
|
"environmental data analysis. The Earth Engine JavaScript API allows "
|
|
@@ -8,14 +8,16 @@ description:
|
|
|
8
8
|
"applications."
|
|
9
9
|
|
|
10
10
|
third_party {
|
|
11
|
-
|
|
12
|
-
type: GIT
|
|
13
|
-
value: "https://github.com/google/earthengine-api.git"
|
|
14
|
-
}
|
|
15
|
-
version: "v0.1.359"
|
|
11
|
+
version: "v0.1.373"
|
|
16
12
|
last_upgrade_date: {
|
|
17
13
|
year: 2023
|
|
18
|
-
month:
|
|
19
|
-
day:
|
|
14
|
+
month: 10
|
|
15
|
+
day: 4
|
|
16
|
+
}
|
|
17
|
+
identifier {
|
|
18
|
+
type: "Git"
|
|
19
|
+
value: "https://github.com/google/earthengine-api.git"
|
|
20
|
+
version: "v0.1.373"
|
|
21
|
+
primary_source: true
|
|
20
22
|
}
|
|
21
23
|
}
|
package/.tmp/VERSION_BUILD
CHANGED
|
@@ -9,7 +9,7 @@ load("//tools/build_defs/license:license.bzl", "license")
|
|
|
9
9
|
load("//tools/build_defs/build_test:build_test.bzl", "build_test")
|
|
10
10
|
|
|
11
11
|
package(
|
|
12
|
-
default_applicable_licenses = ["//third_party/hosted_libraries/libs/earthengine/0.1.
|
|
12
|
+
default_applicable_licenses = ["//third_party/hosted_libraries/libs/earthengine/0.1.373:license"],
|
|
13
13
|
default_visibility = [
|
|
14
14
|
"//third_party/hosted_libraries/libs/earthengine:__pkg__",
|
|
15
15
|
],
|
|
@@ -17,7 +17,7 @@ package(
|
|
|
17
17
|
|
|
18
18
|
license(
|
|
19
19
|
name = "license",
|
|
20
|
-
package_name = "0.1.
|
|
20
|
+
package_name = "0.1.373",
|
|
21
21
|
)
|
|
22
22
|
|
|
23
23
|
licenses(["notice"])
|
package/build/browser.js
CHANGED
|
@@ -1299,6 +1299,8 @@ goog.setImportHandlerInternalDoNotCallOrElse = function(fn) {
|
|
|
1299
1299
|
goog.setUncompiledChunkIdHandlerInternalDoNotCallOrElse = function(fn) {
|
|
1300
1300
|
goog.uncompiledChunkIdHandler_ = fn;
|
|
1301
1301
|
};
|
|
1302
|
+
goog.maybeRequireFrameworkInternalOnlyDoNotCallOrElse = function(namespace) {
|
|
1303
|
+
};
|
|
1302
1304
|
goog.ModuleType = {ES6:"es6", GOOG:"goog"};
|
|
1303
1305
|
goog.moduleLoaderState_ = null;
|
|
1304
1306
|
goog.isInModuleLoader_ = function() {
|
|
@@ -9032,6 +9034,11 @@ module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum = {MA
|
|
|
9032
9034
|
return [module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.PYRAMIDING_POLICY_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MEAN, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.SAMPLE, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MIN, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MAX,
|
|
9033
9035
|
module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MODE, module$exports$eeapiclient$ee_api_client.ImageManifestPyramidingPolicyEnum.MEDIAN];
|
|
9034
9036
|
}};
|
|
9037
|
+
module$exports$eeapiclient$ee_api_client.IImportImageRequestModeEnum = function() {
|
|
9038
|
+
};
|
|
9039
|
+
module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum = {IMPORT_MODE_UNSPECIFIED:"IMPORT_MODE_UNSPECIFIED", INGEST:"INGEST", VIRTUAL:"VIRTUAL", values:function() {
|
|
9040
|
+
return [module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum.IMPORT_MODE_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum.INGEST, module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum.VIRTUAL];
|
|
9041
|
+
}};
|
|
9035
9042
|
module$exports$eeapiclient$ee_api_client.IOperationMetadataStateEnum = function() {
|
|
9036
9043
|
};
|
|
9037
9044
|
module$exports$eeapiclient$ee_api_client.OperationMetadataStateEnum = {CANCELLED:"CANCELLED", CANCELLING:"CANCELLING", FAILED:"FAILED", PENDING:"PENDING", RUNNING:"RUNNING", STATE_UNSPECIFIED:"STATE_UNSPECIFIED", SUCCEEDED:"SUCCEEDED", values:function() {
|
|
@@ -10122,15 +10129,16 @@ module$exports$eeapiclient$ee_api_client.EarthEngineAsset = function(parameters)
|
|
|
10122
10129
|
this.Serializable$set("featureCount", null == parameters.featureCount ? null : parameters.featureCount);
|
|
10123
10130
|
this.Serializable$set("quota", null == parameters.quota ? null : parameters.quota);
|
|
10124
10131
|
this.Serializable$set("expression", null == parameters.expression ? null : parameters.expression);
|
|
10132
|
+
this.Serializable$set("tilesets", null == parameters.tilesets ? null : parameters.tilesets);
|
|
10125
10133
|
};
|
|
10126
10134
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.EarthEngineAsset, module$exports$eeapiclient$domain_object.Serializable);
|
|
10127
10135
|
module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype.getConstructor = function() {
|
|
10128
10136
|
return module$exports$eeapiclient$ee_api_client.EarthEngineAsset;
|
|
10129
10137
|
};
|
|
10130
10138
|
module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype.getPartialClassMetadata = function() {
|
|
10131
|
-
return {arrays:{bands:module$exports$eeapiclient$ee_api_client.ImageBand}, enums:{type:module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum}, keys:"bands cloudStorageLocation endTime expression featureCount featureViewAssetLocation geometry id name properties quota sizeBytes startTime tableLocation tilestoreLocation type updateTime".split(" "),
|
|
10132
|
-
properties:{ctor:null, isPropertyArray:!1, isSerializable:!1, isValueArray:!1}}, objects:{cloudStorageLocation:module$exports$eeapiclient$ee_api_client.CloudStorageLocation, expression:module$exports$eeapiclient$ee_api_client.Expression, featureViewAssetLocation:module$exports$eeapiclient$ee_api_client.FeatureViewLocation,
|
|
10133
|
-
tableLocation:module$exports$eeapiclient$ee_api_client.TableLocation, tilestoreLocation:module$exports$eeapiclient$ee_api_client.TilestoreLocation}};
|
|
10139
|
+
return {arrays:{bands:module$exports$eeapiclient$ee_api_client.ImageBand, tilesets:module$exports$eeapiclient$ee_api_client.Tileset}, enums:{type:module$exports$eeapiclient$ee_api_client.EarthEngineAssetTypeEnum}, keys:"bands cloudStorageLocation endTime expression featureCount featureViewAssetLocation geometry id name properties quota sizeBytes startTime tableLocation tilesets tilestoreLocation type updateTime".split(" "),
|
|
10140
|
+
objectMaps:{geometry:{ctor:null, isPropertyArray:!1, isSerializable:!1, isValueArray:!1}, properties:{ctor:null, isPropertyArray:!1, isSerializable:!1, isValueArray:!1}}, objects:{cloudStorageLocation:module$exports$eeapiclient$ee_api_client.CloudStorageLocation, expression:module$exports$eeapiclient$ee_api_client.Expression, featureViewAssetLocation:module$exports$eeapiclient$ee_api_client.FeatureViewLocation,
|
|
10141
|
+
quota:module$exports$eeapiclient$ee_api_client.FolderQuota, tableLocation:module$exports$eeapiclient$ee_api_client.TableLocation, tilestoreLocation:module$exports$eeapiclient$ee_api_client.TilestoreLocation}};
|
|
10134
10142
|
};
|
|
10135
10143
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.EarthEngineAsset.prototype, {bands:{configurable:!0, enumerable:!0, get:function() {
|
|
10136
10144
|
return this.Serializable$has("bands") ? this.Serializable$get("bands") : null;
|
|
@@ -10188,6 +10196,10 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
10188
10196
|
return this.Serializable$has("tableLocation") ? this.Serializable$get("tableLocation") : null;
|
|
10189
10197
|
}, set:function(value) {
|
|
10190
10198
|
this.Serializable$set("tableLocation", value);
|
|
10199
|
+
}}, tilesets:{configurable:!0, enumerable:!0, get:function() {
|
|
10200
|
+
return this.Serializable$has("tilesets") ? this.Serializable$get("tilesets") : null;
|
|
10201
|
+
}, set:function(value) {
|
|
10202
|
+
this.Serializable$set("tilesets", value);
|
|
10191
10203
|
}}, tilestoreLocation:{configurable:!0, enumerable:!0, get:function() {
|
|
10192
10204
|
return this.Serializable$has("tilestoreLocation") ? this.Serializable$get("tilestoreLocation") : null;
|
|
10193
10205
|
}, set:function(value) {
|
|
@@ -11299,13 +11311,15 @@ module$exports$eeapiclient$ee_api_client.ImageBand = function(parameters) {
|
|
|
11299
11311
|
this.Serializable$set("pyramidingPolicy", null == parameters.pyramidingPolicy ? null : parameters.pyramidingPolicy);
|
|
11300
11312
|
this.Serializable$set("tilesets", null == parameters.tilesets ? null : parameters.tilesets);
|
|
11301
11313
|
this.Serializable$set("missingData", null == parameters.missingData ? null : parameters.missingData);
|
|
11314
|
+
this.Serializable$set("tilesetId", null == parameters.tilesetId ? null : parameters.tilesetId);
|
|
11315
|
+
this.Serializable$set("tilesetBandIndex", null == parameters.tilesetBandIndex ? null : parameters.tilesetBandIndex);
|
|
11302
11316
|
};
|
|
11303
11317
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ImageBand, module$exports$eeapiclient$domain_object.Serializable);
|
|
11304
11318
|
module$exports$eeapiclient$ee_api_client.ImageBand.prototype.getConstructor = function() {
|
|
11305
11319
|
return module$exports$eeapiclient$ee_api_client.ImageBand;
|
|
11306
11320
|
};
|
|
11307
11321
|
module$exports$eeapiclient$ee_api_client.ImageBand.prototype.getPartialClassMetadata = function() {
|
|
11308
|
-
return {arrays:{tilesets:module$exports$eeapiclient$ee_api_client.TilestoreTileset}, enums:{pyramidingPolicy:module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum}, keys:"dataType grid id missingData pyramidingPolicy tilesets".split(" "), objects:{dataType:module$exports$eeapiclient$ee_api_client.PixelDataType, grid:module$exports$eeapiclient$ee_api_client.PixelGrid,
|
|
11322
|
+
return {arrays:{tilesets:module$exports$eeapiclient$ee_api_client.TilestoreTileset}, enums:{pyramidingPolicy:module$exports$eeapiclient$ee_api_client.ImageBandPyramidingPolicyEnum}, keys:"dataType grid id missingData pyramidingPolicy tilesetBandIndex tilesetId tilesets".split(" "), objects:{dataType:module$exports$eeapiclient$ee_api_client.PixelDataType, grid:module$exports$eeapiclient$ee_api_client.PixelGrid,
|
|
11309
11323
|
missingData:module$exports$eeapiclient$ee_api_client.MissingData}};
|
|
11310
11324
|
};
|
|
11311
11325
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ImageBand.prototype, {dataType:{configurable:!0, enumerable:!0, get:function() {
|
|
@@ -11328,6 +11342,14 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
11328
11342
|
return this.Serializable$has("pyramidingPolicy") ? this.Serializable$get("pyramidingPolicy") : null;
|
|
11329
11343
|
}, set:function(value) {
|
|
11330
11344
|
this.Serializable$set("pyramidingPolicy", value);
|
|
11345
|
+
}}, tilesetBandIndex:{configurable:!0, enumerable:!0, get:function() {
|
|
11346
|
+
return this.Serializable$has("tilesetBandIndex") ? this.Serializable$get("tilesetBandIndex") : null;
|
|
11347
|
+
}, set:function(value) {
|
|
11348
|
+
this.Serializable$set("tilesetBandIndex", value);
|
|
11349
|
+
}}, tilesetId:{configurable:!0, enumerable:!0, get:function() {
|
|
11350
|
+
return this.Serializable$has("tilesetId") ? this.Serializable$get("tilesetId") : null;
|
|
11351
|
+
}, set:function(value) {
|
|
11352
|
+
this.Serializable$set("tilesetId", value);
|
|
11331
11353
|
}}, tilesets:{configurable:!0, enumerable:!0, get:function() {
|
|
11332
11354
|
return this.Serializable$has("tilesets") ? this.Serializable$get("tilesets") : null;
|
|
11333
11355
|
}, set:function(value) {
|
|
@@ -11500,13 +11522,14 @@ module$exports$eeapiclient$ee_api_client.ImportImageRequest = function(parameter
|
|
|
11500
11522
|
this.Serializable$set("description", null == parameters.description ? null : parameters.description);
|
|
11501
11523
|
this.Serializable$set("overwrite", null == parameters.overwrite ? null : parameters.overwrite);
|
|
11502
11524
|
this.Serializable$set("requestId", null == parameters.requestId ? null : parameters.requestId);
|
|
11525
|
+
this.Serializable$set("mode", null == parameters.mode ? null : parameters.mode);
|
|
11503
11526
|
};
|
|
11504
11527
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ImportImageRequest, module$exports$eeapiclient$domain_object.Serializable);
|
|
11505
11528
|
module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype.getConstructor = function() {
|
|
11506
11529
|
return module$exports$eeapiclient$ee_api_client.ImportImageRequest;
|
|
11507
11530
|
};
|
|
11508
11531
|
module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype.getPartialClassMetadata = function() {
|
|
11509
|
-
return {keys:["description", "imageManifest", "overwrite", "requestId"], objects:{imageManifest:module$exports$eeapiclient$ee_api_client.ImageManifest}};
|
|
11532
|
+
return {enums:{mode:module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum}, keys:["description", "imageManifest", "mode", "overwrite", "requestId"], objects:{imageManifest:module$exports$eeapiclient$ee_api_client.ImageManifest}};
|
|
11510
11533
|
};
|
|
11511
11534
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ImportImageRequest.prototype, {description:{configurable:!0, enumerable:!0, get:function() {
|
|
11512
11535
|
return this.Serializable$has("description") ? this.Serializable$get("description") : null;
|
|
@@ -11516,6 +11539,10 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
11516
11539
|
return this.Serializable$has("imageManifest") ? this.Serializable$get("imageManifest") : null;
|
|
11517
11540
|
}, set:function(value) {
|
|
11518
11541
|
this.Serializable$set("imageManifest", value);
|
|
11542
|
+
}}, mode:{configurable:!0, enumerable:!0, get:function() {
|
|
11543
|
+
return this.Serializable$has("mode") ? this.Serializable$get("mode") : null;
|
|
11544
|
+
}, set:function(value) {
|
|
11545
|
+
this.Serializable$set("mode", value);
|
|
11519
11546
|
}}, overwrite:{configurable:!0, enumerable:!0, get:function() {
|
|
11520
11547
|
return this.Serializable$has("overwrite") ? this.Serializable$get("overwrite") : null;
|
|
11521
11548
|
}, set:function(value) {
|
|
@@ -11525,6 +11552,9 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
11525
11552
|
}, set:function(value) {
|
|
11526
11553
|
this.Serializable$set("requestId", value);
|
|
11527
11554
|
}}});
|
|
11555
|
+
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ImportImageRequest, {Mode:{configurable:!0, enumerable:!0, get:function() {
|
|
11556
|
+
return module$exports$eeapiclient$ee_api_client.ImportImageRequestModeEnum;
|
|
11557
|
+
}}});
|
|
11528
11558
|
module$exports$eeapiclient$ee_api_client.ImportTableRequestParameters = function() {
|
|
11529
11559
|
};
|
|
11530
11560
|
module$exports$eeapiclient$ee_api_client.ImportTableRequest = function(parameters) {
|
|
@@ -17378,7 +17408,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17378
17408
|
ee.apiclient = {};
|
|
17379
17409
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17380
17410
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17381
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17411
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.373";
|
|
17382
17412
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17383
17413
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17384
17414
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17579,13 +17609,13 @@ module$contents$ee$apiclient_apiclient.setAuthToken = function(clientId, tokenTy
|
|
|
17579
17609
|
var tokenObject = {token_type:tokenType, access_token:accessToken, state:scopes.join(" "), expires_in:expiresIn};
|
|
17580
17610
|
module$contents$ee$apiclient_apiclient.handleAuthResult_(void 0, void 0, tokenObject);
|
|
17581
17611
|
!1 === updateAuthLibrary ? callback && callback() : module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_(function() {
|
|
17582
|
-
goog.global.gapi.
|
|
17612
|
+
goog.global.gapi.client.setToken(tokenObject);
|
|
17583
17613
|
callback && callback();
|
|
17584
17614
|
});
|
|
17585
17615
|
};
|
|
17586
17616
|
module$contents$ee$apiclient_apiclient.refreshAuthToken = function(success, error, onImmediateFailed) {
|
|
17587
17617
|
if (module$contents$ee$apiclient_apiclient.isAuthTokenRefreshingEnabled_()) {
|
|
17588
|
-
var authArgs = {client_id:String(module$contents$ee$apiclient_apiclient.authClientId_), immediate:!0, scope:module$contents$ee$apiclient_apiclient.authScopes_.join(" ")};
|
|
17618
|
+
var authArgs = {client_id:String(module$contents$ee$apiclient_apiclient.authClientId_), immediate:!0, scope:module$contents$ee$apiclient_apiclient.authScopes_.join(" "), plugin_name:"earthengine"};
|
|
17589
17619
|
module$contents$ee$apiclient_apiclient.authTokenRefresher_(authArgs, function(result) {
|
|
17590
17620
|
if ("immediate_failed" == result.error && onImmediateFailed) {
|
|
17591
17621
|
onImmediateFailed();
|
|
@@ -17594,7 +17624,7 @@ module$contents$ee$apiclient_apiclient.refreshAuthToken = function(success, erro
|
|
|
17594
17624
|
try {
|
|
17595
17625
|
module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_(function() {
|
|
17596
17626
|
try {
|
|
17597
|
-
goog.global.gapi.
|
|
17627
|
+
goog.global.gapi.client.setToken(result), module$contents$ee$apiclient_apiclient.handleAuthResult_(success, error, result);
|
|
17598
17628
|
} catch (e) {
|
|
17599
17629
|
error(e.toString());
|
|
17600
17630
|
}
|
|
@@ -17669,8 +17699,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17669
17699
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17670
17700
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17671
17701
|
method = method || "POST";
|
|
17672
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17673
|
-
"0.1.
|
|
17702
|
+
var headers = {"Content-Type":contentType}, version = "0.1.373";
|
|
17703
|
+
"0.1.373" === version && (version = "latest");
|
|
17674
17704
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17675
17705
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17676
17706
|
if (null != authToken) {
|
|
@@ -17780,10 +17810,10 @@ module$contents$ee$apiclient_apiclient.handleResponse_ = function(status, getRes
|
|
|
17780
17810
|
module$contents$ee$apiclient_apiclient.ensureAuthLibLoaded_ = function(callback) {
|
|
17781
17811
|
var done = function() {
|
|
17782
17812
|
goog.global.gapi.config.update("client/cors", !0);
|
|
17783
|
-
module$contents$ee$apiclient_apiclient.authTokenRefresher_ || module$contents$ee$apiclient_apiclient.setAuthTokenRefresher(goog.global.gapi.
|
|
17813
|
+
module$contents$ee$apiclient_apiclient.authTokenRefresher_ || module$contents$ee$apiclient_apiclient.setAuthTokenRefresher(goog.global.gapi.auth2.authorize);
|
|
17784
17814
|
callback();
|
|
17785
17815
|
};
|
|
17786
|
-
if (goog.isObject(goog.global.gapi) && goog.isObject(goog.global.gapi.
|
|
17816
|
+
if (goog.isObject(goog.global.gapi) && goog.isObject(goog.global.gapi.auth2) && "function" === typeof goog.global.gapi.auth2.authorize) {
|
|
17787
17817
|
done();
|
|
17788
17818
|
} else {
|
|
17789
17819
|
for (var callbackName = Date.now().toString(36); callbackName in goog.global;) {
|
|
@@ -19353,7 +19383,7 @@ ee.data.authenticate = function(clientId, success, opt_error, opt_extraScopes, o
|
|
|
19353
19383
|
};
|
|
19354
19384
|
goog.exportSymbol("ee.data.authenticate", ee.data.authenticate);
|
|
19355
19385
|
ee.data.authenticateViaPopup = function(opt_success, opt_error) {
|
|
19356
|
-
goog.global.gapi.
|
|
19386
|
+
goog.global.gapi.auth2.authorize({client_id:module$contents$ee$apiclient_apiclient.getAuthClientId(), immediate:!1, scope:module$contents$ee$apiclient_apiclient.getAuthScopes().join(" ")}, goog.partial(module$contents$ee$apiclient_apiclient.handleAuthResult_, opt_success, opt_error));
|
|
19357
19387
|
};
|
|
19358
19388
|
goog.exportSymbol("ee.data.authenticateViaPopup", ee.data.authenticateViaPopup);
|
|
19359
19389
|
ee.data.authenticateViaPrivateKey = function(privateKey, opt_success, opt_error, opt_extraScopes, opt_suppressDefaultScopes) {
|