From 32725e71a1cfc3fc8ea4e72d08368285ccb3261f Mon Sep 17 00:00:00 2001 From: googlemaps-bot Date: Thu, 29 Feb 2024 09:53:41 -0800 Subject: [PATCH] Update quarterly and weekly Maps JavaScript API typings for 3.56.1 PiperOrigin-RevId: 611505097 --- VERSION | 2 +- index.d.ts | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 128 insertions(+), 8 deletions(-) diff --git a/VERSION b/VERSION index 8265151..ba8d246 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.55.0 +3.56.0 diff --git a/index.d.ts b/index.d.ts index 77c9388..47676e6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -// Google Maps JS API Version: 3.55 +// Google Maps JS API Version: 3.56 // tslint:disable:enforce-name-casing // tslint:disable:no-any // tslint:disable:interface-over-type-literal @@ -4483,6 +4483,11 @@ declare namespace google.maps { * Access by calling `const {Marker} = await * google.maps.importLibrary("marker")`. See * https://developers.google.com/maps/documentation/javascript/libraries. + * @deprecated As of February 21st, 2024, google.maps.Marker is deprecated. + * Please use google.maps.marker.AdvancedMarkerElement instead. Please see + * https://developers.google.com/maps/deprecations + * for deprecation details. */ export class Marker extends google.maps.MVCObject { /** @@ -4490,6 +4495,11 @@ declare namespace google.maps { * google.maps.importLibrary("marker")`. See * https://developers.google.com/maps/documentation/javascript/libraries. * @param opts Named optional arguments + * @deprecated As of February 21st, 2024, google.maps.Marker is deprecated. + * Please use google.maps.marker.AdvancedMarkerElement instead. Please + * see https://developers.google.com/maps/deprecations + * for deprecation details. */ constructor(opts?: google.maps.MarkerOptions | null); /** @@ -4694,6 +4704,11 @@ declare namespace google.maps { /** * MarkerOptions object used to define the properties that can be set on a * Marker. + * @deprecated As of February 21st, 2024, google.maps.Marker is deprecated. + * Please use google.maps.marker.AdvancedMarkerElement instead. Please see + * https://developers.google.com/maps/deprecations + * for deprecation details. */ export interface MarkerOptions { /** @@ -5125,6 +5140,8 @@ declare namespace google.maps { OpeningHours: typeof google.maps.places.OpeningHours; OpeningHoursPeriod: typeof google.maps.places.OpeningHoursPeriod; OpeningHoursPoint: typeof google.maps.places.OpeningHoursPoint; + ParkingOptions: typeof google.maps.places.ParkingOptions; + PaymentOptions: typeof google.maps.places.PaymentOptions; Photo: typeof google.maps.places.Photo; Place: typeof google.maps.places.Place; PlacesService: typeof google.maps.places.PlacesService; @@ -12800,6 +12817,87 @@ declare namespace google.maps.places { */ minute: number; } + /** + * Access by calling `const {ParkingOptions} = await + * google.maps.importLibrary("places")`. See + * https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class ParkingOptions { + /** + * Whether a place offers free garage parking. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + hasFreeGarageParking: boolean | null; + /** + * Whether a place offers free parking lots. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + hasFreeParkingLot: boolean | null; + /** + * Whether a place offers free street parking. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + hasFreeStreetParking: boolean | null; + /** + * Whether a place offers paid garage parking. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + hasPaidGarageParking: boolean | null; + /** + * Whether a place offers paid parking lots. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + hasPaidParkingLot: boolean | null; + /** + * Whether a place offers paid street parking. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + hasPaidStreetParking: boolean | null; + /** + * Whether a place offers valet parking. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + hasValetParking: boolean | null; + } + /** + * Access by calling `const {PaymentOptions} = await + * google.maps.importLibrary("places")`. See + * https://developers.google.com/maps/documentation/javascript/libraries. + */ + export class PaymentOptions { + /** + * Whether a place only accepts payment via cash. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + acceptsCashOnly: boolean | null; + /** + * Whether a place accepts payment via credit card. Returns 'true' + * or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + acceptsCreditCards: boolean | null; + /** + * Whether a place accepts payment via debit card. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + acceptsDebitCards: boolean | null; + /** + * Whether a place accepts payment via NFC. Returns 'true' or + * 'false' if the value is known. Returns 'null' if the + * value is unknown. + */ + acceptsNFC: boolean | null; + } /** * Available only in the v=beta channel: https://goo.gle/3oAthT3. * @@ -12867,6 +12965,7 @@ declare namespace google.maps.places { * href="http://microformats.org/wiki/adr">adr microformat. */ adrFormatAddress?: string | null; + allowsDogs?: boolean | null; /** * Attribution text to be displayed for this Place result. */ @@ -12935,6 +13034,10 @@ declare namespace google.maps.places { * 'undefined' if this field has not yet been requested. */ hasDineIn?: boolean | null; + hasLiveMusic?: boolean | null; + hasMenuForChildren?: boolean | null; + hasOutdoorSeating?: boolean | null; + hasRestroom?: boolean | null; /** * Whether a place has takeout. Returns 'true' or 'false' if * the value is known. Returns 'null' if the value is unknown. @@ -12942,6 +13045,7 @@ declare namespace google.maps.places { * 'undefined' if this field has not yet been requested. */ hasTakeout?: boolean | null; + hasWiFi?: boolean | null; /** * The default HEX color code for the place's category. */ @@ -12955,6 +13059,9 @@ declare namespace google.maps.places { * includes the country code, and is prefixed with the plus (+) sign. */ internationalPhoneNumber?: string | null; + isGoodForChildren?: boolean | null; + isGoodForGroups?: boolean | null; + isGoodForWatchingSports?: boolean | null; /** * Available only in the v=beta channel: https://goo.gle/3oAthT3. * Check if the place is open at the given datetime. Resolves with @@ -12985,6 +13092,16 @@ declare namespace google.maps.places { * instead. */ openingHours?: google.maps.places.OpeningHours | null; + /** + * Options of parking provided by the place. undefined if the + * parking options data have not been called for from the server. + */ + parkingOptions?: google.maps.places.ParkingOptions | null; + /** + * Payment options provided by the place. undefined if the + * payment options data have not been called for from the server. + */ + paymentOptions?: google.maps.places.PaymentOptions | null; /** * Photos of this Place. The collection will contain up to ten {@link * google.maps.places.Photo} objects. @@ -13037,6 +13154,9 @@ declare namespace google.maps.places { * 'undefined' if this field has not yet been requested. */ servesBrunch?: boolean | null; + servesCocktails?: boolean | null; + servesCoffee?: boolean | null; + servesDessert?: boolean | null; /** * Whether a place serves dinner. Returns 'true' or 'false' * if the value is known. Returns 'null' if the value is unknown. @@ -13272,7 +13392,7 @@ declare namespace google.maps.places { types?: string[] | null; } /** - * Available only in the v=alpha channel: https://goo.gle/js-alpha-channel. + * Available only in the v=beta channel: https://goo.gle/3oAthT3. * * This event is created after the user selects a place with the Place * Autocomplete Element. Access the selection with event.place. @@ -13283,7 +13403,7 @@ declare namespace google.maps.places { */ export class PlaceAutocompletePlaceSelectEvent extends Event { /** - * Available only in the v=alpha channel: https://goo.gle/js-alpha-channel. + * Available only in the v=beta channel: https://goo.gle/3oAthT3. * * This event is created after the user selects a place with the Place * Autocomplete Element. Access the selection with event.place. @@ -13294,12 +13414,12 @@ declare namespace google.maps.places { */ constructor(); /** - * Available only in the v=alpha channel: https://goo.gle/js-alpha-channel. + * Available only in the v=beta channel: https://goo.gle/3oAthT3. */ place: google.maps.places.Place; } /** - * Available only in the v=alpha channel: https://goo.gle/js-alpha-channel. + * Available only in the v=beta channel: https://goo.gle/3oAthT3. * * This event is emitted by the PlaceAutocompleteElement when there is an * issue with the network request. @@ -13310,7 +13430,7 @@ declare namespace google.maps.places { */ export class PlaceAutocompleteRequestErrorEvent extends Event { /** - * Available only in the v=alpha channel: https://goo.gle/js-alpha-channel. + * Available only in the v=beta channel: https://goo.gle/3oAthT3. * * This event is emitted by the PlaceAutocompleteElement when there is an * issue with the network request. @@ -14286,7 +14406,7 @@ declare namespace google.maps.places { /** * Fields to be included in the response, which - * will be billed for. If ['ALL'] is passed in, all + * will be billed for. If ['*'] is passed in, all * available fields will be returned and billed for (this is not recommended * for production deployments). For a list of fields see {@link * google.maps.places.PlaceResult}. Nested fields can be specified with