@maxim_mazurok/gapi.client.areainsights-v1 0.0.20250317 → 0.0.20250324
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.
- package/index.d.ts +4 -4
- package/package.json +2 -2
- package/readme.md +5 -5
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Type definitions for non-npm package Places
|
|
1
|
+
/* Type definitions for non-npm package Places Aggregate API v1 0.0 */
|
|
2
2
|
// Project: https://g3doc.corp.google.com/geo/platform/area_insights/README.md?cl=head
|
|
3
3
|
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
@@ -9,12 +9,12 @@
|
|
|
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://areainsights.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250324
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
16
16
|
declare namespace gapi.client {
|
|
17
|
-
/** Load Places
|
|
17
|
+
/** Load Places Aggregate API v1 */
|
|
18
18
|
function load(
|
|
19
19
|
urlOrObject: 'https://areainsights.googleapis.com/$discovery/rest?version=v1',
|
|
20
20
|
): Promise<void>;
|
|
@@ -103,7 +103,7 @@ declare namespace gapi.client {
|
|
|
103
103
|
includedTypes?: string[];
|
|
104
104
|
}
|
|
105
105
|
interface V1Resource {
|
|
106
|
-
/**
|
|
106
|
+
/** This method lets you retrieve insights about areas using a variety of filter such as: area, place type, operating status, price level and ratings. Currently "count" and "places" insights are supported. With "count" insights you can answer questions such as "How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars" (see `insight` enum for more details). With "places" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API. */
|
|
107
107
|
computeInsights(request: {
|
|
108
108
|
/** V1 error format. */
|
|
109
109
|
'$.xgafv'?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.areainsights-v1",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "TypeScript typings for Places
|
|
3
|
+
"version": "0.0.20250324",
|
|
4
|
+
"description": "TypeScript typings for Places Aggregate API v1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
package/readme.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# TypeScript typings for Places
|
|
1
|
+
# TypeScript typings for Places Aggregate API v1
|
|
2
2
|
|
|
3
|
-
Places
|
|
3
|
+
Places Aggregate API.
|
|
4
4
|
For detailed description please check [documentation](https://g3doc.corp.google.com/geo/platform/area_insights/README.md?cl=head).
|
|
5
5
|
|
|
6
6
|
## Installing
|
|
7
7
|
|
|
8
|
-
Install typings for Places
|
|
8
|
+
Install typings for Places Aggregate API:
|
|
9
9
|
|
|
10
10
|
```
|
|
11
11
|
npm install @types/gapi.client.areainsights-v1 --save-dev
|
|
@@ -66,11 +66,11 @@ gapi.auth.authorize(
|
|
|
66
66
|
);
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
After that you can use Places
|
|
69
|
+
After that you can use Places Aggregate API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
/*
|
|
73
|
-
|
|
73
|
+
This method lets you retrieve insights about areas using a variety of filter such as: area, place type, operating status, price level and ratings. Currently "count" and "places" insights are supported. With "count" insights you can answer questions such as "How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars" (see `insight` enum for more details). With "places" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API.
|
|
74
74
|
*/
|
|
75
75
|
await gapi.client.areainsights.computeInsights({});
|
|
76
76
|
```
|