diff --git a/types/google.maps/google.maps-tests.ts b/types/google.maps/google.maps-tests.ts index 3ad0b69062..2c7711986d 100644 --- a/types/google.maps/google.maps-tests.ts +++ b/types/google.maps/google.maps-tests.ts @@ -1,3 +1,3 @@ // No tests required for generated types -// Synced from: https://github.com/googlemaps/js-types/commit/5ae7b651aa36bb3b588cdb3f54a7b47ae634e2c7 +// Synced from: https://github.com/googlemaps/js-types/commit/9a624940d7a281dc31b7d911c061a1a1eef06b6d google.maps.Map; diff --git a/types/google.maps/index.d.ts b/types/google.maps/index.d.ts index 53bc64b891..cbe76af712 100644 --- a/types/google.maps/index.d.ts +++ b/types/google.maps/index.d.ts @@ -7938,7 +7938,8 @@ declare namespace google.maps.journeySharing { */ export interface AuthToken { /** - * The expiration time of this token, in seconds from token issuance. + * The expiration time in seconds. A token expires in this amount of time + * after fetching. */ expiresInSeconds: number; /** @@ -8074,7 +8075,10 @@ declare namespace google.maps.journeySharing { remainingDurationMillis: number|null; /** * The journey segments assigned to this delivery vehicle, starting from the - * vehicle's most recently reported location. + * vehicle's most recently reported location. This is only populated + * when the {@link google.maps.journeySharing.DeliveryVehicle} data object + * is provided through {@link + * google.maps.journeySharing.FleetEngineDeliveryVehicleLocationProvider}. */ remainingVehicleJourneySegments: google.maps.journeySharing.VehicleJourneySegment[]; @@ -8097,12 +8101,20 @@ declare namespace google.maps.journeySharing { * DeliveryVehicleStop type */ export interface DeliveryVehicleStop { + /** + * The location of the stop. + */ + plannedLocation: google.maps.LatLngLiteral|null; + /** + * The state of the stop. + */ + state: google.maps.journeySharing.DeliveryVehicleStopState|null; /** * The list of Tasks to be performed at this stop. */ - tasks: {extraDurationMillis: number|null, id: string|null}[]; + tasks: google.maps.journeySharing.TaskInfo[]; } /** * The current state of a {@link @@ -9503,6 +9515,24 @@ declare namespace google.maps.journeySharing { */ vehicleId: string|null; } + /** + * TaskInfo type, used by {@link + * google.maps.journeySharing.DeliveryVehicleStop}. + */ + export interface TaskInfo { + /** + * The extra time it takes to perform the task, in milliseconds. + */ + extraDurationMillis: number|null; + /** + * The ID of the task. + */ + id: string|null; + /** + * The time window during which the task should be completed. + */ + targetTimeWindow: google.maps.journeySharing.TimeWindow|null; + } /** * Parameters specific to marker customization functions that apply options to * markers representing planned or actual task locations. Used by {@link @@ -10244,7 +10274,7 @@ declare namespace google.maps.marker { /** * See {@link google.maps.marker.AdvancedMarkerElementOptions.content}. */ - content?: null|Element; + content?: null|Node; /** * This field is read-only. The DOM Element backing the view. */ @@ -10296,7 +10326,7 @@ declare namespace google.maps.marker { * cause the previous AdvancedMarkerElement to look empty. * @defaultValue {@link google.maps.marker.PinElement.element} */ - content?: null|Element; + content?: null|Node; /** * If true, the AdvancedMarkerElement can be * dragged.

Note: AdvancedMarkerElement