harvester_sdk 1.0.58 → 1.0.59
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 +12 -0
- package/dist/index.js +2 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.js +1 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -785,6 +785,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
785
785
|
timestamp: number;
|
|
786
786
|
embeddings: number[];
|
|
787
787
|
keywords: string[];
|
|
788
|
+
update_count: number;
|
|
788
789
|
type?: string | null | undefined;
|
|
789
790
|
region_id?: string | null | undefined;
|
|
790
791
|
title?: string | null | undefined;
|
|
@@ -797,6 +798,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
797
798
|
data_geo: string[];
|
|
798
799
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
799
800
|
timestamp?: number | null | undefined;
|
|
801
|
+
data_timestamp?: number | null | undefined;
|
|
800
802
|
source_id?: any;
|
|
801
803
|
data_id?: any;
|
|
802
804
|
data_url?: string | null | undefined;
|
|
@@ -808,6 +810,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
808
810
|
data_geo: string[];
|
|
809
811
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
810
812
|
timestamp?: number | null | undefined;
|
|
813
|
+
data_timestamp?: number | null | undefined;
|
|
811
814
|
source_id?: any;
|
|
812
815
|
data_id?: any;
|
|
813
816
|
data_url?: string | null | undefined;
|
|
@@ -819,6 +822,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
819
822
|
data_geo: string[];
|
|
820
823
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
821
824
|
timestamp?: number | null | undefined;
|
|
825
|
+
data_timestamp?: number | null | undefined;
|
|
822
826
|
source_id?: any;
|
|
823
827
|
data_id?: any;
|
|
824
828
|
data_url?: string | null | undefined;
|
|
@@ -840,6 +844,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
840
844
|
timestamp: number;
|
|
841
845
|
embeddings: number[];
|
|
842
846
|
keywords: string[];
|
|
847
|
+
update_count: number;
|
|
843
848
|
type?: string | null | undefined;
|
|
844
849
|
region_id?: string | null | undefined;
|
|
845
850
|
title?: string | null | undefined;
|
|
@@ -852,6 +857,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
852
857
|
data_geo: string[];
|
|
853
858
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
854
859
|
timestamp?: number | null | undefined;
|
|
860
|
+
data_timestamp?: number | null | undefined;
|
|
855
861
|
source_id?: any;
|
|
856
862
|
data_id?: any;
|
|
857
863
|
data_url?: string | null | undefined;
|
|
@@ -863,6 +869,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
863
869
|
data_geo: string[];
|
|
864
870
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
865
871
|
timestamp?: number | null | undefined;
|
|
872
|
+
data_timestamp?: number | null | undefined;
|
|
866
873
|
source_id?: any;
|
|
867
874
|
data_id?: any;
|
|
868
875
|
data_url?: string | null | undefined;
|
|
@@ -874,6 +881,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
874
881
|
data_geo: string[];
|
|
875
882
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
876
883
|
timestamp?: number | null | undefined;
|
|
884
|
+
data_timestamp?: number | null | undefined;
|
|
877
885
|
source_id?: any;
|
|
878
886
|
data_id?: any;
|
|
879
887
|
data_url?: string | null | undefined;
|
|
@@ -895,6 +903,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
895
903
|
timestamp: number;
|
|
896
904
|
embeddings: number[];
|
|
897
905
|
keywords: string[];
|
|
906
|
+
update_count: number;
|
|
898
907
|
type?: string | null | undefined;
|
|
899
908
|
region_id?: string | null | undefined;
|
|
900
909
|
title?: string | null | undefined;
|
|
@@ -907,6 +916,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
907
916
|
data_geo: string[];
|
|
908
917
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
909
918
|
timestamp?: number | null | undefined;
|
|
919
|
+
data_timestamp?: number | null | undefined;
|
|
910
920
|
source_id?: any;
|
|
911
921
|
data_id?: any;
|
|
912
922
|
data_url?: string | null | undefined;
|
|
@@ -918,6 +928,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
918
928
|
data_geo: string[];
|
|
919
929
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
920
930
|
timestamp?: number | null | undefined;
|
|
931
|
+
data_timestamp?: number | null | undefined;
|
|
921
932
|
source_id?: any;
|
|
922
933
|
data_id?: any;
|
|
923
934
|
data_url?: string | null | undefined;
|
|
@@ -929,6 +940,7 @@ export declare const MongoEventSchema: Schema<any, import("mongoose").Model<any,
|
|
|
929
940
|
data_geo: string[];
|
|
930
941
|
platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch" | null | undefined;
|
|
931
942
|
timestamp?: number | null | undefined;
|
|
943
|
+
data_timestamp?: number | null | undefined;
|
|
932
944
|
source_id?: any;
|
|
933
945
|
data_id?: any;
|
|
934
946
|
data_url?: string | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -355,6 +355,7 @@ exports.MongoEventSchema = new mongoose_1.Schema({
|
|
|
355
355
|
data: { type: String },
|
|
356
356
|
created_at: { type: Number, default: Date.now },
|
|
357
357
|
updated_at: { type: Number, default: Date.now },
|
|
358
|
+
update_count: { type: Number, default: 0 },
|
|
358
359
|
keywords: { type: [String], default: [] },
|
|
359
360
|
geo_selection: { type: mongoose_1.Schema.Types.Mixed },
|
|
360
361
|
raw_data: {
|
|
@@ -365,6 +366,7 @@ exports.MongoEventSchema = new mongoose_1.Schema({
|
|
|
365
366
|
data_id: { type: mongoose_1.Schema.Types.Mixed },
|
|
366
367
|
data_url: { type: String },
|
|
367
368
|
data_text: { type: String },
|
|
369
|
+
data_timestamp: { type: Number },
|
|
368
370
|
author_username: { type: String },
|
|
369
371
|
author_id: { type: String },
|
|
370
372
|
timestamp: { type: Number },
|
package/dist/types.d.ts
CHANGED
|
@@ -2144,6 +2144,7 @@ export declare const zodEventSchema: z.ZodObject<{
|
|
|
2144
2144
|
data: z.ZodString;
|
|
2145
2145
|
created_at: z.ZodNumber;
|
|
2146
2146
|
updated_at: z.ZodNumber;
|
|
2147
|
+
update_count: z.ZodOptional<z.ZodNumber>;
|
|
2147
2148
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2148
2149
|
geo_selection: z.ZodObject<{
|
|
2149
2150
|
_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2292,6 +2293,7 @@ export declare const zodEventSchema: z.ZodObject<{
|
|
|
2292
2293
|
geo_selection_id?: string | undefined;
|
|
2293
2294
|
geo_selection_title?: string | undefined;
|
|
2294
2295
|
data_short?: string | undefined;
|
|
2296
|
+
update_count?: number | undefined;
|
|
2295
2297
|
raw_data?: {
|
|
2296
2298
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
|
|
2297
2299
|
source_id: string | number;
|
|
@@ -2343,6 +2345,7 @@ export declare const zodEventSchema: z.ZodObject<{
|
|
|
2343
2345
|
geo_selection_id?: string | undefined;
|
|
2344
2346
|
geo_selection_title?: string | undefined;
|
|
2345
2347
|
data_short?: string | undefined;
|
|
2348
|
+
update_count?: number | undefined;
|
|
2346
2349
|
raw_data?: {
|
|
2347
2350
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
|
|
2348
2351
|
source_id: string | number;
|
package/dist/types.js
CHANGED
|
@@ -456,6 +456,7 @@ exports.zodEventSchema = zod_1.z.object({
|
|
|
456
456
|
data: zod_1.z.string(),
|
|
457
457
|
created_at: zod_1.z.number(),
|
|
458
458
|
updated_at: zod_1.z.number(),
|
|
459
|
+
update_count: zod_1.z.number().optional(),
|
|
459
460
|
keywords: zod_1.z.array(zod_1.z.string()).optional(),
|
|
460
461
|
geo_selection: exports.zodGeoSelectionSchema,
|
|
461
462
|
raw_data: zod_1.z
|
package/index.ts
CHANGED
|
@@ -394,6 +394,7 @@ export const MongoEventSchema = new Schema(
|
|
|
394
394
|
data: { type: String }, // in depth data about the event, this string is updated each time the object is updated
|
|
395
395
|
created_at: { type: Number, default: Date.now }, // creation date
|
|
396
396
|
updated_at: { type: Number, default: Date.now }, // last update date
|
|
397
|
+
update_count: { type: Number, default: 0 }, // how many times the event was updated
|
|
397
398
|
keywords: { type: [String], default: [] }, // e.g., ['red sea', 'escalating']
|
|
398
399
|
geo_selection: { type: Schema.Types.Mixed }, // embedded geo selection object
|
|
399
400
|
raw_data: {
|
|
@@ -404,6 +405,7 @@ export const MongoEventSchema = new Schema(
|
|
|
404
405
|
data_id: { type: Schema.Types.Mixed },
|
|
405
406
|
data_url: { type: String },
|
|
406
407
|
data_text: { type: String },
|
|
408
|
+
data_timestamp: { type: Number },
|
|
407
409
|
author_username: { type: String },
|
|
408
410
|
author_id: { type: String },
|
|
409
411
|
timestamp: { type: Number },
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -525,6 +525,7 @@ export const zodEventSchema = z.object({
|
|
|
525
525
|
data: z.string(), // in depth data about the event, this string is updated each time the object is updated
|
|
526
526
|
created_at: z.number(), // e.g., 1751210833000
|
|
527
527
|
updated_at: z.number(), // e.g., 1751210833000
|
|
528
|
+
update_count: z.number().optional(), // e.g., 3 - how many times the event was updated
|
|
528
529
|
keywords: z.array(z.string()).optional(), // e.g., ['red sea', 'escalating']
|
|
529
530
|
geo_selection: zodGeoSelectionSchema,
|
|
530
531
|
raw_data: z
|