harvester_sdk 1.0.51 → 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 +78 -5
- package/dist/types.js +21 -2
- package/package.json +1 -1
- package/types.ts +22 -1
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>;
|
|
@@ -1977,29 +2010,69 @@ export declare const zodServerReportSchema: z.ZodObject<{
|
|
|
1977
2010
|
server_id: z.ZodOptional<z.ZodString>;
|
|
1978
2011
|
post_count: z.ZodOptional<z.ZodNumber>;
|
|
1979
2012
|
error_message: z.ZodOptional<z.ZodString>;
|
|
1980
|
-
additional_info: z.ZodOptional<z.
|
|
2013
|
+
additional_info: z.ZodOptional<z.ZodObject<{
|
|
2014
|
+
batch_size: z.ZodOptional<z.ZodNumber>;
|
|
2015
|
+
processed_count: z.ZodOptional<z.ZodNumber>;
|
|
2016
|
+
failed_saves: z.ZodOptional<z.ZodNumber>;
|
|
2017
|
+
geo_saved: z.ZodOptional<z.ZodNumber>;
|
|
2018
|
+
geo_updated: z.ZodOptional<z.ZodNumber>;
|
|
2019
|
+
sources_discovered: z.ZodOptional<z.ZodNumber>;
|
|
2020
|
+
embeddings_created: z.ZodOptional<z.ZodNumber>;
|
|
2021
|
+
}, "strip", z.ZodTypeAny, {
|
|
2022
|
+
sources_discovered?: number | undefined;
|
|
2023
|
+
batch_size?: number | undefined;
|
|
2024
|
+
processed_count?: number | undefined;
|
|
2025
|
+
failed_saves?: number | undefined;
|
|
2026
|
+
geo_saved?: number | undefined;
|
|
2027
|
+
geo_updated?: number | undefined;
|
|
2028
|
+
embeddings_created?: number | undefined;
|
|
2029
|
+
}, {
|
|
2030
|
+
sources_discovered?: number | undefined;
|
|
2031
|
+
batch_size?: number | undefined;
|
|
2032
|
+
processed_count?: number | undefined;
|
|
2033
|
+
failed_saves?: number | undefined;
|
|
2034
|
+
geo_saved?: number | undefined;
|
|
2035
|
+
geo_updated?: number | undefined;
|
|
2036
|
+
embeddings_created?: number | undefined;
|
|
2037
|
+
}>>;
|
|
1981
2038
|
}, "strip", z.ZodTypeAny, {
|
|
1982
2039
|
_id?: string | undefined;
|
|
2040
|
+
day?: number | undefined;
|
|
1983
2041
|
timestamp?: number | undefined;
|
|
1984
2042
|
year?: number | undefined;
|
|
1985
2043
|
month?: number | undefined;
|
|
1986
|
-
day?: number | undefined;
|
|
1987
2044
|
server_name?: string | undefined;
|
|
1988
2045
|
server_id?: string | undefined;
|
|
1989
2046
|
post_count?: number | undefined;
|
|
1990
2047
|
error_message?: string | undefined;
|
|
1991
|
-
additional_info?:
|
|
2048
|
+
additional_info?: {
|
|
2049
|
+
sources_discovered?: number | undefined;
|
|
2050
|
+
batch_size?: number | undefined;
|
|
2051
|
+
processed_count?: number | undefined;
|
|
2052
|
+
failed_saves?: number | undefined;
|
|
2053
|
+
geo_saved?: number | undefined;
|
|
2054
|
+
geo_updated?: number | undefined;
|
|
2055
|
+
embeddings_created?: number | undefined;
|
|
2056
|
+
} | undefined;
|
|
1992
2057
|
}, {
|
|
1993
2058
|
_id?: string | undefined;
|
|
2059
|
+
day?: number | undefined;
|
|
1994
2060
|
timestamp?: number | undefined;
|
|
1995
2061
|
year?: number | undefined;
|
|
1996
2062
|
month?: number | undefined;
|
|
1997
|
-
day?: number | undefined;
|
|
1998
2063
|
server_name?: string | undefined;
|
|
1999
2064
|
server_id?: string | undefined;
|
|
2000
2065
|
post_count?: number | undefined;
|
|
2001
2066
|
error_message?: string | undefined;
|
|
2002
|
-
additional_info?:
|
|
2067
|
+
additional_info?: {
|
|
2068
|
+
sources_discovered?: number | undefined;
|
|
2069
|
+
batch_size?: number | undefined;
|
|
2070
|
+
processed_count?: number | undefined;
|
|
2071
|
+
failed_saves?: number | undefined;
|
|
2072
|
+
geo_saved?: number | undefined;
|
|
2073
|
+
geo_updated?: number | undefined;
|
|
2074
|
+
embeddings_created?: number | undefined;
|
|
2075
|
+
} | undefined;
|
|
2003
2076
|
}>;
|
|
2004
2077
|
export type RegionType = z.infer<typeof zodRegionSchema>;
|
|
2005
2078
|
export type SourceGroupType = z.infer<typeof zodSourceGroupSchema>;
|
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(),
|
|
@@ -396,5 +405,15 @@ exports.zodServerReportSchema = zod_1.z.object({
|
|
|
396
405
|
server_id: zod_1.z.string().optional(),
|
|
397
406
|
post_count: zod_1.z.number().optional(),
|
|
398
407
|
error_message: zod_1.z.string().optional(),
|
|
399
|
-
additional_info: zod_1.z
|
|
408
|
+
additional_info: zod_1.z
|
|
409
|
+
.object({
|
|
410
|
+
batch_size: zod_1.z.number().optional(),
|
|
411
|
+
processed_count: zod_1.z.number().optional(),
|
|
412
|
+
failed_saves: zod_1.z.number().optional(),
|
|
413
|
+
geo_saved: zod_1.z.number().optional(),
|
|
414
|
+
geo_updated: zod_1.z.number().optional(),
|
|
415
|
+
sources_discovered: zod_1.z.number().optional(),
|
|
416
|
+
embeddings_created: zod_1.z.number().optional(),
|
|
417
|
+
})
|
|
418
|
+
.optional(),
|
|
400
419
|
});
|
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({
|
|
@@ -438,7 +449,17 @@ export const zodServerReportSchema = z.object({
|
|
|
438
449
|
server_id: z.string().optional(), // group_id or source_id depending on the context
|
|
439
450
|
post_count: z.number().optional(),
|
|
440
451
|
error_message: z.string().optional(),
|
|
441
|
-
additional_info: z
|
|
452
|
+
additional_info: z
|
|
453
|
+
.object({
|
|
454
|
+
batch_size: z.number().optional(),
|
|
455
|
+
processed_count: z.number().optional(),
|
|
456
|
+
failed_saves: z.number().optional(),
|
|
457
|
+
geo_saved: z.number().optional(),
|
|
458
|
+
geo_updated: z.number().optional(),
|
|
459
|
+
sources_discovered: z.number().optional(),
|
|
460
|
+
embeddings_created: z.number().optional(),
|
|
461
|
+
})
|
|
462
|
+
.optional(),
|
|
442
463
|
});
|
|
443
464
|
|
|
444
465
|
export type RegionType = z.infer<typeof zodRegionSchema>;
|