@getanyapi/sdk 0.146.11 → 0.147.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 +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -25587,7 +25587,7 @@ declare class GoogleNamespace {
|
|
|
25587
25587
|
*
|
|
25588
25588
|
* Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
|
|
25589
25589
|
*
|
|
25590
|
-
* Price: $0.
|
|
25590
|
+
* Price: $0.0018 per request.
|
|
25591
25591
|
*
|
|
25592
25592
|
* @example
|
|
25593
25593
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -33441,6 +33441,10 @@ interface LinkedinAdsSearchInput {
|
|
|
33441
33441
|
* Comma-separated two-letter country codes (e.g. "US,CA,MX").
|
|
33442
33442
|
*/
|
|
33443
33443
|
countries?: string;
|
|
33444
|
+
/**
|
|
33445
|
+
* Opaque pagination cursor from a previous response's `nextCursor`; omit for the first page.
|
|
33446
|
+
*/
|
|
33447
|
+
cursor?: string;
|
|
33444
33448
|
/**
|
|
33445
33449
|
* Search end date in YYYY-MM-DD format. Today or a later date is moved back to yesterday in UTC when your range overlaps LinkedIn's accepted dates. When you send startDate without endDate, the search ends yesterday in UTC, the latest day LinkedIn accepts.
|
|
33446
33450
|
*/
|
|
@@ -33454,7 +33458,7 @@ interface LinkedinAdsSearchInput {
|
|
|
33454
33458
|
*/
|
|
33455
33459
|
keyword?: string;
|
|
33456
33460
|
/**
|
|
33457
|
-
*
|
|
33461
|
+
* Legacy pagination alias. Prefer `cursor`; omit both fields for the first page.
|
|
33458
33462
|
*/
|
|
33459
33463
|
paginationToken?: string;
|
|
33460
33464
|
/**
|
|
@@ -33510,7 +33514,7 @@ interface LinkedinAdsSearchData {
|
|
|
33510
33514
|
* Populated whenever the provider has data for the entity.
|
|
33511
33515
|
*/
|
|
33512
33516
|
ads: LinkedinAdsSearchAd[];
|
|
33513
|
-
nextCursor: string;
|
|
33517
|
+
nextCursor: string | null;
|
|
33514
33518
|
totalAds: number;
|
|
33515
33519
|
}
|
|
33516
33520
|
/**
|
|
@@ -39338,6 +39342,13 @@ declare class LinkedinNamespace {
|
|
|
39338
39342
|
* const res = await client.linkedin.adsSearch({ company: "microsoft" });
|
|
39339
39343
|
*/
|
|
39340
39344
|
adsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Promise<RunResult<LinkedinAdsSearchData>>;
|
|
39345
|
+
/**
|
|
39346
|
+
* Iterate every result of LinkedIn Ad Search across pages.
|
|
39347
|
+
*
|
|
39348
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
39349
|
+
* result pages instead (each carries its own costUsd).
|
|
39350
|
+
*/
|
|
39351
|
+
iterAdsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Paginator<LinkedinAdsSearchAd, RunResult<LinkedinAdsSearchData>>;
|
|
39341
39352
|
/**
|
|
39342
39353
|
* LinkedIn Article
|
|
39343
39354
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -25587,7 +25587,7 @@ declare class GoogleNamespace {
|
|
|
25587
25587
|
*
|
|
25588
25588
|
* Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
|
|
25589
25589
|
*
|
|
25590
|
-
* Price: $0.
|
|
25590
|
+
* Price: $0.0018 per request.
|
|
25591
25591
|
*
|
|
25592
25592
|
* @example
|
|
25593
25593
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -33441,6 +33441,10 @@ interface LinkedinAdsSearchInput {
|
|
|
33441
33441
|
* Comma-separated two-letter country codes (e.g. "US,CA,MX").
|
|
33442
33442
|
*/
|
|
33443
33443
|
countries?: string;
|
|
33444
|
+
/**
|
|
33445
|
+
* Opaque pagination cursor from a previous response's `nextCursor`; omit for the first page.
|
|
33446
|
+
*/
|
|
33447
|
+
cursor?: string;
|
|
33444
33448
|
/**
|
|
33445
33449
|
* Search end date in YYYY-MM-DD format. Today or a later date is moved back to yesterday in UTC when your range overlaps LinkedIn's accepted dates. When you send startDate without endDate, the search ends yesterday in UTC, the latest day LinkedIn accepts.
|
|
33446
33450
|
*/
|
|
@@ -33454,7 +33458,7 @@ interface LinkedinAdsSearchInput {
|
|
|
33454
33458
|
*/
|
|
33455
33459
|
keyword?: string;
|
|
33456
33460
|
/**
|
|
33457
|
-
*
|
|
33461
|
+
* Legacy pagination alias. Prefer `cursor`; omit both fields for the first page.
|
|
33458
33462
|
*/
|
|
33459
33463
|
paginationToken?: string;
|
|
33460
33464
|
/**
|
|
@@ -33510,7 +33514,7 @@ interface LinkedinAdsSearchData {
|
|
|
33510
33514
|
* Populated whenever the provider has data for the entity.
|
|
33511
33515
|
*/
|
|
33512
33516
|
ads: LinkedinAdsSearchAd[];
|
|
33513
|
-
nextCursor: string;
|
|
33517
|
+
nextCursor: string | null;
|
|
33514
33518
|
totalAds: number;
|
|
33515
33519
|
}
|
|
33516
33520
|
/**
|
|
@@ -39338,6 +39342,13 @@ declare class LinkedinNamespace {
|
|
|
39338
39342
|
* const res = await client.linkedin.adsSearch({ company: "microsoft" });
|
|
39339
39343
|
*/
|
|
39340
39344
|
adsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Promise<RunResult<LinkedinAdsSearchData>>;
|
|
39345
|
+
/**
|
|
39346
|
+
* Iterate every result of LinkedIn Ad Search across pages.
|
|
39347
|
+
*
|
|
39348
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
39349
|
+
* result pages instead (each carries its own costUsd).
|
|
39350
|
+
*/
|
|
39351
|
+
iterAdsSearch(input: LinkedinAdsSearchInput, options?: RequestOptions): Paginator<LinkedinAdsSearchAd, RunResult<LinkedinAdsSearchData>>;
|
|
39341
39352
|
/**
|
|
39342
39353
|
* LinkedIn Article
|
|
39343
39354
|
*
|
package/dist/index.js
CHANGED
|
@@ -3679,7 +3679,7 @@ var GoogleNamespace = class {
|
|
|
3679
3679
|
*
|
|
3680
3680
|
* Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
|
|
3681
3681
|
*
|
|
3682
|
-
* Price: $0.
|
|
3682
|
+
* Price: $0.0018 per request.
|
|
3683
3683
|
*
|
|
3684
3684
|
* @example
|
|
3685
3685
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -4788,6 +4788,22 @@ var LinkedinNamespace = class {
|
|
|
4788
4788
|
adsSearch(input, options) {
|
|
4789
4789
|
return this._core.run("linkedin.ads_search", input, options);
|
|
4790
4790
|
}
|
|
4791
|
+
/**
|
|
4792
|
+
* Iterate every result of LinkedIn Ad Search across pages.
|
|
4793
|
+
*
|
|
4794
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
4795
|
+
* result pages instead (each carries its own costUsd).
|
|
4796
|
+
*/
|
|
4797
|
+
iterAdsSearch(input, options) {
|
|
4798
|
+
return paginate(
|
|
4799
|
+
this._core,
|
|
4800
|
+
"linkedin.ads_search",
|
|
4801
|
+
input,
|
|
4802
|
+
"ads",
|
|
4803
|
+
false,
|
|
4804
|
+
options
|
|
4805
|
+
);
|
|
4806
|
+
}
|
|
4791
4807
|
/**
|
|
4792
4808
|
* LinkedIn Article
|
|
4793
4809
|
*
|