harvester_sdk 1.0.20 → 1.0.22

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
@@ -93,7 +93,7 @@ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any,
93
93
  source_group_id?: string | null | undefined;
94
94
  data_id?: any;
95
95
  data_url?: string | null | undefined;
96
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | null | undefined;
96
+ data_original_type?: string | null | undefined;
97
97
  data_text?: string | null | undefined;
98
98
  data_language?: string | null | undefined;
99
99
  data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | null | undefined;
@@ -186,7 +186,7 @@ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any,
186
186
  source_group_id?: string | null | undefined;
187
187
  data_id?: any;
188
188
  data_url?: string | null | undefined;
189
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | null | undefined;
189
+ data_original_type?: string | null | undefined;
190
190
  data_text?: string | null | undefined;
191
191
  data_language?: string | null | undefined;
192
192
  data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | null | undefined;
@@ -279,7 +279,7 @@ export declare const MongoDataSchema: Schema<any, import("mongoose").Model<any,
279
279
  source_group_id?: string | null | undefined;
280
280
  data_id?: any;
281
281
  data_url?: string | null | undefined;
282
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | null | undefined;
282
+ data_original_type?: string | null | undefined;
283
283
  data_text?: string | null | undefined;
284
284
  data_language?: string | null | undefined;
285
285
  data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | null | undefined;
@@ -585,29 +585,35 @@ export declare const MongoGeoSelectionSchema: Schema<any, import("mongoose").Mod
585
585
  virtuals: true;
586
586
  };
587
587
  }, {
588
+ status: "active" | "inactive" | "deleted";
588
589
  geos: string[];
589
590
  created_at?: number | null | undefined;
590
591
  updated_at?: number | null | undefined;
592
+ notes?: string | null | undefined;
591
593
  type?: string | null | undefined;
592
594
  description?: string | null | undefined;
595
+ region_id?: string | null | undefined;
593
596
  title?: string | null | undefined;
594
- region?: string | null | undefined;
595
597
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
598
+ status: "active" | "inactive" | "deleted";
596
599
  geos: string[];
597
600
  created_at?: number | null | undefined;
598
601
  updated_at?: number | null | undefined;
602
+ notes?: string | null | undefined;
599
603
  type?: string | null | undefined;
600
604
  description?: string | null | undefined;
605
+ region_id?: string | null | undefined;
601
606
  title?: string | null | undefined;
602
- region?: string | null | undefined;
603
607
  }>, {}> & import("mongoose").FlatRecord<{
608
+ status: "active" | "inactive" | "deleted";
604
609
  geos: string[];
605
610
  created_at?: number | null | undefined;
606
611
  updated_at?: number | null | undefined;
612
+ notes?: string | null | undefined;
607
613
  type?: string | null | undefined;
608
614
  description?: string | null | undefined;
615
+ region_id?: string | null | undefined;
609
616
  title?: string | null | undefined;
610
- region?: string | null | undefined;
611
617
  }> & {
612
618
  _id: import("mongoose").Types.ObjectId;
613
619
  } & {
package/dist/index.js CHANGED
@@ -42,20 +42,6 @@ exports.MongoDataSchema = new mongoose_1.Schema({
42
42
  data_url: { type: String },
43
43
  data_original_type: {
44
44
  type: String,
45
- enum: [
46
- 'post',
47
- 'comment',
48
- 'reply',
49
- 'video',
50
- 'image',
51
- 'photo',
52
- 'story',
53
- 'reel',
54
- 'article',
55
- 'link',
56
- 'document',
57
- 'text',
58
- ],
59
45
  },
60
46
  // Content
61
47
  data_text: { type: String },
@@ -281,7 +267,13 @@ exports.MongoGeoSelectionSchema = new mongoose_1.Schema({
281
267
  description: { type: String },
282
268
  type: { type: String },
283
269
  geos: { type: [String], default: [] },
284
- region: { type: String },
270
+ region_id: { type: String },
271
+ notes: { type: String },
272
+ status: {
273
+ type: String,
274
+ enum: types_1.generalStatusList,
275
+ default: 'active',
276
+ },
285
277
  created_at: { type: Number },
286
278
  updated_at: { type: Number }, // last update date
287
279
  }, {
package/dist/types.d.ts CHANGED
@@ -236,26 +236,32 @@ export declare const zodGeoSelectionSchema: z.ZodObject<{
236
236
  description: z.ZodOptional<z.ZodString>;
237
237
  type: z.ZodOptional<z.ZodString>;
238
238
  geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
239
- region: z.ZodOptional<z.ZodString>;
239
+ region_id: z.ZodOptional<z.ZodString>;
240
+ notes: z.ZodOptional<z.ZodString>;
241
+ status: z.ZodOptional<z.ZodEnum<["active", "inactive", "deleted"]>>;
240
242
  created_at: z.ZodOptional<z.ZodNumber>;
241
243
  updated_at: z.ZodOptional<z.ZodNumber>;
242
244
  }, "strip", z.ZodTypeAny, {
243
245
  _id?: string | undefined;
244
246
  created_at?: number | undefined;
245
247
  updated_at?: number | undefined;
248
+ status?: "active" | "inactive" | "deleted" | undefined;
249
+ notes?: string | undefined;
246
250
  type?: string | undefined;
247
251
  description?: string | undefined;
252
+ region_id?: string | undefined;
248
253
  title?: string | undefined;
249
- region?: string | undefined;
250
254
  geos?: string[] | undefined;
251
255
  }, {
252
256
  _id?: string | undefined;
253
257
  created_at?: number | undefined;
254
258
  updated_at?: number | undefined;
259
+ status?: "active" | "inactive" | "deleted" | undefined;
260
+ notes?: string | undefined;
255
261
  type?: string | undefined;
256
262
  description?: string | undefined;
263
+ region_id?: string | undefined;
257
264
  title?: string | undefined;
258
- region?: string | undefined;
259
265
  geos?: string[] | undefined;
260
266
  }>;
261
267
  export declare const telegramMetadataSchema: z.ZodObject<{
package/dist/types.js CHANGED
@@ -127,7 +127,9 @@ exports.zodGeoSelectionSchema = zod_1.z.object({
127
127
  description: zod_1.z.string().optional(),
128
128
  type: zod_1.z.string().optional(),
129
129
  geos: zod_1.z.array(zod_1.z.string()).optional(),
130
- region: zod_1.z.string().optional(),
130
+ region_id: zod_1.z.string().optional(),
131
+ notes: zod_1.z.string().optional(),
132
+ status: zod_1.z.enum(exports.generalStatusList).optional(),
131
133
  created_at: zod_1.z.number().optional(),
132
134
  updated_at: zod_1.z.number().optional(), // last update date
133
135
  });
package/index.ts CHANGED
@@ -36,20 +36,6 @@ export const MongoDataSchema = new Schema(
36
36
  data_url: { type: String }, // direct link to the post
37
37
  data_original_type: {
38
38
  type: String,
39
- enum: [
40
- 'post',
41
- 'comment',
42
- 'reply',
43
- 'video',
44
- 'image',
45
- 'photo',
46
- 'story',
47
- 'reel',
48
- 'article',
49
- 'link',
50
- 'document',
51
- 'text',
52
- ],
53
39
  },
54
40
 
55
41
  // Content
@@ -306,7 +292,13 @@ export const MongoGeoSelectionSchema = new Schema(
306
292
  description: { type: String }, // e.g., "A city in the USA"
307
293
  type: { type: String }, // e.g., "city", "region", "country"
308
294
  geos: { type: [String], default: [] }, // e.g., ["New York", "Los Angeles"]
309
- region: { type: String }, // e.g., "New York", "California"
295
+ region_id: { type: String }, // e.g., region ID
296
+ notes: { type: String }, // internal notes about the geo selection
297
+ status: {
298
+ type: String,
299
+ enum: generalStatusList,
300
+ default: 'active',
301
+ },
310
302
  created_at: { type: Number }, // creation date
311
303
  updated_at: { type: Number }, // last update date
312
304
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "SDK for interacting with the Harvester API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -137,7 +137,9 @@ export const zodGeoSelectionSchema = z.object({
137
137
  description: z.string().optional(), // e.g., "A city in the USA"
138
138
  type: z.string().optional(), // e.g., "city", "region", "country"
139
139
  geos: z.array(z.string()).optional(), // e.g., ["New York", "Los Angeles"]
140
- region: z.string().optional(), // e.g., "New York", "California"
140
+ region_id: z.string().optional(), // e.g., region ID
141
+ notes: z.string().optional(), // internal notes about the geo selection
142
+ status: z.enum(generalStatusList).optional(),
141
143
  created_at: z.number().optional(), // creation date
142
144
  updated_at: z.number().optional(), // last update date
143
145
  });