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 CHANGED
@@ -13,4 +13,6 @@ yarn add asfur
13
13
  ## Usage
14
14
 
15
15
  ```typescript
16
- import { SourceType, TextType, QueryType } from 'asfur';
16
+ import { SourceType, TextType, QueryType } from 'asfur';
17
+
18
+ 449e23ff02a38b4cfe852a41014d51badff248c6
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
- getGeosByRegion(regionId: string, params?: PaginationParams): Promise<PaginatedResponse<GeoType>>;
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 getGeosByRegion(regionId, params) {
101
- const response = await this.client.get(`/geo-selections/${regionId}`, {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "SDK for interacting with the Harvester API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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 getGeosByRegion(
225
- regionId: string,
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/${regionId}`,
229
+ `/geo-selections/${regionIds}`,
230
230
  {
231
231
  params: this.buildQueryParams(params),
232
232
  }