@getanyapi/sdk 0.12.0 → 0.12.1
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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -12405,7 +12405,7 @@ interface MapsPlaceHour {
|
|
|
12405
12405
|
*/
|
|
12406
12406
|
interface MapsPlaceData {
|
|
12407
12407
|
/**
|
|
12408
|
-
* The best-matching place for the query, with
|
|
12408
|
+
* The best-matching place for the query, with available address, contact, category, rating, opening-hours, and coordinate details. Up to one element (empty when nothing matched). Populated whenever the provider has data for the entity.
|
|
12409
12409
|
*/
|
|
12410
12410
|
items: MapsPlaceItem[];
|
|
12411
12411
|
}
|
|
@@ -12533,7 +12533,7 @@ interface MapsSearchInput {
|
|
|
12533
12533
|
*/
|
|
12534
12534
|
language?: string;
|
|
12535
12535
|
/**
|
|
12536
|
-
* Maximum number of results to return (1-20, default 20).
|
|
12536
|
+
* Maximum number of results to return (1-20, default 20). Pricing depends on the selected provider and may be flat per request.
|
|
12537
12537
|
* Range: minimum 1, maximum 20.
|
|
12538
12538
|
*/
|
|
12539
12539
|
limit?: number;
|
|
@@ -12669,9 +12669,9 @@ declare class MapsNamespace {
|
|
|
12669
12669
|
/**
|
|
12670
12670
|
* Google Maps Place Lookup
|
|
12671
12671
|
*
|
|
12672
|
-
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with
|
|
12672
|
+
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
|
|
12673
12673
|
*
|
|
12674
|
-
* Price: $0.
|
|
12674
|
+
* Price: $0.00297 per request.
|
|
12675
12675
|
*
|
|
12676
12676
|
* @example
|
|
12677
12677
|
* const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
|
|
@@ -12693,7 +12693,7 @@ declare class MapsNamespace {
|
|
|
12693
12693
|
*
|
|
12694
12694
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
12695
12695
|
*
|
|
12696
|
-
* Price: $0.
|
|
12696
|
+
* Price: $0.00297 per request.
|
|
12697
12697
|
*
|
|
12698
12698
|
* @example
|
|
12699
12699
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
|
|
@@ -21083,7 +21083,7 @@ interface WebScrapeInput {
|
|
|
21083
21083
|
*/
|
|
21084
21084
|
excludeTags?: string[];
|
|
21085
21085
|
/**
|
|
21086
|
-
* Which representations of the page to return. Any combination of: markdown (
|
|
21086
|
+
* Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (cleaned HTML), rawHtml (verbatim page HTML). Each requested format is returned under the matching output field. Defaults to Markdown and raw HTML.
|
|
21087
21087
|
*/
|
|
21088
21088
|
formats?: ("markdown" | "html" | "rawHtml")[];
|
|
21089
21089
|
/**
|
|
@@ -21095,8 +21095,8 @@ interface WebScrapeInput {
|
|
|
21095
21095
|
*/
|
|
21096
21096
|
mobile?: boolean;
|
|
21097
21097
|
/**
|
|
21098
|
-
* When true
|
|
21099
|
-
* Default:
|
|
21098
|
+
* When true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page.
|
|
21099
|
+
* Default: false.
|
|
21100
21100
|
*/
|
|
21101
21101
|
onlyMainContent?: boolean;
|
|
21102
21102
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -12405,7 +12405,7 @@ interface MapsPlaceHour {
|
|
|
12405
12405
|
*/
|
|
12406
12406
|
interface MapsPlaceData {
|
|
12407
12407
|
/**
|
|
12408
|
-
* The best-matching place for the query, with
|
|
12408
|
+
* The best-matching place for the query, with available address, contact, category, rating, opening-hours, and coordinate details. Up to one element (empty when nothing matched). Populated whenever the provider has data for the entity.
|
|
12409
12409
|
*/
|
|
12410
12410
|
items: MapsPlaceItem[];
|
|
12411
12411
|
}
|
|
@@ -12533,7 +12533,7 @@ interface MapsSearchInput {
|
|
|
12533
12533
|
*/
|
|
12534
12534
|
language?: string;
|
|
12535
12535
|
/**
|
|
12536
|
-
* Maximum number of results to return (1-20, default 20).
|
|
12536
|
+
* Maximum number of results to return (1-20, default 20). Pricing depends on the selected provider and may be flat per request.
|
|
12537
12537
|
* Range: minimum 1, maximum 20.
|
|
12538
12538
|
*/
|
|
12539
12539
|
limit?: number;
|
|
@@ -12669,9 +12669,9 @@ declare class MapsNamespace {
|
|
|
12669
12669
|
/**
|
|
12670
12670
|
* Google Maps Place Lookup
|
|
12671
12671
|
*
|
|
12672
|
-
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with
|
|
12672
|
+
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
|
|
12673
12673
|
*
|
|
12674
|
-
* Price: $0.
|
|
12674
|
+
* Price: $0.00297 per request.
|
|
12675
12675
|
*
|
|
12676
12676
|
* @example
|
|
12677
12677
|
* const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
|
|
@@ -12693,7 +12693,7 @@ declare class MapsNamespace {
|
|
|
12693
12693
|
*
|
|
12694
12694
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
12695
12695
|
*
|
|
12696
|
-
* Price: $0.
|
|
12696
|
+
* Price: $0.00297 per request.
|
|
12697
12697
|
*
|
|
12698
12698
|
* @example
|
|
12699
12699
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
|
|
@@ -21083,7 +21083,7 @@ interface WebScrapeInput {
|
|
|
21083
21083
|
*/
|
|
21084
21084
|
excludeTags?: string[];
|
|
21085
21085
|
/**
|
|
21086
|
-
* Which representations of the page to return. Any combination of: markdown (
|
|
21086
|
+
* Which representations of the page to return. Any combination of: markdown (page content as Markdown), html (cleaned HTML), rawHtml (verbatim page HTML). Each requested format is returned under the matching output field. Defaults to Markdown and raw HTML.
|
|
21087
21087
|
*/
|
|
21088
21088
|
formats?: ("markdown" | "html" | "rawHtml")[];
|
|
21089
21089
|
/**
|
|
@@ -21095,8 +21095,8 @@ interface WebScrapeInput {
|
|
|
21095
21095
|
*/
|
|
21096
21096
|
mobile?: boolean;
|
|
21097
21097
|
/**
|
|
21098
|
-
* When true
|
|
21099
|
-
* Default:
|
|
21098
|
+
* When true, return only the main article content, stripping navigation, headers, footers, and other boilerplate. Defaults to false to capture the full page.
|
|
21099
|
+
* Default: false.
|
|
21100
21100
|
*/
|
|
21101
21101
|
onlyMainContent?: boolean;
|
|
21102
21102
|
/**
|
package/dist/index.js
CHANGED
|
@@ -3203,9 +3203,9 @@ var MapsNamespace = class {
|
|
|
3203
3203
|
/**
|
|
3204
3204
|
* Google Maps Place Lookup
|
|
3205
3205
|
*
|
|
3206
|
-
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with
|
|
3206
|
+
* Look up a place on Google Maps by name or search query (optionally scoped to a location) and get the best-matching place with available address, contact, rating, and coordinate details as normalized JSON.
|
|
3207
3207
|
*
|
|
3208
|
-
* Price: $0.
|
|
3208
|
+
* Price: $0.00297 per request.
|
|
3209
3209
|
*
|
|
3210
3210
|
* @example
|
|
3211
3211
|
* const res = await client.maps.place({ query: "Blue Bottle Coffee", location: "San Francisco, CA", website: "withWebsite" });
|
|
@@ -3231,7 +3231,7 @@ var MapsNamespace = class {
|
|
|
3231
3231
|
*
|
|
3232
3232
|
* Search Google Maps for places matching a query and location: up to 20 normalized place records with ratings, addresses, and contact basics per request.
|
|
3233
3233
|
*
|
|
3234
|
-
* Price: $0.
|
|
3234
|
+
* Price: $0.00297 per request.
|
|
3235
3235
|
*
|
|
3236
3236
|
* @example
|
|
3237
3237
|
* const res = await client.maps.search({ location: "Austin, TX", query: "coffee", limit: 3, placeMinimumStars: "four", website: "withWebsite" });
|