harvester_sdk 1.0.32 → 1.0.33
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/README.md +3 -1
- package/dist/sdk.d.ts +1 -1
- package/dist/sdk.js +2 -2
- package/package.json +1 -1
- package/sdk.ts +3 -3
package/README.md
CHANGED
package/dist/sdk.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export declare class HarvesterSDK {
|
|
|
136
136
|
* const geos = await harvester.getGeosByRegion('region-id', { limit: 50 });
|
|
137
137
|
* ```
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
getGeosByRegions(regionIds: string, params?: PaginationParams): Promise<PaginatedResponse<GeoType>>;
|
|
140
140
|
/**
|
|
141
141
|
* Get data with filters
|
|
142
142
|
*
|
package/dist/sdk.js
CHANGED
|
@@ -97,8 +97,8 @@ class HarvesterSDK {
|
|
|
97
97
|
* const geos = await harvester.getGeosByRegion('region-id', { limit: 50 });
|
|
98
98
|
* ```
|
|
99
99
|
*/
|
|
100
|
-
async
|
|
101
|
-
const response = await this.client.get(`/geo-selections/${
|
|
100
|
+
async getGeosByRegions(regionIds, params) {
|
|
101
|
+
const response = await this.client.get(`/geo-selections/${regionIds}`, {
|
|
102
102
|
params: this.buildQueryParams(params),
|
|
103
103
|
});
|
|
104
104
|
return response.data;
|
package/package.json
CHANGED
package/sdk.ts
CHANGED
|
@@ -221,12 +221,12 @@ export class HarvesterSDK {
|
|
|
221
221
|
* const geos = await harvester.getGeosByRegion('region-id', { limit: 50 });
|
|
222
222
|
* ```
|
|
223
223
|
*/
|
|
224
|
-
async
|
|
225
|
-
|
|
224
|
+
async getGeosByRegions(
|
|
225
|
+
regionIds: string,
|
|
226
226
|
params?: PaginationParams
|
|
227
227
|
): Promise<PaginatedResponse<GeoType>> {
|
|
228
228
|
const response = await this.client.get<PaginatedResponse<GeoType>>(
|
|
229
|
-
`/geo-selections/${
|
|
229
|
+
`/geo-selections/${regionIds}`,
|
|
230
230
|
{
|
|
231
231
|
params: this.buildQueryParams(params),
|
|
232
232
|
}
|