@getanyapi/sdk 0.150.1 → 0.151.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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -5
- package/dist/index.d.ts +9 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5131,7 +5131,7 @@ interface BookingSearchInput {
|
|
|
5131
5131
|
*/
|
|
5132
5132
|
ignoreSources?: string[];
|
|
5133
5133
|
/**
|
|
5134
|
-
* Maximum number of hotels to return (1-20, default 20).
|
|
5134
|
+
* Maximum number of hotels to return (1-20, default 20). Some sources bill per result returned, so a lower limit can cost less.
|
|
5135
5135
|
* Range: minimum 1, maximum 20.
|
|
5136
5136
|
*/
|
|
5137
5137
|
limit?: number;
|
|
@@ -5144,6 +5144,10 @@ interface BookingSearchInput {
|
|
|
5144
5144
|
* Destination city to search for stays in (e.g. Paris).
|
|
5145
5145
|
*/
|
|
5146
5146
|
query: string;
|
|
5147
|
+
/**
|
|
5148
|
+
* 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 `discountBadge`, 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. A named field can still be absent on a hotel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
5149
|
+
*/
|
|
5150
|
+
requireFields?: "discountBadge"[];
|
|
5147
5151
|
/**
|
|
5148
5152
|
* Number of rooms to book (e.g. 1).
|
|
5149
5153
|
* Range: minimum 1.
|
|
@@ -5163,9 +5167,9 @@ interface BookingSearchItem {
|
|
|
5163
5167
|
country?: string;
|
|
5164
5168
|
currency?: string;
|
|
5165
5169
|
/**
|
|
5166
|
-
* Promotion label Booking.com shows on the offer (e.g. Getaway Deal).
|
|
5170
|
+
* Promotion label Booking.com shows on the offer (e.g. Getaway Deal). Not every source returns it; name it in requireFields to be served by one that does.
|
|
5167
5171
|
*/
|
|
5168
|
-
discountBadge?: string;
|
|
5172
|
+
discountBadge?: string | null;
|
|
5169
5173
|
/**
|
|
5170
5174
|
* Distance from the city center as Booking.com phrases it.
|
|
5171
5175
|
*/
|
|
@@ -5267,7 +5271,7 @@ declare class BookingNamespace {
|
|
|
5267
5271
|
*
|
|
5268
5272
|
* Search Booking.com stays by destination and dates with optional guest and room occupancy and get hotel results (name, price, review score, location) as normalized JSON.
|
|
5269
5273
|
*
|
|
5270
|
-
* Price: $0.
|
|
5274
|
+
* Price: $0.0008 per request.
|
|
5271
5275
|
*
|
|
5272
5276
|
* @example
|
|
5273
5277
|
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-14", checkOut: "2026-12-16", limit: 3 });
|
|
@@ -39636,7 +39640,7 @@ declare class LinkedinNamespace {
|
|
|
39636
39640
|
*
|
|
39637
39641
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
39638
39642
|
*
|
|
39639
|
-
* Price: $0.
|
|
39643
|
+
* Price: $0.004 per request.
|
|
39640
39644
|
*
|
|
39641
39645
|
* @example
|
|
39642
39646
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
package/dist/index.d.ts
CHANGED
|
@@ -5131,7 +5131,7 @@ interface BookingSearchInput {
|
|
|
5131
5131
|
*/
|
|
5132
5132
|
ignoreSources?: string[];
|
|
5133
5133
|
/**
|
|
5134
|
-
* Maximum number of hotels to return (1-20, default 20).
|
|
5134
|
+
* Maximum number of hotels to return (1-20, default 20). Some sources bill per result returned, so a lower limit can cost less.
|
|
5135
5135
|
* Range: minimum 1, maximum 20.
|
|
5136
5136
|
*/
|
|
5137
5137
|
limit?: number;
|
|
@@ -5144,6 +5144,10 @@ interface BookingSearchInput {
|
|
|
5144
5144
|
* Destination city to search for stays in (e.g. Paris).
|
|
5145
5145
|
*/
|
|
5146
5146
|
query: string;
|
|
5147
|
+
/**
|
|
5148
|
+
* 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 `discountBadge`, 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. A named field can still be absent on a hotel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
5149
|
+
*/
|
|
5150
|
+
requireFields?: "discountBadge"[];
|
|
5147
5151
|
/**
|
|
5148
5152
|
* Number of rooms to book (e.g. 1).
|
|
5149
5153
|
* Range: minimum 1.
|
|
@@ -5163,9 +5167,9 @@ interface BookingSearchItem {
|
|
|
5163
5167
|
country?: string;
|
|
5164
5168
|
currency?: string;
|
|
5165
5169
|
/**
|
|
5166
|
-
* Promotion label Booking.com shows on the offer (e.g. Getaway Deal).
|
|
5170
|
+
* Promotion label Booking.com shows on the offer (e.g. Getaway Deal). Not every source returns it; name it in requireFields to be served by one that does.
|
|
5167
5171
|
*/
|
|
5168
|
-
discountBadge?: string;
|
|
5172
|
+
discountBadge?: string | null;
|
|
5169
5173
|
/**
|
|
5170
5174
|
* Distance from the city center as Booking.com phrases it.
|
|
5171
5175
|
*/
|
|
@@ -5267,7 +5271,7 @@ declare class BookingNamespace {
|
|
|
5267
5271
|
*
|
|
5268
5272
|
* Search Booking.com stays by destination and dates with optional guest and room occupancy and get hotel results (name, price, review score, location) as normalized JSON.
|
|
5269
5273
|
*
|
|
5270
|
-
* Price: $0.
|
|
5274
|
+
* Price: $0.0008 per request.
|
|
5271
5275
|
*
|
|
5272
5276
|
* @example
|
|
5273
5277
|
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-14", checkOut: "2026-12-16", limit: 3 });
|
|
@@ -39636,7 +39640,7 @@ declare class LinkedinNamespace {
|
|
|
39636
39640
|
*
|
|
39637
39641
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
39638
39642
|
*
|
|
39639
|
-
* Price: $0.
|
|
39643
|
+
* Price: $0.004 per request.
|
|
39640
39644
|
*
|
|
39641
39645
|
* @example
|
|
39642
39646
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|
package/dist/index.js
CHANGED
|
@@ -1563,7 +1563,7 @@ var BookingNamespace = class {
|
|
|
1563
1563
|
*
|
|
1564
1564
|
* Search Booking.com stays by destination and dates with optional guest and room occupancy and get hotel results (name, price, review score, location) as normalized JSON.
|
|
1565
1565
|
*
|
|
1566
|
-
* Price: $0.
|
|
1566
|
+
* Price: $0.0008 per request.
|
|
1567
1567
|
*
|
|
1568
1568
|
* @example
|
|
1569
1569
|
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-14", checkOut: "2026-12-16", limit: 3 });
|
|
@@ -5417,7 +5417,7 @@ var LinkedinNamespace = class {
|
|
|
5417
5417
|
*
|
|
5418
5418
|
* Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
|
|
5419
5419
|
*
|
|
5420
|
-
* Price: $0.
|
|
5420
|
+
* Price: $0.004 per request.
|
|
5421
5421
|
*
|
|
5422
5422
|
* @example
|
|
5423
5423
|
* const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
|