Skip to content

Commit 6586c32

Browse files
Closure Teamcopybara-github
authored andcommitted
chore: sync changes for Maps JS API v3.52.3a.
PiperOrigin-RevId: 513886325
1 parent 027f5e6 commit 6586c32

File tree

3 files changed

+340
-72
lines changed

3 files changed

+340
-72
lines changed

WORKSPACE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ workspace(name = "com_google_javascript_jscomp")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

5-
RULES_JVM_EXTERNAL_TAG = "4.5"
6-
RULES_JVM_EXTERNAL_SHA = "b17d7388feb9bfa7f2fa09031b32707df529f26c91ab9e5d909eb1676badd9a6"
5+
RULES_JVM_EXTERNAL_TAG = "4.2"
6+
RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca"
77

88
http_archive(
99
name = "rules_jvm_external",

contrib/externs/maps/google_maps_api_v3_52.js

Lines changed: 169 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4050,6 +4050,11 @@ google.maps.JourneySharingLibrary = function() {};
40504050
*/
40514051
google.maps.JourneySharingLibrary.prototype.AutomaticViewportMode;
40524052

4053+
/**
4054+
* @type {typeof google.maps.journeySharing.DeliveryVehicleStopState}
4055+
*/
4056+
google.maps.JourneySharingLibrary.prototype.DeliveryVehicleStopState;
4057+
40534058
/**
40544059
* @type {typeof
40554060
* google.maps.journeySharing.FleetEngineDeliveryFleetLocationProvider}
@@ -4504,7 +4509,7 @@ google.maps.LatLng.prototype.toUrlValue = function(precision) {};
45044509
* When using `v=beta`, can be accessed by calling `const {LatLngAltitude} =
45054510
* await google.map.importLibrary("core")`. See
45064511
* https://developers.google.com/maps/documentation/javascript/libraries.
4507-
* @param {!google.maps.LatLngAltitude|!google.maps.LatLngAltitudeLiteral|!google.maps.LatLng|!google.maps.LatLngLiteral}
4512+
* @param {!google.maps.LatLngAltitude|!google.maps.LatLngAltitudeLiteral|!google.maps.LatLngLiteral|!google.maps.LatLng}
45084513
* value The initializing value.
45094514
* @param {boolean=} noClampNoWrap Whether to preserve the initialization
45104515
* values, even if they may not necessarily be valid latitude values in the
@@ -4537,7 +4542,8 @@ google.maps.LatLngAltitude.prototype.lng;
45374542

45384543
/**
45394544
* Comparison function.
4540-
* @param {?google.maps.LatLngAltitude} other Another LatLngAltitude object.
4545+
* @param {null|!google.maps.LatLngAltitude} other Another LatLngAltitude
4546+
* object.
45414547
* @return {boolean} Whether the two objects are equal.
45424548
*/
45434549
google.maps.LatLngAltitude.prototype.equals = function(other) {};
@@ -10645,6 +10651,54 @@ google.maps.journeySharing.DeliveryVehicleMarkerCustomizationFunctionParams =
1064510651
google.maps.journeySharing.DeliveryVehicleMarkerCustomizationFunctionParams
1064610652
.prototype.vehicle;
1064710653

10654+
/**
10655+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
10656+
*
10657+
* DeliveryVehicleStop type
10658+
* @record
10659+
*/
10660+
google.maps.journeySharing.DeliveryVehicleStop = function() {};
10661+
10662+
/**
10663+
* The list of Tasks to be performed at this stop. <ul> <li><code>id</code>: the
10664+
* ID of the task. <li><code>extraDurationMillis</code>: the extra time it takes
10665+
* to perform the task, in milliseconds. </ul>
10666+
* @type {!Array<{id:?string, extraDurationMillis:?number}>}
10667+
*/
10668+
google.maps.journeySharing.DeliveryVehicleStop.prototype.tasks;
10669+
10670+
/**
10671+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
10672+
*
10673+
* The current state of a {@link
10674+
* google.maps.journeySharing.DeliveryVehicleStop}.
10675+
*
10676+
* When using `v=beta`, can be accessed by calling
10677+
* `const {DeliveryVehicleStopState} = await
10678+
* google.map.importLibrary("journeySharing")`. See
10679+
* https://developers.google.com/maps/documentation/javascript/libraries.
10680+
* @enum {string}
10681+
*/
10682+
google.maps.journeySharing.DeliveryVehicleStopState = {
10683+
/**
10684+
* Arrived at stop. Assumes that when the vehicle is routing to the next stop,
10685+
* that all previous stops have been completed.
10686+
*/
10687+
ARRIVED: 'ARRIVED',
10688+
/**
10689+
* Assigned and actively routing.
10690+
*/
10691+
ENROUTE: 'ENROUTE',
10692+
/**
10693+
* Created, but not actively routing.
10694+
*/
10695+
NEW: 'NEW',
10696+
/**
10697+
* Unknown.
10698+
*/
10699+
UNSPECIFIED: 'UNSPECIFIED',
10700+
};
10701+
1064810702
/**
1064910703
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
1065010704
*
@@ -11106,13 +11160,6 @@ google.maps.journeySharing.FleetEngineShipmentLocationProvider = function(
1110611160
google.maps.journeySharing.FleetEngineShipmentLocationProvider.prototype
1110711161
.trackingId;
1110811162

11109-
/**
11110-
* Returns the currently tracked task.
11111-
* @return {?google.maps.journeySharing.Task}
11112-
*/
11113-
google.maps.journeySharing.FleetEngineShipmentLocationProvider.prototype
11114-
.getTask = function() {};
11115-
1111611163
/**
1111711164
* Explicitly refreshes the tracked location.
1111811165
* @return {void}
@@ -11220,11 +11267,11 @@ google.maps.journeySharing.FleetEngineShipmentLocationProviderUpdateEvent =
1122011267
function() {};
1122111268

1122211269
/**
11223-
* The task structure returned by the update. Unmodifiable.
11224-
* @type {?google.maps.journeySharing.Task}
11270+
* The task tracking info structure returned by the update. Unmodifiable.
11271+
* @type {?google.maps.journeySharing.TaskTrackingInfo}
1122511272
*/
1122611273
google.maps.journeySharing.FleetEngineShipmentLocationProviderUpdateEvent
11227-
.prototype.task;
11274+
.prototype.taskTrackingInfo;
1122811275

1122911276
/**
1123011277
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -12192,14 +12239,11 @@ google.maps.journeySharing.ShipmentMarkerCustomizationFunctionParams =
1219212239
function() {};
1219312240

1219412241
/**
12195-
* The task associated with this marker. <br><br>For information about the
12196-
* delivery vehicle servicing this task, use {@link
12197-
* google.maps.journeySharing.Task.latestVehicleLocationUpdate} and {@link
12198-
* google.maps.journeySharing.Task.remainingVehicleJourneySegments}.
12199-
* @type {!google.maps.journeySharing.Task}
12242+
* Information for the task associated with this marker.
12243+
* @type {!google.maps.journeySharing.TaskTrackingInfo}
1220012244
*/
1220112245
google.maps.journeySharing.ShipmentMarkerCustomizationFunctionParams.prototype
12202-
.task;
12246+
.taskTrackingInfo;
1220312247

1220412248
/**
1220512249
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -12312,6 +12356,100 @@ google.maps.journeySharing.TaskMarkerCustomizationFunctionParams =
1231212356
*/
1231312357
google.maps.journeySharing.TaskMarkerCustomizationFunctionParams.prototype.task;
1231412358

12359+
/**
12360+
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
12361+
*
12362+
* The details for a task tracking info object returned by Fleet Engine.
12363+
* @record
12364+
*/
12365+
google.maps.journeySharing.TaskTrackingInfo = function() {};
12366+
12367+
/**
12368+
* The estimated arrival time to the stop location.
12369+
* @type {?Date}
12370+
*/
12371+
google.maps.journeySharing.TaskTrackingInfo.prototype.estimatedArrivalTime;
12372+
12373+
/**
12374+
* The estimated completion time of a Task.
12375+
* @type {?Date}
12376+
*/
12377+
google.maps.journeySharing.TaskTrackingInfo.prototype
12378+
.estimatedTaskCompletionTime;
12379+
12380+
/**
12381+
* Information specific to the last location update.
12382+
* @type {?google.maps.journeySharing.VehicleLocationUpdate}
12383+
*/
12384+
google.maps.journeySharing.TaskTrackingInfo.prototype
12385+
.latestVehicleLocationUpdate;
12386+
12387+
/**
12388+
* The name in the format
12389+
* &quot;providers/{provider_id}/taskTrackingInfo/{tracking_id}&quot;, where
12390+
* <code>tracking_id</code> represents the tracking ID.
12391+
* @type {string}
12392+
*/
12393+
google.maps.journeySharing.TaskTrackingInfo.prototype.name;
12394+
12395+
/**
12396+
* The location where the Task will be completed.
12397+
* @type {?google.maps.LatLng}
12398+
*/
12399+
google.maps.journeySharing.TaskTrackingInfo.prototype.plannedLocation;
12400+
12401+
/**
12402+
* The total remaining distance in meters to the <code>VehicleStop</code> of
12403+
* interest.
12404+
* @type {?number}
12405+
*/
12406+
google.maps.journeySharing.TaskTrackingInfo.prototype
12407+
.remainingDrivingDistanceMeters;
12408+
12409+
/**
12410+
* Indicates the number of stops the vehicle remaining until the task stop is
12411+
* reached, including the task stop. For example, if the vehicle&#39;s next stop
12412+
* is the task stop, the value will be 1.
12413+
* @type {?number}
12414+
*/
12415+
google.maps.journeySharing.TaskTrackingInfo.prototype.remainingStopCount;
12416+
12417+
/**
12418+
* A list of points which when connected forms a polyline of the vehicle&#39;s
12419+
* expected route to the location of this task.
12420+
* @type {?Array<!google.maps.LatLng>}
12421+
*/
12422+
google.maps.journeySharing.TaskTrackingInfo.prototype.routePolylinePoints;
12423+
12424+
/**
12425+
* The current execution state of the Task.
12426+
* @type {?string}
12427+
*/
12428+
google.maps.journeySharing.TaskTrackingInfo.prototype.state;
12429+
12430+
/**
12431+
* The outcome of attempting to execute a Task.
12432+
* @type {?string}
12433+
*/
12434+
google.maps.journeySharing.TaskTrackingInfo.prototype.taskOutcome;
12435+
12436+
/**
12437+
* The time when the Task&#39;s outcome was set by the provider.
12438+
* @type {?Date}
12439+
*/
12440+
google.maps.journeySharing.TaskTrackingInfo.prototype.taskOutcomeTime;
12441+
12442+
/**
12443+
* The tracking ID of a Task.<br> <ul> <li>Must be a valid Unicode string.</li>
12444+
* <li>Limited to a maximum length of 64 characters.</li> <li>Normalized
12445+
* according to <a href="http://www.unicode.org/reports/tr15/">Unicode
12446+
* Normalization Form C</a>.</li> <li>May not contain any of the following ASCII
12447+
* characters: &#39;/&#39;, &#39;:&#39;, &#39;?&#39;, &#39;,&#39;, or
12448+
* &#39;#&#39;.</li> </ul>
12449+
* @type {string}
12450+
*/
12451+
google.maps.journeySharing.TaskTrackingInfo.prototype.trackingId;
12452+
1231512453
/**
1231612454
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
1231712455
*
@@ -12464,32 +12602,28 @@ google.maps.journeySharing.VehicleJourneySegment = function() {};
1246412602
* The travel distance from the previous stop to this stop, in meters.
1246512603
* @type {?number}
1246612604
*/
12467-
google.maps.journeySharing.VehicleJourneySegment.prototype.distanceMeters;
12605+
google.maps.journeySharing.VehicleJourneySegment.prototype
12606+
.drivingDistanceMeters;
1246812607

1246912608
/**
12470-
* The travel time from the previous stop to this stop, in milliseconds.
12609+
* The travel time from the previous stop this stop, in milliseconds.
1247112610
* @type {?number}
1247212611
*/
12473-
google.maps.journeySharing.VehicleJourneySegment.prototype.durationMillis;
12612+
google.maps.journeySharing.VehicleJourneySegment.prototype
12613+
.drivingDurationMillis;
1247412614

1247512615
/**
12476-
* The extra travel time due to the durations of the stop&#39;s tasks, in
12477-
* milliseconds.
12478-
* @type {?number}
12479-
*/
12480-
google.maps.journeySharing.VehicleJourneySegment.prototype.extraDurationMillis;
12481-
12482-
/**
12483-
* The actual stop location.
12484-
* @type {?google.maps.LatLngLiteral}
12616+
* The path from the previous waypoint (or the vehicle&#39;s current location,
12617+
* if this waypoint is the first in the list of waypoints) to this waypoint.
12618+
* @type {?Array<!google.maps.LatLngLiteral>}
1248512619
*/
12486-
google.maps.journeySharing.VehicleJourneySegment.prototype.location;
12620+
google.maps.journeySharing.VehicleJourneySegment.prototype.path;
1248712621

1248812622
/**
12489-
* The path from the previous stop to this stop.
12490-
* @type {?Array<!google.maps.LatLngLiteral>}
12623+
* The stops to be served by this vehicle.
12624+
* @type {?Array<!google.maps.journeySharing.DeliveryVehicleStop>}
1249112625
*/
12492-
google.maps.journeySharing.VehicleJourneySegment.prototype.path;
12626+
google.maps.journeySharing.VehicleJourneySegment.prototype.stop;
1249312627

1249412628
/**
1249512629
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
@@ -12507,7 +12641,7 @@ google.maps.journeySharing.VehicleLocationUpdate.prototype.heading;
1250712641

1250812642
/**
1250912643
* The location of the update.
12510-
* @type {?google.maps.LatLngLiteral}
12644+
* @type {?google.maps.LatLngLiteral|?google.maps.LatLng}
1251112645
*/
1251212646
google.maps.journeySharing.VehicleLocationUpdate.prototype.location;
1251312647

0 commit comments

Comments
 (0)