harvester_sdk 1.0.53 → 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/types.d.ts +5 -5
- package/dist/types.js +2 -1
- package/index.ts +0 -1
- package/package.json +1 -1
- package/types.ts +2 -1
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"];
|
|
@@ -131,7 +131,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
131
131
|
_id: z.ZodOptional<z.ZodString>;
|
|
132
132
|
title: z.ZodOptional<z.ZodString>;
|
|
133
133
|
platform: z.ZodEnum<["telegram", "facebook", "instagram", "tiktok", "website", "youtube", "twitter", "x", "reddit", "linkedin", "snapchat", "whatsapp", "discord", "twitch"]>;
|
|
134
|
-
entity: z.ZodEnum<["profile", "group", "page", "channel", "hashtag", "website"]>;
|
|
134
|
+
entity: z.ZodEnum<["profile", "group", "page", "channel", "hashtag", "website", "rss"]>;
|
|
135
135
|
public_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
136
136
|
url: z.ZodOptional<z.ZodString>;
|
|
137
137
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -187,7 +187,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
|
|
189
189
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
|
|
190
|
-
entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
|
|
190
|
+
entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag" | "rss";
|
|
191
191
|
is_public: boolean;
|
|
192
192
|
errors: {
|
|
193
193
|
is_handled: boolean;
|
|
@@ -224,7 +224,7 @@ export declare const zodSourceSchema: z.ZodObject<{
|
|
|
224
224
|
}, {
|
|
225
225
|
status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
|
|
226
226
|
platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
|
|
227
|
-
entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag";
|
|
227
|
+
entity: "website" | "profile" | "group" | "page" | "channel" | "hashtag" | "rss";
|
|
228
228
|
errors: {
|
|
229
229
|
message?: string | undefined;
|
|
230
230
|
timestamp?: number | undefined;
|
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',
|
package/index.ts
CHANGED
package/package.json
CHANGED
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 = [
|