@getanyapi/sdk 0.144.1 → 0.145.0
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 +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -6
- package/dist/index.d.ts +25 -6
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -25997,7 +25997,7 @@ declare class GoogleAdsNamespace {
|
|
|
25997
25997
|
* Price: $0.0012 per request.
|
|
25998
25998
|
*
|
|
25999
25999
|
* @example
|
|
26000
|
-
* const res = await client.googleAds.adDetails({ url: "https://adstransparency.google.com/advertiser/
|
|
26000
|
+
* const res = await client.googleAds.adDetails({ url: "https://adstransparency.google.com/advertiser/AR13309761427309854721/creative/CR00826878176251609089" });
|
|
26001
26001
|
*/
|
|
26002
26002
|
adDetails(input: GoogleAdsAdDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleAdsAdDetailsData>>;
|
|
26003
26003
|
/**
|
|
@@ -68710,16 +68710,20 @@ interface TripadvisorReviewsInput {
|
|
|
68710
68710
|
* Default: true.
|
|
68711
68711
|
*/
|
|
68712
68712
|
allowFallbacks?: boolean;
|
|
68713
|
+
/**
|
|
68714
|
+
* Pagination cursor from a previous response's nextCursor. Omit for the first page.
|
|
68715
|
+
*/
|
|
68716
|
+
cursor?: string;
|
|
68713
68717
|
/**
|
|
68714
68718
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
|
|
68715
68719
|
*/
|
|
68716
68720
|
ignoreSources?: string[];
|
|
68717
68721
|
/**
|
|
68718
|
-
* Only return reviews in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages.
|
|
68722
|
+
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
68719
68723
|
*/
|
|
68720
68724
|
languages?: string[];
|
|
68721
68725
|
/**
|
|
68722
|
-
*
|
|
68726
|
+
* Reviews per page (1-20, default 20). Sources that page return one page of up to `limit` reviews, newest first, with a nextCursor for the next page; sources that cannot page return up to `limit` reviews in one call with no nextCursor.
|
|
68723
68727
|
* Range: minimum 1, maximum 20.
|
|
68724
68728
|
*/
|
|
68725
68729
|
limit?: number;
|
|
@@ -68732,6 +68736,10 @@ interface TripadvisorReviewsInput {
|
|
|
68732
68736
|
* Only return reviews whose bubble rating is in this set (e.g. ["5", "4"] for 4 and 5 star reviews); omit for all ratings.
|
|
68733
68737
|
*/
|
|
68734
68738
|
ratings?: ("1" | "2" | "3" | "4" | "5")[];
|
|
68739
|
+
/**
|
|
68740
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. nextCursor is null on the last page. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
68741
|
+
*/
|
|
68742
|
+
requireFields?: "nextCursor"[];
|
|
68735
68743
|
/**
|
|
68736
68744
|
* Only return reviews newer than this date, YYYY-MM-DD or a relative window like '3 months' (e.g. 2026-01-01).
|
|
68737
68745
|
*/
|
|
@@ -68780,7 +68788,7 @@ interface TripadvisorReviewsItem {
|
|
|
68780
68788
|
*/
|
|
68781
68789
|
id?: string;
|
|
68782
68790
|
/**
|
|
68783
|
-
*
|
|
68791
|
+
* ISO 639-1 code of the language the review was originally written in (e.g. en, es). On some requests `title` and `text` are Tripadvisor's English machine translation of a review written in another language; this code still names the original language. A request with `languages` always returns the original text.
|
|
68784
68792
|
*/
|
|
68785
68793
|
language?: string;
|
|
68786
68794
|
/**
|
|
@@ -68835,6 +68843,10 @@ interface TripadvisorReviewsData {
|
|
|
68835
68843
|
* Review records for the place: rating, title, review text, publish date, trip type, and reviewer details. Populated whenever the provider has data for the entity.
|
|
68836
68844
|
*/
|
|
68837
68845
|
items: TripadvisorReviewsItem[];
|
|
68846
|
+
/**
|
|
68847
|
+
* Opaque cursor for the next page of reviews, or null when there are no more. Pass it back as cursor to continue. Absent on sources that cannot page.
|
|
68848
|
+
*/
|
|
68849
|
+
nextCursor?: string | null;
|
|
68838
68850
|
}
|
|
68839
68851
|
/**
|
|
68840
68852
|
* Input for Tripadvisor Search (tripadvisor.search).
|
|
@@ -68898,7 +68910,7 @@ interface TripadvisorSearchItem {
|
|
|
68898
68910
|
*/
|
|
68899
68911
|
address?: string;
|
|
68900
68912
|
/**
|
|
68901
|
-
* High-level category
|
|
68913
|
+
* High-level category: hotel, restaurant, attraction, or geo for a destination such as a city.
|
|
68902
68914
|
*/
|
|
68903
68915
|
category?: string;
|
|
68904
68916
|
/**
|
|
@@ -68966,7 +68978,7 @@ interface TripadvisorSearchItem {
|
|
|
68966
68978
|
*/
|
|
68967
68979
|
title: string;
|
|
68968
68980
|
/**
|
|
68969
|
-
* Tripadvisor place type
|
|
68981
|
+
* Tripadvisor place type: HOTEL, RESTAURANT, ATTRACTION, or GEO for a destination such as a city.
|
|
68970
68982
|
*/
|
|
68971
68983
|
type?: string;
|
|
68972
68984
|
/**
|
|
@@ -69006,6 +69018,13 @@ declare class TripadvisorNamespace {
|
|
|
69006
69018
|
* const res = await client.tripadvisor.reviews({ url: "https://www.tripadvisor.com/Hotel_Review-g60763-d93450-Reviews-The_Plaza-New_York_City_New_York.html", limit: 3 });
|
|
69007
69019
|
*/
|
|
69008
69020
|
reviews(input: TripadvisorReviewsInput, options?: RequestOptions): Promise<RunResult<TripadvisorReviewsData>>;
|
|
69021
|
+
/**
|
|
69022
|
+
* Iterate every result of Tripadvisor Reviews across pages.
|
|
69023
|
+
*
|
|
69024
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
69025
|
+
* result pages instead (each carries its own costUsd).
|
|
69026
|
+
*/
|
|
69027
|
+
iterReviews(input: TripadvisorReviewsInput, options?: RequestOptions): Paginator<TripadvisorReviewsItem, RunResult<TripadvisorReviewsData>>;
|
|
69009
69028
|
/**
|
|
69010
69029
|
* Tripadvisor Search
|
|
69011
69030
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -25997,7 +25997,7 @@ declare class GoogleAdsNamespace {
|
|
|
25997
25997
|
* Price: $0.0012 per request.
|
|
25998
25998
|
*
|
|
25999
25999
|
* @example
|
|
26000
|
-
* const res = await client.googleAds.adDetails({ url: "https://adstransparency.google.com/advertiser/
|
|
26000
|
+
* const res = await client.googleAds.adDetails({ url: "https://adstransparency.google.com/advertiser/AR13309761427309854721/creative/CR00826878176251609089" });
|
|
26001
26001
|
*/
|
|
26002
26002
|
adDetails(input: GoogleAdsAdDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleAdsAdDetailsData>>;
|
|
26003
26003
|
/**
|
|
@@ -68710,16 +68710,20 @@ interface TripadvisorReviewsInput {
|
|
|
68710
68710
|
* Default: true.
|
|
68711
68711
|
*/
|
|
68712
68712
|
allowFallbacks?: boolean;
|
|
68713
|
+
/**
|
|
68714
|
+
* Pagination cursor from a previous response's nextCursor. Omit for the first page.
|
|
68715
|
+
*/
|
|
68716
|
+
cursor?: string;
|
|
68713
68717
|
/**
|
|
68714
68718
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
|
|
68715
68719
|
*/
|
|
68716
68720
|
ignoreSources?: string[];
|
|
68717
68721
|
/**
|
|
68718
|
-
* Only return reviews in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages.
|
|
68722
|
+
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
68719
68723
|
*/
|
|
68720
68724
|
languages?: string[];
|
|
68721
68725
|
/**
|
|
68722
|
-
*
|
|
68726
|
+
* Reviews per page (1-20, default 20). Sources that page return one page of up to `limit` reviews, newest first, with a nextCursor for the next page; sources that cannot page return up to `limit` reviews in one call with no nextCursor.
|
|
68723
68727
|
* Range: minimum 1, maximum 20.
|
|
68724
68728
|
*/
|
|
68725
68729
|
limit?: number;
|
|
@@ -68732,6 +68736,10 @@ interface TripadvisorReviewsInput {
|
|
|
68732
68736
|
* Only return reviews whose bubble rating is in this set (e.g. ["5", "4"] for 4 and 5 star reviews); omit for all ratings.
|
|
68733
68737
|
*/
|
|
68734
68738
|
ratings?: ("1" | "2" | "3" | "4" | "5")[];
|
|
68739
|
+
/**
|
|
68740
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `nextCursor`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. nextCursor is null on the last page. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
68741
|
+
*/
|
|
68742
|
+
requireFields?: "nextCursor"[];
|
|
68735
68743
|
/**
|
|
68736
68744
|
* Only return reviews newer than this date, YYYY-MM-DD or a relative window like '3 months' (e.g. 2026-01-01).
|
|
68737
68745
|
*/
|
|
@@ -68780,7 +68788,7 @@ interface TripadvisorReviewsItem {
|
|
|
68780
68788
|
*/
|
|
68781
68789
|
id?: string;
|
|
68782
68790
|
/**
|
|
68783
|
-
*
|
|
68791
|
+
* ISO 639-1 code of the language the review was originally written in (e.g. en, es). On some requests `title` and `text` are Tripadvisor's English machine translation of a review written in another language; this code still names the original language. A request with `languages` always returns the original text.
|
|
68784
68792
|
*/
|
|
68785
68793
|
language?: string;
|
|
68786
68794
|
/**
|
|
@@ -68835,6 +68843,10 @@ interface TripadvisorReviewsData {
|
|
|
68835
68843
|
* Review records for the place: rating, title, review text, publish date, trip type, and reviewer details. Populated whenever the provider has data for the entity.
|
|
68836
68844
|
*/
|
|
68837
68845
|
items: TripadvisorReviewsItem[];
|
|
68846
|
+
/**
|
|
68847
|
+
* Opaque cursor for the next page of reviews, or null when there are no more. Pass it back as cursor to continue. Absent on sources that cannot page.
|
|
68848
|
+
*/
|
|
68849
|
+
nextCursor?: string | null;
|
|
68838
68850
|
}
|
|
68839
68851
|
/**
|
|
68840
68852
|
* Input for Tripadvisor Search (tripadvisor.search).
|
|
@@ -68898,7 +68910,7 @@ interface TripadvisorSearchItem {
|
|
|
68898
68910
|
*/
|
|
68899
68911
|
address?: string;
|
|
68900
68912
|
/**
|
|
68901
|
-
* High-level category
|
|
68913
|
+
* High-level category: hotel, restaurant, attraction, or geo for a destination such as a city.
|
|
68902
68914
|
*/
|
|
68903
68915
|
category?: string;
|
|
68904
68916
|
/**
|
|
@@ -68966,7 +68978,7 @@ interface TripadvisorSearchItem {
|
|
|
68966
68978
|
*/
|
|
68967
68979
|
title: string;
|
|
68968
68980
|
/**
|
|
68969
|
-
* Tripadvisor place type
|
|
68981
|
+
* Tripadvisor place type: HOTEL, RESTAURANT, ATTRACTION, or GEO for a destination such as a city.
|
|
68970
68982
|
*/
|
|
68971
68983
|
type?: string;
|
|
68972
68984
|
/**
|
|
@@ -69006,6 +69018,13 @@ declare class TripadvisorNamespace {
|
|
|
69006
69018
|
* const res = await client.tripadvisor.reviews({ url: "https://www.tripadvisor.com/Hotel_Review-g60763-d93450-Reviews-The_Plaza-New_York_City_New_York.html", limit: 3 });
|
|
69007
69019
|
*/
|
|
69008
69020
|
reviews(input: TripadvisorReviewsInput, options?: RequestOptions): Promise<RunResult<TripadvisorReviewsData>>;
|
|
69021
|
+
/**
|
|
69022
|
+
* Iterate every result of Tripadvisor Reviews across pages.
|
|
69023
|
+
*
|
|
69024
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
69025
|
+
* result pages instead (each carries its own costUsd).
|
|
69026
|
+
*/
|
|
69027
|
+
iterReviews(input: TripadvisorReviewsInput, options?: RequestOptions): Paginator<TripadvisorReviewsItem, RunResult<TripadvisorReviewsData>>;
|
|
69009
69028
|
/**
|
|
69010
69029
|
* Tripadvisor Search
|
|
69011
69030
|
*
|
package/dist/index.js
CHANGED
|
@@ -3729,7 +3729,7 @@ var GoogleAdsNamespace = class {
|
|
|
3729
3729
|
* Price: $0.0012 per request.
|
|
3730
3730
|
*
|
|
3731
3731
|
* @example
|
|
3732
|
-
* const res = await client.googleAds.adDetails({ url: "https://adstransparency.google.com/advertiser/
|
|
3732
|
+
* const res = await client.googleAds.adDetails({ url: "https://adstransparency.google.com/advertiser/AR13309761427309854721/creative/CR00826878176251609089" });
|
|
3733
3733
|
*/
|
|
3734
3734
|
adDetails(input, options) {
|
|
3735
3735
|
return this._core.run("google_ads.ad_details", input, options);
|
|
@@ -8287,6 +8287,22 @@ var TripadvisorNamespace = class {
|
|
|
8287
8287
|
reviews(input, options) {
|
|
8288
8288
|
return this._core.run("tripadvisor.reviews", input, options);
|
|
8289
8289
|
}
|
|
8290
|
+
/**
|
|
8291
|
+
* Iterate every result of Tripadvisor Reviews across pages.
|
|
8292
|
+
*
|
|
8293
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
8294
|
+
* result pages instead (each carries its own costUsd).
|
|
8295
|
+
*/
|
|
8296
|
+
iterReviews(input, options) {
|
|
8297
|
+
return paginate(
|
|
8298
|
+
this._core,
|
|
8299
|
+
"tripadvisor.reviews",
|
|
8300
|
+
input,
|
|
8301
|
+
"items",
|
|
8302
|
+
false,
|
|
8303
|
+
options
|
|
8304
|
+
);
|
|
8305
|
+
}
|
|
8290
8306
|
/**
|
|
8291
8307
|
* Tripadvisor Search
|
|
8292
8308
|
*
|