harvester_sdk 1.0.52 → 1.0.54

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
@@ -733,9 +733,9 @@ export declare const MongoServerReportSchema: Schema<any, import("mongoose").Mod
733
733
  }, {
734
734
  timestamp: number;
735
735
  additional_info: any;
736
+ day?: number | null | undefined;
736
737
  year?: number | null | undefined;
737
738
  month?: number | null | undefined;
738
- day?: number | null | undefined;
739
739
  server_name?: string | null | undefined;
740
740
  server_id?: string | null | undefined;
741
741
  post_count?: number | null | undefined;
@@ -743,9 +743,9 @@ export declare const MongoServerReportSchema: Schema<any, import("mongoose").Mod
743
743
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
744
744
  timestamp: number;
745
745
  additional_info: any;
746
+ day?: number | null | undefined;
746
747
  year?: number | null | undefined;
747
748
  month?: number | null | undefined;
748
- day?: number | null | undefined;
749
749
  server_name?: string | null | undefined;
750
750
  server_id?: string | null | undefined;
751
751
  post_count?: number | null | undefined;
@@ -753,9 +753,9 @@ export declare const MongoServerReportSchema: Schema<any, import("mongoose").Mod
753
753
  }>, {}> & import("mongoose").FlatRecord<{
754
754
  timestamp: number;
755
755
  additional_info: any;
756
+ day?: number | null | undefined;
756
757
  year?: number | null | undefined;
757
758
  month?: number | null | undefined;
758
- day?: number | null | undefined;
759
759
  server_name?: string | null | undefined;
760
760
  server_id?: string | null | undefined;
761
761
  post_count?: number | null | undefined;
package/dist/types.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const platformsList: readonly ["telegram", "facebook", "instagram", "tiktok", "website", "youtube", "twitter", "x", "reddit", "linkedin", "snapchat", "whatsapp", "discord", "twitch"];
3
- export declare const entityTypesList: readonly ["profile", "group", "page", "channel", "hashtag", "website"];
3
+ export declare const entityTypesList: readonly ["profile", "group", "page", "channel", "hashtag", "website", "rss"];
4
4
  export declare const platformEntityMap: {
5
5
  readonly telegram: readonly ["channel", "group"];
6
6
  readonly facebook: readonly ["profile", "page", "group"];
7
7
  readonly instagram: readonly ["profile", "hashtag"];
8
8
  readonly tiktok: readonly ["profile", "hashtag"];
9
- readonly website: readonly ["website"];
9
+ readonly website: readonly ["website", "rss"];
10
10
  };
11
11
  export declare const priorityLevels: readonly ["none", "low", "medium", "high", "critical"];
12
12
  export declare const sourceStatusList: readonly ["active", "pending", "inactive", "requested", "discovered", "deleted"];
@@ -69,6 +69,25 @@ export declare const zodSourceGroupSchema: z.ZodObject<{
69
69
  notes: z.ZodOptional<z.ZodString>;
70
70
  status: z.ZodOptional<z.ZodEnum<["active", "inactive", "deleted"]>>;
71
71
  active_sources: z.ZodOptional<z.ZodNumber>;
72
+ activity: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
+ day: z.ZodString;
74
+ success_count: z.ZodOptional<z.ZodNumber>;
75
+ error_count: z.ZodOptional<z.ZodNumber>;
76
+ total_posts: z.ZodOptional<z.ZodNumber>;
77
+ sources_discovered: z.ZodOptional<z.ZodNumber>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ day: string;
80
+ success_count?: number | undefined;
81
+ error_count?: number | undefined;
82
+ total_posts?: number | undefined;
83
+ sources_discovered?: number | undefined;
84
+ }, {
85
+ day: string;
86
+ success_count?: number | undefined;
87
+ error_count?: number | undefined;
88
+ total_posts?: number | undefined;
89
+ sources_discovered?: number | undefined;
90
+ }>, "many">>;
72
91
  }, "strip", z.ZodTypeAny, {
73
92
  name: string;
74
93
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
@@ -81,6 +100,13 @@ export declare const zodSourceGroupSchema: z.ZodObject<{
81
100
  region_id?: string | undefined;
82
101
  max_active_sources?: number | undefined;
83
102
  active_sources?: number | undefined;
103
+ activity?: {
104
+ day: string;
105
+ success_count?: number | undefined;
106
+ error_count?: number | undefined;
107
+ total_posts?: number | undefined;
108
+ sources_discovered?: number | undefined;
109
+ }[] | undefined;
84
110
  }, {
85
111
  name: string;
86
112
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
@@ -93,12 +119,19 @@ export declare const zodSourceGroupSchema: z.ZodObject<{
93
119
  region_id?: string | undefined;
94
120
  max_active_sources?: number | undefined;
95
121
  active_sources?: number | undefined;
122
+ activity?: {
123
+ day: string;
124
+ success_count?: number | undefined;
125
+ error_count?: number | undefined;
126
+ total_posts?: number | undefined;
127
+ sources_discovered?: number | undefined;
128
+ }[] | undefined;
96
129
  }>;
97
130
  export declare const zodSourceSchema: z.ZodObject<{
98
131
  _id: z.ZodOptional<z.ZodString>;
99
132
  title: z.ZodOptional<z.ZodString>;
100
133
  platform: z.ZodEnum<["telegram", "facebook", "instagram", "tiktok", "website", "youtube", "twitter", "x", "reddit", "linkedin", "snapchat", "whatsapp", "discord", "twitch"]>;
101
- entity: z.ZodEnum<["profile", "group", "page", "channel", "hashtag", "website"]>;
134
+ entity: z.ZodEnum<["profile", "group", "page", "channel", "hashtag", "website", "rss"]>;
102
135
  public_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
103
136
  url: z.ZodOptional<z.ZodString>;
104
137
  description: z.ZodOptional<z.ZodString>;
@@ -154,7 +187,7 @@ export declare const zodSourceSchema: z.ZodObject<{
154
187
  }, "strip", z.ZodTypeAny, {
155
188
  status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
156
189
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
157
- entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
190
+ entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag" | "rss";
158
191
  is_public: boolean;
159
192
  errors: {
160
193
  is_handled: boolean;
@@ -191,7 +224,7 @@ export declare const zodSourceSchema: z.ZodObject<{
191
224
  }, {
192
225
  status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
193
226
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
194
- entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
227
+ entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag" | "rss";
195
228
  errors: {
196
229
  message?: string | undefined;
197
230
  timestamp?: number | undefined;
@@ -1986,58 +2019,58 @@ export declare const zodServerReportSchema: z.ZodObject<{
1986
2019
  sources_discovered: z.ZodOptional<z.ZodNumber>;
1987
2020
  embeddings_created: z.ZodOptional<z.ZodNumber>;
1988
2021
  }, "strip", z.ZodTypeAny, {
2022
+ sources_discovered?: number | undefined;
1989
2023
  batch_size?: number | undefined;
1990
2024
  processed_count?: number | undefined;
1991
2025
  failed_saves?: number | undefined;
1992
2026
  geo_saved?: number | undefined;
1993
2027
  geo_updated?: number | undefined;
1994
- sources_discovered?: number | undefined;
1995
2028
  embeddings_created?: number | undefined;
1996
2029
  }, {
2030
+ sources_discovered?: number | undefined;
1997
2031
  batch_size?: number | undefined;
1998
2032
  processed_count?: number | undefined;
1999
2033
  failed_saves?: number | undefined;
2000
2034
  geo_saved?: number | undefined;
2001
2035
  geo_updated?: number | undefined;
2002
- sources_discovered?: number | undefined;
2003
2036
  embeddings_created?: number | undefined;
2004
2037
  }>>;
2005
2038
  }, "strip", z.ZodTypeAny, {
2006
2039
  _id?: string | undefined;
2040
+ day?: number | undefined;
2007
2041
  timestamp?: number | undefined;
2008
2042
  year?: number | undefined;
2009
2043
  month?: number | undefined;
2010
- day?: number | undefined;
2011
2044
  server_name?: string | undefined;
2012
2045
  server_id?: string | undefined;
2013
2046
  post_count?: number | undefined;
2014
2047
  error_message?: string | undefined;
2015
2048
  additional_info?: {
2049
+ sources_discovered?: number | undefined;
2016
2050
  batch_size?: number | undefined;
2017
2051
  processed_count?: number | undefined;
2018
2052
  failed_saves?: number | undefined;
2019
2053
  geo_saved?: number | undefined;
2020
2054
  geo_updated?: number | undefined;
2021
- sources_discovered?: number | undefined;
2022
2055
  embeddings_created?: number | undefined;
2023
2056
  } | undefined;
2024
2057
  }, {
2025
2058
  _id?: string | undefined;
2059
+ day?: number | undefined;
2026
2060
  timestamp?: number | undefined;
2027
2061
  year?: number | undefined;
2028
2062
  month?: number | undefined;
2029
- day?: number | undefined;
2030
2063
  server_name?: string | undefined;
2031
2064
  server_id?: string | undefined;
2032
2065
  post_count?: number | undefined;
2033
2066
  error_message?: string | undefined;
2034
2067
  additional_info?: {
2068
+ sources_discovered?: number | undefined;
2035
2069
  batch_size?: number | undefined;
2036
2070
  processed_count?: number | undefined;
2037
2071
  failed_saves?: number | undefined;
2038
2072
  geo_saved?: number | undefined;
2039
2073
  geo_updated?: number | undefined;
2040
- sources_discovered?: number | undefined;
2041
2074
  embeddings_created?: number | undefined;
2042
2075
  } | undefined;
2043
2076
  }>;
package/dist/types.js CHANGED
@@ -25,6 +25,7 @@ exports.entityTypesList = [
25
25
  'channel',
26
26
  'hashtag',
27
27
  'website',
28
+ 'rss'
28
29
  ];
29
30
  // Platform-specific entity mappings
30
31
  exports.platformEntityMap = {
@@ -32,7 +33,7 @@ exports.platformEntityMap = {
32
33
  facebook: ['profile', 'page', 'group'],
33
34
  instagram: ['profile', 'hashtag'],
34
35
  tiktok: ['profile', 'hashtag'],
35
- website: ['website'],
36
+ website: ['website', 'rss'],
36
37
  };
37
38
  exports.priorityLevels = [
38
39
  'none',
@@ -82,7 +83,16 @@ exports.zodSourceGroupSchema = zod_1.z.object({
82
83
  updated_at: zod_1.z.number().optional(),
83
84
  notes: zod_1.z.string().optional(),
84
85
  status: zod_1.z.enum(exports.generalStatusList).optional(),
85
- active_sources: zod_1.z.number().optional(), // e.g., current number of active sources
86
+ active_sources: zod_1.z.number().optional(),
87
+ activity: zod_1.z
88
+ .array(zod_1.z.object({
89
+ day: zod_1.z.string(),
90
+ success_count: zod_1.z.number().optional(),
91
+ error_count: zod_1.z.number().optional(),
92
+ total_posts: zod_1.z.number().optional(),
93
+ sources_discovered: zod_1.z.number().optional(),
94
+ }))
95
+ .optional(),
86
96
  });
87
97
  exports.zodSourceSchema = zod_1.z.object({
88
98
  _id: zod_1.z.string().optional(),
package/index.ts CHANGED
@@ -9,7 +9,6 @@ import { Schema } from 'mongoose';
9
9
  import {
10
10
  generalStatusList,
11
11
  platformsList,
12
- entityTypesList,
13
12
  sourceStatusList,
14
13
  priorityLevels,
15
14
  } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
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
@@ -24,6 +24,7 @@ export const entityTypesList = [
24
24
  'channel',
25
25
  'hashtag',
26
26
  'website',
27
+ 'rss'
27
28
  ] as const;
28
29
 
29
30
  // Platform-specific entity mappings
@@ -32,7 +33,7 @@ export const platformEntityMap = {
32
33
  facebook: ['profile', 'page', 'group'],
33
34
  instagram: ['profile', 'hashtag'],
34
35
  tiktok: ['profile', 'hashtag'],
35
- website: ['website'],
36
+ website: ['website', 'rss'],
36
37
  } as const;
37
38
 
38
39
  export const priorityLevels = [
@@ -88,6 +89,17 @@ export const zodSourceGroupSchema = z.object({
88
89
  notes: z.string().optional(), // internal notes about the source group
89
90
  status: z.enum(generalStatusList).optional(),
90
91
  active_sources: z.number().optional(), // e.g., current number of active sources
92
+ activity: z
93
+ .array(
94
+ z.object({
95
+ day: z.string(), // e.g., "2026-02-14"
96
+ success_count: z.number().optional(),
97
+ error_count: z.number().optional(),
98
+ total_posts: z.number().optional(),
99
+ sources_discovered: z.number().optional(),
100
+ })
101
+ )
102
+ .optional(),
91
103
  });
92
104
 
93
105
  export const zodSourceSchema = z.object({