harvester_sdk 1.0.39 → 1.0.41

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.d.ts CHANGED
@@ -597,10 +597,8 @@ export declare const MongoGeoSelectionSchema: Schema<any, import("mongoose").Mod
597
597
  region_id?: string | null | undefined;
598
598
  title?: string | null | undefined;
599
599
  coordinates?: {
600
- type?: {
601
- type?: "point" | "polygon" | null | undefined;
602
- coordinates?: any;
603
- } | null | undefined;
600
+ type?: "point" | "polygon" | null | undefined;
601
+ coordinates?: any;
604
602
  } | null | undefined;
605
603
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
606
604
  status: "active" | "inactive" | "deleted";
@@ -613,10 +611,8 @@ export declare const MongoGeoSelectionSchema: Schema<any, import("mongoose").Mod
613
611
  region_id?: string | null | undefined;
614
612
  title?: string | null | undefined;
615
613
  coordinates?: {
616
- type?: {
617
- type?: "point" | "polygon" | null | undefined;
618
- coordinates?: any;
619
- } | null | undefined;
614
+ type?: "point" | "polygon" | null | undefined;
615
+ coordinates?: any;
620
616
  } | null | undefined;
621
617
  }>, {}> & import("mongoose").FlatRecord<{
622
618
  status: "active" | "inactive" | "deleted";
@@ -629,10 +625,8 @@ export declare const MongoGeoSelectionSchema: Schema<any, import("mongoose").Mod
629
625
  region_id?: string | null | undefined;
630
626
  title?: string | null | undefined;
631
627
  coordinates?: {
632
- type?: {
633
- type?: "point" | "polygon" | null | undefined;
634
- coordinates?: any;
635
- } | null | undefined;
628
+ type?: "point" | "polygon" | null | undefined;
629
+ coordinates?: any;
636
630
  } | null | undefined;
637
631
  }> & {
638
632
  _id: import("mongoose").Types.ObjectId;
package/dist/index.js CHANGED
@@ -283,10 +283,8 @@ exports.MongoGeoSelectionSchema = new mongoose_1.Schema({
283
283
  created_at: { type: Number },
284
284
  updated_at: { type: Number },
285
285
  coordinates: {
286
- type: {
287
- type: { type: String, enum: ['point', 'polygon'] },
288
- coordinates: { type: mongoose_1.Schema.Types.Mixed },
289
- },
286
+ type: { type: String, enum: ['point', 'polygon'] },
287
+ coordinates: { type: mongoose_1.Schema.Types.Mixed },
290
288
  }, // GeoJSON format
291
289
  }, {
292
290
  versionKey: false,
package/dist/sdk.d.ts CHANGED
@@ -52,6 +52,8 @@ export interface GetDataParams extends PaginationParams {
52
52
  processing_status?: 'raw' | 'processed' | 'analyzed' | 'error';
53
53
  fields?: string[];
54
54
  exclude_fields?: string[];
55
+ data_topic?: string[];
56
+ data_keywords?: string[];
55
57
  }
56
58
  export interface PaginatedResponse<T> {
57
59
  data: T[];
package/index.ts CHANGED
@@ -306,10 +306,8 @@ export const MongoGeoSelectionSchema = new Schema(
306
306
  created_at: { type: Number }, // creation date
307
307
  updated_at: { type: Number }, // last update date
308
308
  coordinates: {
309
- type: {
310
- type: { type: String, enum: ['point', 'polygon'] },
311
- coordinates: { type: Schema.Types.Mixed },
312
- },
309
+ type: { type: String, enum: ['point', 'polygon'] },
310
+ coordinates: { type: Schema.Types.Mixed },
313
311
  }, // GeoJSON format
314
312
  },
315
313
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
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
@@ -86,6 +86,10 @@ export interface GetDataParams extends PaginationParams {
86
86
  // Include/exclude fields
87
87
  fields?: string[];
88
88
  exclude_fields?: string[];
89
+
90
+ //
91
+ data_topic?: string[];
92
+ data_keywords?: string[];
89
93
  }
90
94
 
91
95
  // Response types