@maxim_mazurok/gapi.client.places-v1 0.0.20241029 → 0.0.20241106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +28 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://places.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20241029
12
+ // Revision: 20241106
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -75,6 +75,8 @@ declare namespace gapi.client {
75
75
  includedPrimaryTypes?: string[];
76
76
  /** Optional. Only include results in the specified regions, specified as up to 15 CLDR two-character region codes. An empty set will not restrict the results. If both `location_restriction` and `included_region_codes` are set, the results will be located in the area of intersection. */
77
77
  includedRegionCodes?: string[];
78
+ /** Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including `location`, `plus_code`, and other location related fields for these businesses. */
79
+ includePureServiceAreaBusinesses?: boolean;
78
80
  /** Optional. If true, the response will include both Place and query predictions. Otherwise the response will only return Place predictions. */
79
81
  includeQueryPredictions?: boolean;
80
82
  /** Required. The text string on which to search. */
@@ -271,7 +273,10 @@ declare namespace gapi.client {
271
273
  areaSummary?: GoogleMapsPlacesV1PlaceAreaSummary;
272
274
  /** A set of data provider that must be shown with this result. */
273
275
  attributions?: GoogleMapsPlacesV1PlaceAttribution[];
276
+ /** The business status for the place. */
274
277
  businessStatus?: string;
278
+ /** List of places in which the current place is located. */
279
+ containingPlaces?: GoogleMapsPlacesV1PlaceContainingPlace[];
275
280
  /** Specifies if the business supports curbside pickup. */
276
281
  curbsidePickup?: boolean;
277
282
  /** The hours of operation for the next seven days (including today). The time period starts at midnight on the date of the request and ends at 11:59 pm six days later. This field includes the special_days subfield of all hours, set for dates that have exceptional hours. */
@@ -334,10 +339,14 @@ declare namespace gapi.client {
334
339
  plusCode?: GoogleMapsPlacesV1PlacePlusCode;
335
340
  /** Price level of the place. */
336
341
  priceLevel?: string;
342
+ /** The price range associated with a Place. */
343
+ priceRange?: GoogleMapsPlacesV1PriceRange;
337
344
  /** The primary type of the given result. This type must one of the Places API supported types. For example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types */
338
345
  primaryType?: string;
339
346
  /** The display name of the primary type, localized to the request language if applicable. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types */
340
347
  primaryTypeDisplayName?: GoogleTypeLocalizedText;
348
+ /** Indicates whether the place is a pure service area business. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses may not have a physical address or location on Google Maps. */
349
+ pureServiceAreaBusiness?: boolean;
341
350
  /** A rating between 1.0 and 5.0, based on user reviews of this place. */
342
351
  rating?: number;
343
352
  /** The regular hours of operation. */
@@ -419,6 +428,12 @@ declare namespace gapi.client {
419
428
  /** URI to the Place's data provider. */
420
429
  providerUri?: string;
421
430
  }
431
+ interface GoogleMapsPlacesV1PlaceContainingPlace {
432
+ /** The place id of the place in which this place is located. */
433
+ id?: string;
434
+ /** The resource name of the place in which this place is located. */
435
+ name?: string;
436
+ }
422
437
  interface GoogleMapsPlacesV1PlaceGenerativeSummary {
423
438
  /** The detailed description of the place. */
424
439
  description?: GoogleTypeLocalizedText;
@@ -444,6 +459,10 @@ declare namespace gapi.client {
444
459
  writeAReviewUri?: string;
445
460
  }
446
461
  interface GoogleMapsPlacesV1PlaceOpeningHours {
462
+ /** The next time the current opening hours period ends up to 7 days in the future. This field is only populated if the opening hours period is active at the time of serving the request. */
463
+ nextCloseTime?: string;
464
+ /** The next time the current opening hours period starts up to 7 days in the future. This field is only populated if the opening hours period is not active at the time of serving the request. */
465
+ nextOpenTime?: string;
447
466
  /** Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active. */
448
467
  openNow?: boolean;
449
468
  /** The periods that this place is open during the week. The periods are in chronological order, starting with Sunday in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. */
@@ -519,6 +538,12 @@ declare namespace gapi.client {
519
538
  /** An [encoded polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), as returned by the [Routes API by default](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding). See the [encoder](https://developers.google.com/maps/documentation/utilities/polylineutility) and [decoder](https://developers.google.com/maps/documentation/routes/polylinedecoder) tools. */
520
539
  encodedPolyline?: string;
521
540
  }
541
+ interface GoogleMapsPlacesV1PriceRange {
542
+ /** The high end of the price range (exclusive). Price should be lower than this amount. */
543
+ endPrice?: GoogleTypeMoney;
544
+ /** The low end of the price range (inclusive). Price should be at or above this amount. */
545
+ startPrice?: GoogleTypeMoney;
546
+ }
522
547
  interface GoogleMapsPlacesV1References {
523
548
  /** The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names. */
524
549
  places?: string[];
@@ -614,6 +639,8 @@ declare namespace gapi.client {
614
639
  evOptions?: GoogleMapsPlacesV1SearchTextRequestEVOptions;
615
640
  /** The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type. */
616
641
  includedType?: string;
642
+ /** Optional. Include pure service area businesses if the field is set to true. Pure service area business is a business that visits or delivers to customers directly but does not serve customers at their business address. For example, businesses like cleaning services or plumbers. Those businesses do not have a physical address or location on Google Maps. Places will not return fields including `location`, `plus_code`, and other location related fields for these businesses. */
643
+ includePureServiceAreaBusinesses?: boolean;
617
644
  /** Place details will be displayed with the preferred language if available. If the language code is unspecified or unrecognized, place details of any language may be returned, with a preference for English if such details exist. Current list of supported languages: https://developers.google.com/maps/faq#languagesupport. */
618
645
  languageCode?: string;
619
646
  /** The region to search. This location serves as a bias which means results around given location might be returned. Cannot be set along with location_restriction. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.places-v1",
3
- "version": "0.0.20241029",
3
+ "version": "0.0.20241106",
4
4
  "description": "TypeScript typings for Places API (New) v1",
5
5
  "repository": {
6
6
  "type": "git",