harvester_sdk 1.0.12 → 1.0.13

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" | null | undefined;
96
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | 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" | null | undefined;
189
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | 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" | null | undefined;
282
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | 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;
@@ -409,8 +409,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
409
409
  created_at: number;
410
410
  updated_at: number;
411
411
  status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
412
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
413
- entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
412
+ platform: string;
414
413
  tags: string[];
415
414
  is_public: boolean;
416
415
  metadata: any;
@@ -420,6 +419,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
420
419
  description?: string | null | undefined;
421
420
  region_id?: string | null | undefined;
422
421
  title?: string | null | undefined;
422
+ entity?: string | null | undefined;
423
423
  public_id?: any;
424
424
  url?: string | null | undefined;
425
425
  language?: string | null | undefined;
@@ -436,8 +436,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
436
436
  created_at: number;
437
437
  updated_at: number;
438
438
  status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
439
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
440
- entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
439
+ platform: string;
441
440
  tags: string[];
442
441
  is_public: boolean;
443
442
  metadata: any;
@@ -447,6 +446,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
447
446
  description?: string | null | undefined;
448
447
  region_id?: string | null | undefined;
449
448
  title?: string | null | undefined;
449
+ entity?: string | null | undefined;
450
450
  public_id?: any;
451
451
  url?: string | null | undefined;
452
452
  language?: string | null | undefined;
@@ -463,8 +463,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
463
463
  created_at: number;
464
464
  updated_at: number;
465
465
  status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
466
- platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website";
467
- entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
466
+ platform: string;
468
467
  tags: string[];
469
468
  is_public: boolean;
470
469
  metadata: any;
@@ -474,6 +473,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
474
473
  description?: string | null | undefined;
475
474
  region_id?: string | null | undefined;
476
475
  title?: string | null | undefined;
476
+ entity?: string | null | undefined;
477
477
  public_id?: any;
478
478
  url?: string | null | undefined;
479
479
  language?: string | null | undefined;
package/dist/index.js CHANGED
@@ -54,6 +54,7 @@ exports.MongoDataSchema = new mongoose_1.Schema({
54
54
  'article',
55
55
  'link',
56
56
  'document',
57
+ 'text'
57
58
  ],
58
59
  },
59
60
  // Content
@@ -202,13 +203,13 @@ exports.MongoSourceSchema = new mongoose_1.Schema({
202
203
  title: { type: String },
203
204
  platform: {
204
205
  type: String,
205
- enum: types_1.platformsList,
206
+ // enum: platformsList,
206
207
  required: true,
207
208
  },
208
209
  entity: {
209
210
  type: String,
210
- enum: types_1.entityTypesList,
211
- required: true,
211
+ // enum: entityTypesList,
212
+ // required: true,
212
213
  },
213
214
  public_id: { type: mongoose_1.Schema.Types.Mixed },
214
215
  url: { type: String },
package/dist/types.d.ts CHANGED
@@ -472,7 +472,7 @@ export declare const zodDataSchema: z.ZodObject<{
472
472
  source_dominant_geos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
473
473
  data_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
474
474
  data_url: z.ZodOptional<z.ZodString>;
475
- data_original_type: z.ZodOptional<z.ZodEnum<["post", "comment", "reply", "video", "image", "photo", "story", "reel", "article", "link", "document"]>>;
475
+ data_original_type: z.ZodOptional<z.ZodEnum<["post", "comment", "reply", "video", "image", "photo", "story", "reel", "article", "link", "document", "text"]>>;
476
476
  data_text: z.ZodOptional<z.ZodString>;
477
477
  data_language: z.ZodOptional<z.ZodString>;
478
478
  data_geo: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
@@ -837,7 +837,7 @@ export declare const zodDataSchema: z.ZodObject<{
837
837
  source_group_id?: string | undefined;
838
838
  data_id?: string | number | undefined;
839
839
  data_url?: string | undefined;
840
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
840
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | undefined;
841
841
  data_text?: string | undefined;
842
842
  data_language?: string | undefined;
843
843
  data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
@@ -950,7 +950,7 @@ export declare const zodDataSchema: z.ZodObject<{
950
950
  source_dominant_geos?: string[] | undefined;
951
951
  data_id?: string | number | undefined;
952
952
  data_url?: string | undefined;
953
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
953
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | undefined;
954
954
  data_text?: string | undefined;
955
955
  data_language?: string | undefined;
956
956
  data_geo?: string[] | undefined;
@@ -1016,7 +1016,7 @@ export declare const zodDataSchemaWithValidation: z.ZodEffects<z.ZodObject<{
1016
1016
  source_dominant_geos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1017
1017
  data_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1018
1018
  data_url: z.ZodOptional<z.ZodString>;
1019
- data_original_type: z.ZodOptional<z.ZodEnum<["post", "comment", "reply", "video", "image", "photo", "story", "reel", "article", "link", "document"]>>;
1019
+ data_original_type: z.ZodOptional<z.ZodEnum<["post", "comment", "reply", "video", "image", "photo", "story", "reel", "article", "link", "document", "text"]>>;
1020
1020
  data_text: z.ZodOptional<z.ZodString>;
1021
1021
  data_language: z.ZodOptional<z.ZodString>;
1022
1022
  data_geo: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
@@ -1381,7 +1381,7 @@ export declare const zodDataSchemaWithValidation: z.ZodEffects<z.ZodObject<{
1381
1381
  source_group_id?: string | undefined;
1382
1382
  data_id?: string | number | undefined;
1383
1383
  data_url?: string | undefined;
1384
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1384
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | undefined;
1385
1385
  data_text?: string | undefined;
1386
1386
  data_language?: string | undefined;
1387
1387
  data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
@@ -1494,7 +1494,7 @@ export declare const zodDataSchemaWithValidation: z.ZodEffects<z.ZodObject<{
1494
1494
  source_dominant_geos?: string[] | undefined;
1495
1495
  data_id?: string | number | undefined;
1496
1496
  data_url?: string | undefined;
1497
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1497
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | undefined;
1498
1498
  data_text?: string | undefined;
1499
1499
  data_language?: string | undefined;
1500
1500
  data_geo?: string[] | undefined;
@@ -1635,7 +1635,7 @@ export declare const zodDataSchemaWithValidation: z.ZodEffects<z.ZodObject<{
1635
1635
  source_group_id?: string | undefined;
1636
1636
  data_id?: string | number | undefined;
1637
1637
  data_url?: string | undefined;
1638
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1638
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | undefined;
1639
1639
  data_text?: string | undefined;
1640
1640
  data_language?: string | undefined;
1641
1641
  data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
@@ -1748,7 +1748,7 @@ export declare const zodDataSchemaWithValidation: z.ZodEffects<z.ZodObject<{
1748
1748
  source_dominant_geos?: string[] | undefined;
1749
1749
  data_id?: string | number | undefined;
1750
1750
  data_url?: string | undefined;
1751
- data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1751
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | "text" | undefined;
1752
1752
  data_text?: string | undefined;
1753
1753
  data_language?: string | undefined;
1754
1754
  data_geo?: string[] | undefined;
package/dist/types.js CHANGED
@@ -225,6 +225,7 @@ exports.zodDataSchema = zod_1.z.object({
225
225
  'article',
226
226
  'link',
227
227
  'document',
228
+ 'text'
228
229
  ]).optional(),
229
230
  // Content
230
231
  data_text: zod_1.z.string().optional(),
package/index.ts CHANGED
@@ -47,6 +47,7 @@ export const MongoDataSchema = new Schema(
47
47
  'article',
48
48
  'link',
49
49
  'document',
50
+ 'text'
50
51
  ],
51
52
  },
52
53
 
@@ -218,13 +219,13 @@ export const MongoSourceSchema = new Schema(
218
219
  title: { type: String }, // e.g., 'Telegram Channel Name'
219
220
  platform: {
220
221
  type: String,
221
- enum: platformsList,
222
+ // enum: platformsList,
222
223
  required: true,
223
224
  },
224
225
  entity: {
225
226
  type: String,
226
- enum: entityTypesList,
227
- required: true,
227
+ // enum: entityTypesList,
228
+ // required: true,
228
229
  }, // e.g., 'channel', 'group', 'page', 'profile', 'hashtag'
229
230
  public_id: { type: Schema.Types.Mixed }, // e.g., '@telegram_channel_id'
230
231
  url: { type: String }, // e.g., 'https://t.me/telegram_channel_name'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
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
@@ -245,6 +245,7 @@ export const zodDataSchema = z.object({
245
245
  'article',
246
246
  'link',
247
247
  'document',
248
+ 'text'
248
249
  ]).optional(),
249
250
 
250
251
  // Content