Skip to content

Commit

Permalink
Update quarterly and weekly Maps JavaScript API typings for 3.56.1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 611505097
  • Loading branch information
googlemaps-bot committed Feb 29, 2024
1 parent d6e0210 commit 32725e7
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.55.0
3.56.0
134 changes: 127 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -4483,13 +4483,23 @@ 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
* <a
* href="https://developers.google.com/maps/deprecations">https://developers.google.com/maps/deprecations</a>
* for deprecation details.
*/
export class Marker extends google.maps.MVCObject {
/**
* Access by calling `const {Marker} = await
* 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 <a
* href="https://developers.google.com/maps/deprecations">https://developers.google.com/maps/deprecations</a>
* for deprecation details.
*/
constructor(opts?: google.maps.MarkerOptions | null);
/**
Expand Down Expand Up @@ -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
* <a
* href="https://developers.google.com/maps/deprecations">https://developers.google.com/maps/deprecations</a>
* for deprecation details.
*/
export interface MarkerOptions {
/**
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
hasFreeGarageParking: boolean | null;
/**
* Whether a place offers free parking lots. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
hasFreeParkingLot: boolean | null;
/**
* Whether a place offers free street parking. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
hasFreeStreetParking: boolean | null;
/**
* Whether a place offers paid garage parking. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
hasPaidGarageParking: boolean | null;
/**
* Whether a place offers paid parking lots. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
hasPaidParkingLot: boolean | null;
/**
* Whether a place offers paid street parking. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
hasPaidStreetParking: boolean | null;
/**
* Whether a place offers valet parking. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; 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 &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
acceptsCashOnly: boolean | null;
/**
* Whether a place accepts payment via credit card. Returns &#39;true&#39;
* or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
acceptsCreditCards: boolean | null;
/**
* Whether a place accepts payment via debit card. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
acceptsDebitCards: boolean | null;
/**
* Whether a place accepts payment via NFC. Returns &#39;true&#39; or
* &#39;false&#39; if the value is known. Returns &#39;null&#39; if the
* value is unknown.
*/
acceptsNFC: boolean | null;
}
/**
* Available only in the v=beta channel: https://goo.gle/3oAthT3.
*
Expand Down Expand Up @@ -12867,6 +12965,7 @@ declare namespace google.maps.places {
* href="http://microformats.org/wiki/adr">adr microformat</a>.
*/
adrFormatAddress?: string | null;
allowsDogs?: boolean | null;
/**
* Attribution text to be displayed for this Place result.
*/
Expand Down Expand Up @@ -12935,13 +13034,18 @@ declare namespace google.maps.places {
* &#39;undefined&#39; 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 &#39;true&#39; or &#39;false&#39; if
* the value is known. Returns &#39;null&#39; if the value is unknown.
* Returns
* &#39;undefined&#39; if this field has not yet been requested.
*/
hasTakeout?: boolean | null;
hasWiFi?: boolean | null;
/**
* The default HEX color code for the place&#39;s category.
*/
Expand All @@ -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
Expand Down Expand Up @@ -12985,6 +13092,16 @@ declare namespace google.maps.places {
* instead.
*/
openingHours?: google.maps.places.OpeningHours | null;
/**
* Options of parking provided by the place. <code>undefined</code> 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. <code>undefined</code> 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.
Expand Down Expand Up @@ -13037,6 +13154,9 @@ declare namespace google.maps.places {
* &#39;undefined&#39; 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 &#39;true&#39; or &#39;false&#39;
* if the value is known. Returns &#39;null&#39; if the value is unknown.
Expand Down Expand Up @@ -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 <code>event.place</code>.
Expand All @@ -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 <code>event.place</code>.
Expand All @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -14286,7 +14406,7 @@ declare namespace google.maps.places {
/**
* Fields to be included in the response, <a
* href="https://developers.google.com/maps/billing/understanding-cost-of-use#places-product">which
* will be billed for</a>. If <code>[&#39;ALL&#39;]</code> is passed in, all
* will be billed for</a>. If <code>[&#39;*&#39;]</code> 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
Expand Down

0 comments on commit 32725e7

Please sign in to comment.