harvester_sdk 1.0.18 → 1.0.19

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
@@ -415,7 +415,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
415
415
  metadata: any;
416
416
  dominant_geos: string[];
417
417
  mentions_in_discovery: number;
418
- priority: "low" | "medium" | "high" | "critical";
418
+ priority: "none" | "low" | "medium" | "high" | "critical";
419
419
  notes?: string | null | undefined;
420
420
  description?: string | null | undefined;
421
421
  region_id?: string | null | undefined;
@@ -446,7 +446,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
446
446
  metadata: any;
447
447
  dominant_geos: string[];
448
448
  mentions_in_discovery: number;
449
- priority: "low" | "medium" | "high" | "critical";
449
+ priority: "none" | "low" | "medium" | "high" | "critical";
450
450
  notes?: string | null | undefined;
451
451
  description?: string | null | undefined;
452
452
  region_id?: string | null | undefined;
@@ -477,7 +477,7 @@ export declare const MongoSourceSchema: Schema<any, import("mongoose").Model<any
477
477
  metadata: any;
478
478
  dominant_geos: string[];
479
479
  mentions_in_discovery: number;
480
- priority: "low" | "medium" | "high" | "critical";
480
+ priority: "none" | "low" | "medium" | "high" | "critical";
481
481
  notes?: string | null | undefined;
482
482
  description?: string | null | undefined;
483
483
  region_id?: string | null | undefined;
package/dist/index.js CHANGED
@@ -54,7 +54,7 @@ exports.MongoDataSchema = new mongoose_1.Schema({
54
54
  'article',
55
55
  'link',
56
56
  'document',
57
- 'text'
57
+ 'text',
58
58
  ],
59
59
  },
60
60
  // Content
@@ -246,8 +246,8 @@ exports.MongoSourceSchema = new mongoose_1.Schema({
246
246
  notes: { type: String },
247
247
  priority: {
248
248
  type: String,
249
- enum: ['low', 'medium', 'high', 'critical'],
250
- default: 'medium',
249
+ enum: types_1.priorityLevels,
250
+ default: 'none',
251
251
  },
252
252
  }, {
253
253
  versionKey: false,
package/dist/types.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare const platformEntityMap: {
8
8
  readonly tiktok: readonly ["profile", "hashtag"];
9
9
  readonly website: readonly ["website"];
10
10
  };
11
- export declare const priorityLevels: readonly ["low", "medium", "high", "critical"];
11
+ export declare const priorityLevels: readonly ["none", "low", "medium", "high", "critical"];
12
12
  export declare const sourceStatusList: readonly ["active", "pending", "inactive", "requested", "discovered", "deleted"];
13
13
  export declare const generalStatusList: readonly ["active", "inactive", "deleted"];
14
14
  export declare const zodRegionSchema: z.ZodObject<{
@@ -116,7 +116,7 @@ export declare const zodSourceSchema: z.ZodObject<{
116
116
  requested_at?: number | undefined;
117
117
  }>>;
118
118
  notes: z.ZodOptional<z.ZodString>;
119
- priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
119
+ priority: z.ZodOptional<z.ZodEnum<["none", "low", "medium", "high", "critical"]>>;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
122
122
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
@@ -148,7 +148,7 @@ export declare const zodSourceSchema: z.ZodObject<{
148
148
  email?: string | undefined;
149
149
  requested_at?: number | undefined;
150
150
  } | undefined;
151
- priority?: "low" | "medium" | "high" | "critical" | undefined;
151
+ priority?: "none" | "low" | "medium" | "high" | "critical" | undefined;
152
152
  }, {
153
153
  status: "active" | "pending" | "inactive" | "requested" | "discovered" | "deleted";
154
154
  platform: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | "youtube" | "twitter" | "x" | "reddit" | "linkedin" | "snapchat" | "whatsapp" | "discord" | "twitch";
@@ -180,7 +180,7 @@ export declare const zodSourceSchema: z.ZodObject<{
180
180
  email?: string | undefined;
181
181
  requested_at?: number | undefined;
182
182
  } | undefined;
183
- priority?: "low" | "medium" | "high" | "critical" | undefined;
183
+ priority?: "none" | "low" | "medium" | "high" | "critical" | undefined;
184
184
  }>;
185
185
  export declare const zodGeoSchema: z.ZodObject<{
186
186
  _id: z.ZodOptional<z.ZodString>;
package/dist/types.js CHANGED
@@ -34,7 +34,7 @@ exports.platformEntityMap = {
34
34
  tiktok: ['profile', 'hashtag'],
35
35
  website: ['website'],
36
36
  };
37
- exports.priorityLevels = ['low', 'medium', 'high', 'critical'];
37
+ exports.priorityLevels = ['none', 'low', 'medium', 'high', 'critical'];
38
38
  exports.sourceStatusList = [
39
39
  'active',
40
40
  'pending',
package/index.ts CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  platformsList,
8
8
  entityTypesList,
9
9
  sourceStatusList,
10
+ priorityLevels,
10
11
  } from './types';
11
12
 
12
13
  export const MongoDataSchema = new Schema(
@@ -47,7 +48,7 @@ export const MongoDataSchema = new Schema(
47
48
  'article',
48
49
  'link',
49
50
  'document',
50
- 'text'
51
+ 'text',
51
52
  ],
52
53
  },
53
54
 
@@ -262,8 +263,8 @@ export const MongoSourceSchema = new Schema(
262
263
  notes: { type: String }, // internal notes about the source
263
264
  priority: {
264
265
  type: String,
265
- enum: ['low', 'medium', 'high', 'critical'],
266
- default: 'medium',
266
+ enum: priorityLevels,
267
+ default: 'none',
267
268
  },
268
269
  },
269
270
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harvester_sdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
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
@@ -35,7 +35,7 @@ export const platformEntityMap = {
35
35
  website: ['website'],
36
36
  } as const;
37
37
 
38
- export const priorityLevels = ['low', 'medium', 'high', 'critical'] as const;
38
+ export const priorityLevels = ['none', 'low', 'medium', 'high', 'critical'] as const;
39
39
 
40
40
  export const sourceStatusList = [
41
41
  'active', // active and approved sources