diff --git a/types/google__maps/index.d.ts b/types/google__maps/index.d.ts index f1df5d8f38..2745cafe62 100644 --- a/types/google__maps/index.d.ts +++ b/types/google__maps/index.d.ts @@ -2404,9 +2404,36 @@ export interface PlaceDetailsRequest { * parameter from a request, ALL possible fields will be returned, and you will be billed accordingly. * This applies only to Place Details requests. */ - fields?: Array; + fields?: PlaceDetailsRequestField[]; } +export type PlaceDetailsRequestField = ( + "address_component" | + "adr_address" | + "alt_id" | + "formatted_address" | + "geometry" | + "icon" | + "id" | + "name" | + "permanently_closed" | + "photo" | + "place_id" | + "plus_code" | + "scope" | + "type" | + "url" | + "user_ratings_total" | + "utc_offset" | + "vicinity" | + "formatted_phone_number" | + "international_phone_number" | + "opening_hours" | + "website" | + "price_level" | + "rating" | + "review"); + export interface PlaceDetailsResponse { /** contains metadata on the request. */ status: PlaceDetailsResponseStatus;