harvester_sdk 1.0.31 → 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
@@ -36,6 +36,8 @@ export interface GetDataParams extends PaginationParams {
36
36
  region_ids?: string[];
37
37
  time_range?: TimeRange;
38
38
  relative_time?: RelativeTimeRange;
39
+ start_time?: number;
40
+ end_time?: number;
39
41
  platform?: Platform;
40
42
  platforms?: Platform[];
41
43
  source_id?: string;
@@ -134,7 +136,7 @@ export declare class HarvesterSDK {
134
136
  * const geos = await harvester.getGeosByRegion('region-id', { limit: 50 });
135
137
  * ```
136
138
  */
137
- getGeosByRegion(regionId: string, params?: PaginationParams): Promise<PaginatedResponse<GeoType>>;
139
+ getGeosByRegions(regionIds: string, params?: PaginationParams): Promise<PaginatedResponse<GeoType>>;
138
140
  /**
139
141
  * Get data with filters
140
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.31",
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
@@ -49,6 +49,8 @@ export interface GetDataParams extends PaginationParams {
49
49
  // Time filters
50
50
  time_range?: TimeRange;
51
51
  relative_time?: RelativeTimeRange;
52
+ start_time?: number;
53
+ end_time?: number;
52
54
 
53
55
  // Platform filters
54
56
  platform?: Platform;
@@ -219,12 +221,12 @@ export class HarvesterSDK {
219
221
  * const geos = await harvester.getGeosByRegion('region-id', { limit: 50 });
220
222
  * ```
221
223
  */
222
- async getGeosByRegion(
223
- regionId: string,
224
+ async getGeosByRegions(
225
+ regionIds: string,
224
226
  params?: PaginationParams
225
227
  ): Promise<PaginatedResponse<GeoType>> {
226
228
  const response = await this.client.get<PaginatedResponse<GeoType>>(
227
- `/geo-selections/${regionId}`,
229
+ `/geo-selections/${regionIds}`,
228
230
  {
229
231
  params: this.buildQueryParams(params),
230
232
  }