harvester_sdk 1.0.52 → 1.0.53
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 +3 -3
- package/dist/types.d.ts +39 -6
- package/dist/types.js +10 -1
- package/package.json +1 -1
- package/types.ts +11 -0
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
|
@@ -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,6 +119,13 @@ 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>;
|
|
@@ -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
|
@@ -82,7 +82,16 @@ exports.zodSourceGroupSchema = zod_1.z.object({
|
|
|
82
82
|
updated_at: zod_1.z.number().optional(),
|
|
83
83
|
notes: zod_1.z.string().optional(),
|
|
84
84
|
status: zod_1.z.enum(exports.generalStatusList).optional(),
|
|
85
|
-
active_sources: zod_1.z.number().optional(),
|
|
85
|
+
active_sources: zod_1.z.number().optional(),
|
|
86
|
+
activity: zod_1.z
|
|
87
|
+
.array(zod_1.z.object({
|
|
88
|
+
day: zod_1.z.string(),
|
|
89
|
+
success_count: zod_1.z.number().optional(),
|
|
90
|
+
error_count: zod_1.z.number().optional(),
|
|
91
|
+
total_posts: zod_1.z.number().optional(),
|
|
92
|
+
sources_discovered: zod_1.z.number().optional(),
|
|
93
|
+
}))
|
|
94
|
+
.optional(),
|
|
86
95
|
});
|
|
87
96
|
exports.zodSourceSchema = zod_1.z.object({
|
|
88
97
|
_id: zod_1.z.string().optional(),
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -88,6 +88,17 @@ export const zodSourceGroupSchema = z.object({
|
|
|
88
88
|
notes: z.string().optional(), // internal notes about the source group
|
|
89
89
|
status: z.enum(generalStatusList).optional(),
|
|
90
90
|
active_sources: z.number().optional(), // e.g., current number of active sources
|
|
91
|
+
activity: z
|
|
92
|
+
.array(
|
|
93
|
+
z.object({
|
|
94
|
+
day: z.string(), // e.g., "2026-02-14"
|
|
95
|
+
success_count: z.number().optional(),
|
|
96
|
+
error_count: z.number().optional(),
|
|
97
|
+
total_posts: z.number().optional(),
|
|
98
|
+
sources_discovered: z.number().optional(),
|
|
99
|
+
})
|
|
100
|
+
)
|
|
101
|
+
.optional(),
|
|
91
102
|
});
|
|
92
103
|
|
|
93
104
|
export const zodSourceSchema = z.object({
|