@badger_badger/badger_hq 1.7.0 → 1.8.0
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/CHANGELOG.md +11 -0
- package/dist/{agent-session-BKq7mARI.d.cts → agent-session-C7C0Z1e1.d.cts} +139 -14
- package/dist/{agent-session-BKq7mARI.d.ts → agent-session-C7C0Z1e1.d.ts} +139 -14
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -26
- package/dist/index.d.ts +34 -26
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/mongo/index.cjs +16 -0
- package/dist/mongo/index.cjs.map +1 -1
- package/dist/mongo/index.d.cts +229 -17
- package/dist/mongo/index.d.ts +229 -17
- package/dist/mongo/index.js +16 -1
- package/dist/mongo/index.js.map +1 -1
- package/package.json +1 -1
package/dist/mongo/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { av as CollectionName, n as AgentMessage, u as AgentSession, J as AnalystProfile, P as AssigneeLoad, T as Assignment, a0 as AuditLog, af as Capture, aH as DataItem, aS as Database, b0 as Deployment, bQ as Mission,
|
|
2
|
-
export { ad as COLLECTIONS } from '../agent-session-
|
|
1
|
+
import { av as CollectionName, n as AgentMessage, u as AgentSession, J as AnalystProfile, P as AssigneeLoad, T as Assignment, a0 as AuditLog, af as Capture, aH as DataItem, aS as Database, b0 as Deployment, bQ as Mission, dl as Task, bo as HoursLog, cm as ScoutProfile, bZ as OrgSettings, cu as ScoutRating, cO as Source, cV as SourceImport, cB as Scraper, cE as ScraperMetric, bA as LlmCall } from '../agent-session-C7C0Z1e1.js';
|
|
2
|
+
export { ad as COLLECTIONS } from '../agent-session-C7C0Z1e1.js';
|
|
3
3
|
import * as mongoose from 'mongoose';
|
|
4
4
|
import { Types, IndexDefinition, IndexOptions, Schema, Query, Model, Connection } from 'mongoose';
|
|
5
5
|
import 'zod';
|
|
@@ -551,6 +551,78 @@ declare const discoveredBySchema: Schema<{
|
|
|
551
551
|
} & {
|
|
552
552
|
__v: number;
|
|
553
553
|
}>;
|
|
554
|
+
declare const sourceDiscoverySchema: Schema<{
|
|
555
|
+
taskId: mongoose.Types.ObjectId;
|
|
556
|
+
name: string;
|
|
557
|
+
reason: string;
|
|
558
|
+
relevanceScore: number;
|
|
559
|
+
discoveredAt: Date;
|
|
560
|
+
description?: string | undefined;
|
|
561
|
+
captureId?: string | undefined;
|
|
562
|
+
capturedUrl?: string | undefined;
|
|
563
|
+
}, mongoose.Model<{
|
|
564
|
+
taskId: mongoose.Types.ObjectId;
|
|
565
|
+
name: string;
|
|
566
|
+
reason: string;
|
|
567
|
+
relevanceScore: number;
|
|
568
|
+
discoveredAt: Date;
|
|
569
|
+
description?: string | undefined;
|
|
570
|
+
captureId?: string | undefined;
|
|
571
|
+
capturedUrl?: string | undefined;
|
|
572
|
+
}, any, any, any, mongoose.Document<unknown, any, {
|
|
573
|
+
taskId: mongoose.Types.ObjectId;
|
|
574
|
+
name: string;
|
|
575
|
+
reason: string;
|
|
576
|
+
relevanceScore: number;
|
|
577
|
+
discoveredAt: Date;
|
|
578
|
+
description?: string | undefined;
|
|
579
|
+
captureId?: string | undefined;
|
|
580
|
+
capturedUrl?: string | undefined;
|
|
581
|
+
}, any, {}> & {
|
|
582
|
+
taskId: mongoose.Types.ObjectId;
|
|
583
|
+
name: string;
|
|
584
|
+
reason: string;
|
|
585
|
+
relevanceScore: number;
|
|
586
|
+
discoveredAt: Date;
|
|
587
|
+
description?: string | undefined;
|
|
588
|
+
captureId?: string | undefined;
|
|
589
|
+
capturedUrl?: string | undefined;
|
|
590
|
+
} & {
|
|
591
|
+
_id: mongoose.Types.ObjectId;
|
|
592
|
+
} & {
|
|
593
|
+
__v: number;
|
|
594
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
595
|
+
taskId: mongoose.Types.ObjectId;
|
|
596
|
+
name: string;
|
|
597
|
+
reason: string;
|
|
598
|
+
relevanceScore: number;
|
|
599
|
+
discoveredAt: Date;
|
|
600
|
+
description?: string | undefined;
|
|
601
|
+
captureId?: string | undefined;
|
|
602
|
+
capturedUrl?: string | undefined;
|
|
603
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
604
|
+
taskId: mongoose.Types.ObjectId;
|
|
605
|
+
name: string;
|
|
606
|
+
reason: string;
|
|
607
|
+
relevanceScore: number;
|
|
608
|
+
discoveredAt: Date;
|
|
609
|
+
description?: string | undefined;
|
|
610
|
+
captureId?: string | undefined;
|
|
611
|
+
capturedUrl?: string | undefined;
|
|
612
|
+
}>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<{
|
|
613
|
+
taskId: mongoose.Types.ObjectId;
|
|
614
|
+
name: string;
|
|
615
|
+
reason: string;
|
|
616
|
+
relevanceScore: number;
|
|
617
|
+
discoveredAt: Date;
|
|
618
|
+
description?: string | undefined;
|
|
619
|
+
captureId?: string | undefined;
|
|
620
|
+
capturedUrl?: string | undefined;
|
|
621
|
+
}> & {
|
|
622
|
+
_id: mongoose.Types.ObjectId;
|
|
623
|
+
} & {
|
|
624
|
+
__v: number;
|
|
625
|
+
}>;
|
|
554
626
|
declare const sourceImportSummarySchema: Schema<{
|
|
555
627
|
invalid: number;
|
|
556
628
|
toCreate: number;
|
|
@@ -2421,6 +2493,16 @@ declare const sourceSchema: Schema<{
|
|
|
2421
2493
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
2422
2494
|
userId?: string | undefined;
|
|
2423
2495
|
};
|
|
2496
|
+
discovery?: {
|
|
2497
|
+
taskId: mongoose.Types.ObjectId;
|
|
2498
|
+
name: string;
|
|
2499
|
+
reason: string;
|
|
2500
|
+
relevanceScore: number;
|
|
2501
|
+
discoveredAt: Date;
|
|
2502
|
+
description?: string | undefined;
|
|
2503
|
+
captureId?: string | undefined;
|
|
2504
|
+
capturedUrl?: string | undefined;
|
|
2505
|
+
} | undefined;
|
|
2424
2506
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
2425
2507
|
deletedAt?: Date | undefined;
|
|
2426
2508
|
handle?: string | undefined;
|
|
@@ -2452,6 +2534,16 @@ declare const sourceSchema: Schema<{
|
|
|
2452
2534
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
2453
2535
|
userId?: string | undefined;
|
|
2454
2536
|
};
|
|
2537
|
+
discovery?: {
|
|
2538
|
+
taskId: mongoose.Types.ObjectId;
|
|
2539
|
+
name: string;
|
|
2540
|
+
reason: string;
|
|
2541
|
+
relevanceScore: number;
|
|
2542
|
+
discoveredAt: Date;
|
|
2543
|
+
description?: string | undefined;
|
|
2544
|
+
captureId?: string | undefined;
|
|
2545
|
+
capturedUrl?: string | undefined;
|
|
2546
|
+
} | undefined;
|
|
2455
2547
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
2456
2548
|
deletedAt?: Date | undefined;
|
|
2457
2549
|
handle?: string | undefined;
|
|
@@ -2483,6 +2575,16 @@ declare const sourceSchema: Schema<{
|
|
|
2483
2575
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
2484
2576
|
userId?: string | undefined;
|
|
2485
2577
|
};
|
|
2578
|
+
discovery?: {
|
|
2579
|
+
taskId: mongoose.Types.ObjectId;
|
|
2580
|
+
name: string;
|
|
2581
|
+
reason: string;
|
|
2582
|
+
relevanceScore: number;
|
|
2583
|
+
discoveredAt: Date;
|
|
2584
|
+
description?: string | undefined;
|
|
2585
|
+
captureId?: string | undefined;
|
|
2586
|
+
capturedUrl?: string | undefined;
|
|
2587
|
+
} | undefined;
|
|
2486
2588
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
2487
2589
|
deletedAt?: Date | undefined;
|
|
2488
2590
|
handle?: string | undefined;
|
|
@@ -2514,6 +2616,16 @@ declare const sourceSchema: Schema<{
|
|
|
2514
2616
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
2515
2617
|
userId?: string | undefined;
|
|
2516
2618
|
};
|
|
2619
|
+
discovery?: {
|
|
2620
|
+
taskId: mongoose.Types.ObjectId;
|
|
2621
|
+
name: string;
|
|
2622
|
+
reason: string;
|
|
2623
|
+
relevanceScore: number;
|
|
2624
|
+
discoveredAt: Date;
|
|
2625
|
+
description?: string | undefined;
|
|
2626
|
+
captureId?: string | undefined;
|
|
2627
|
+
capturedUrl?: string | undefined;
|
|
2628
|
+
} | undefined;
|
|
2517
2629
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
2518
2630
|
deletedAt?: Date | undefined;
|
|
2519
2631
|
handle?: string | undefined;
|
|
@@ -2549,6 +2661,16 @@ declare const sourceSchema: Schema<{
|
|
|
2549
2661
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
2550
2662
|
userId?: string | undefined;
|
|
2551
2663
|
};
|
|
2664
|
+
discovery?: {
|
|
2665
|
+
taskId: mongoose.Types.ObjectId;
|
|
2666
|
+
name: string;
|
|
2667
|
+
reason: string;
|
|
2668
|
+
relevanceScore: number;
|
|
2669
|
+
discoveredAt: Date;
|
|
2670
|
+
description?: string | undefined;
|
|
2671
|
+
captureId?: string | undefined;
|
|
2672
|
+
capturedUrl?: string | undefined;
|
|
2673
|
+
} | undefined;
|
|
2552
2674
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
2553
2675
|
deletedAt?: Date | undefined;
|
|
2554
2676
|
handle?: string | undefined;
|
|
@@ -2580,6 +2702,16 @@ declare const sourceSchema: Schema<{
|
|
|
2580
2702
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
2581
2703
|
userId?: string | undefined;
|
|
2582
2704
|
};
|
|
2705
|
+
discovery?: {
|
|
2706
|
+
taskId: mongoose.Types.ObjectId;
|
|
2707
|
+
name: string;
|
|
2708
|
+
reason: string;
|
|
2709
|
+
relevanceScore: number;
|
|
2710
|
+
discoveredAt: Date;
|
|
2711
|
+
description?: string | undefined;
|
|
2712
|
+
captureId?: string | undefined;
|
|
2713
|
+
capturedUrl?: string | undefined;
|
|
2714
|
+
} | undefined;
|
|
2583
2715
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
2584
2716
|
deletedAt?: Date | undefined;
|
|
2585
2717
|
handle?: string | undefined;
|
|
@@ -2611,6 +2743,16 @@ declare const sourceSchema: Schema<{
|
|
|
2611
2743
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
2612
2744
|
userId?: string | undefined;
|
|
2613
2745
|
};
|
|
2746
|
+
discovery?: {
|
|
2747
|
+
taskId: mongoose.Types.ObjectId;
|
|
2748
|
+
name: string;
|
|
2749
|
+
reason: string;
|
|
2750
|
+
relevanceScore: number;
|
|
2751
|
+
discoveredAt: Date;
|
|
2752
|
+
description?: string | undefined;
|
|
2753
|
+
captureId?: string | undefined;
|
|
2754
|
+
capturedUrl?: string | undefined;
|
|
2755
|
+
} | undefined;
|
|
2614
2756
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
2615
2757
|
deletedAt?: Date | undefined;
|
|
2616
2758
|
handle?: string | undefined;
|
|
@@ -3871,8 +4013,8 @@ declare const agentMessageSchema: Schema<{
|
|
|
3871
4013
|
name: string;
|
|
3872
4014
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3873
4015
|
kind: "source_result";
|
|
3874
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3875
4016
|
reason: string;
|
|
4017
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3876
4018
|
url?: string | undefined;
|
|
3877
4019
|
score?: number | undefined;
|
|
3878
4020
|
} | {
|
|
@@ -3918,8 +4060,8 @@ declare const agentMessageSchema: Schema<{
|
|
|
3918
4060
|
name: string;
|
|
3919
4061
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3920
4062
|
kind: "source_result";
|
|
3921
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3922
4063
|
reason: string;
|
|
4064
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3923
4065
|
url?: string | undefined;
|
|
3924
4066
|
score?: number | undefined;
|
|
3925
4067
|
} | {
|
|
@@ -3965,8 +4107,8 @@ declare const agentMessageSchema: Schema<{
|
|
|
3965
4107
|
name: string;
|
|
3966
4108
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
3967
4109
|
kind: "source_result";
|
|
3968
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3969
4110
|
reason: string;
|
|
4111
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
3970
4112
|
url?: string | undefined;
|
|
3971
4113
|
score?: number | undefined;
|
|
3972
4114
|
} | {
|
|
@@ -4012,8 +4154,8 @@ declare const agentMessageSchema: Schema<{
|
|
|
4012
4154
|
name: string;
|
|
4013
4155
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
4014
4156
|
kind: "source_result";
|
|
4015
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4016
4157
|
reason: string;
|
|
4158
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4017
4159
|
url?: string | undefined;
|
|
4018
4160
|
score?: number | undefined;
|
|
4019
4161
|
} | {
|
|
@@ -4063,8 +4205,8 @@ declare const agentMessageSchema: Schema<{
|
|
|
4063
4205
|
name: string;
|
|
4064
4206
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
4065
4207
|
kind: "source_result";
|
|
4066
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4067
4208
|
reason: string;
|
|
4209
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4068
4210
|
url?: string | undefined;
|
|
4069
4211
|
score?: number | undefined;
|
|
4070
4212
|
} | {
|
|
@@ -4110,8 +4252,8 @@ declare const agentMessageSchema: Schema<{
|
|
|
4110
4252
|
name: string;
|
|
4111
4253
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
4112
4254
|
kind: "source_result";
|
|
4113
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4114
4255
|
reason: string;
|
|
4256
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4115
4257
|
url?: string | undefined;
|
|
4116
4258
|
score?: number | undefined;
|
|
4117
4259
|
} | {
|
|
@@ -4157,8 +4299,8 @@ declare const agentMessageSchema: Schema<{
|
|
|
4157
4299
|
name: string;
|
|
4158
4300
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
4159
4301
|
kind: "source_result";
|
|
4160
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4161
4302
|
reason: string;
|
|
4303
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
4162
4304
|
url?: string | undefined;
|
|
4163
4305
|
score?: number | undefined;
|
|
4164
4306
|
} | {
|
|
@@ -6446,6 +6588,16 @@ declare const SCHEMAS: {
|
|
|
6446
6588
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
6447
6589
|
userId?: string | undefined;
|
|
6448
6590
|
};
|
|
6591
|
+
discovery?: {
|
|
6592
|
+
taskId: mongoose.Types.ObjectId;
|
|
6593
|
+
name: string;
|
|
6594
|
+
reason: string;
|
|
6595
|
+
relevanceScore: number;
|
|
6596
|
+
discoveredAt: Date;
|
|
6597
|
+
description?: string | undefined;
|
|
6598
|
+
captureId?: string | undefined;
|
|
6599
|
+
capturedUrl?: string | undefined;
|
|
6600
|
+
} | undefined;
|
|
6449
6601
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
6450
6602
|
deletedAt?: Date | undefined;
|
|
6451
6603
|
handle?: string | undefined;
|
|
@@ -6477,6 +6629,16 @@ declare const SCHEMAS: {
|
|
|
6477
6629
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
6478
6630
|
userId?: string | undefined;
|
|
6479
6631
|
};
|
|
6632
|
+
discovery?: {
|
|
6633
|
+
taskId: mongoose.Types.ObjectId;
|
|
6634
|
+
name: string;
|
|
6635
|
+
reason: string;
|
|
6636
|
+
relevanceScore: number;
|
|
6637
|
+
discoveredAt: Date;
|
|
6638
|
+
description?: string | undefined;
|
|
6639
|
+
captureId?: string | undefined;
|
|
6640
|
+
capturedUrl?: string | undefined;
|
|
6641
|
+
} | undefined;
|
|
6480
6642
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
6481
6643
|
deletedAt?: Date | undefined;
|
|
6482
6644
|
handle?: string | undefined;
|
|
@@ -6508,6 +6670,16 @@ declare const SCHEMAS: {
|
|
|
6508
6670
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
6509
6671
|
userId?: string | undefined;
|
|
6510
6672
|
};
|
|
6673
|
+
discovery?: {
|
|
6674
|
+
taskId: mongoose.Types.ObjectId;
|
|
6675
|
+
name: string;
|
|
6676
|
+
reason: string;
|
|
6677
|
+
relevanceScore: number;
|
|
6678
|
+
discoveredAt: Date;
|
|
6679
|
+
description?: string | undefined;
|
|
6680
|
+
captureId?: string | undefined;
|
|
6681
|
+
capturedUrl?: string | undefined;
|
|
6682
|
+
} | undefined;
|
|
6511
6683
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
6512
6684
|
deletedAt?: Date | undefined;
|
|
6513
6685
|
handle?: string | undefined;
|
|
@@ -6539,6 +6711,16 @@ declare const SCHEMAS: {
|
|
|
6539
6711
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
6540
6712
|
userId?: string | undefined;
|
|
6541
6713
|
};
|
|
6714
|
+
discovery?: {
|
|
6715
|
+
taskId: mongoose.Types.ObjectId;
|
|
6716
|
+
name: string;
|
|
6717
|
+
reason: string;
|
|
6718
|
+
relevanceScore: number;
|
|
6719
|
+
discoveredAt: Date;
|
|
6720
|
+
description?: string | undefined;
|
|
6721
|
+
captureId?: string | undefined;
|
|
6722
|
+
capturedUrl?: string | undefined;
|
|
6723
|
+
} | undefined;
|
|
6542
6724
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
6543
6725
|
deletedAt?: Date | undefined;
|
|
6544
6726
|
handle?: string | undefined;
|
|
@@ -6574,6 +6756,16 @@ declare const SCHEMAS: {
|
|
|
6574
6756
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
6575
6757
|
userId?: string | undefined;
|
|
6576
6758
|
};
|
|
6759
|
+
discovery?: {
|
|
6760
|
+
taskId: mongoose.Types.ObjectId;
|
|
6761
|
+
name: string;
|
|
6762
|
+
reason: string;
|
|
6763
|
+
relevanceScore: number;
|
|
6764
|
+
discoveredAt: Date;
|
|
6765
|
+
description?: string | undefined;
|
|
6766
|
+
captureId?: string | undefined;
|
|
6767
|
+
capturedUrl?: string | undefined;
|
|
6768
|
+
} | undefined;
|
|
6577
6769
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
6578
6770
|
deletedAt?: Date | undefined;
|
|
6579
6771
|
handle?: string | undefined;
|
|
@@ -6605,6 +6797,16 @@ declare const SCHEMAS: {
|
|
|
6605
6797
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
6606
6798
|
userId?: string | undefined;
|
|
6607
6799
|
};
|
|
6800
|
+
discovery?: {
|
|
6801
|
+
taskId: mongoose.Types.ObjectId;
|
|
6802
|
+
name: string;
|
|
6803
|
+
reason: string;
|
|
6804
|
+
relevanceScore: number;
|
|
6805
|
+
discoveredAt: Date;
|
|
6806
|
+
description?: string | undefined;
|
|
6807
|
+
captureId?: string | undefined;
|
|
6808
|
+
capturedUrl?: string | undefined;
|
|
6809
|
+
} | undefined;
|
|
6608
6810
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
6609
6811
|
deletedAt?: Date | undefined;
|
|
6610
6812
|
handle?: string | undefined;
|
|
@@ -6636,6 +6838,16 @@ declare const SCHEMAS: {
|
|
|
6636
6838
|
importId?: mongoose.Types.ObjectId | undefined;
|
|
6637
6839
|
userId?: string | undefined;
|
|
6638
6840
|
};
|
|
6841
|
+
discovery?: {
|
|
6842
|
+
taskId: mongoose.Types.ObjectId;
|
|
6843
|
+
name: string;
|
|
6844
|
+
reason: string;
|
|
6845
|
+
relevanceScore: number;
|
|
6846
|
+
discoveredAt: Date;
|
|
6847
|
+
description?: string | undefined;
|
|
6848
|
+
captureId?: string | undefined;
|
|
6849
|
+
capturedUrl?: string | undefined;
|
|
6850
|
+
} | undefined;
|
|
6639
6851
|
scraperId?: mongoose.Types.ObjectId | undefined;
|
|
6640
6852
|
deletedAt?: Date | undefined;
|
|
6641
6853
|
handle?: string | undefined;
|
|
@@ -7773,8 +7985,8 @@ declare const SCHEMAS: {
|
|
|
7773
7985
|
name: string;
|
|
7774
7986
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
7775
7987
|
kind: "source_result";
|
|
7776
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7777
7988
|
reason: string;
|
|
7989
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7778
7990
|
url?: string | undefined;
|
|
7779
7991
|
score?: number | undefined;
|
|
7780
7992
|
} | {
|
|
@@ -7820,8 +8032,8 @@ declare const SCHEMAS: {
|
|
|
7820
8032
|
name: string;
|
|
7821
8033
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
7822
8034
|
kind: "source_result";
|
|
7823
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7824
8035
|
reason: string;
|
|
8036
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7825
8037
|
url?: string | undefined;
|
|
7826
8038
|
score?: number | undefined;
|
|
7827
8039
|
} | {
|
|
@@ -7867,8 +8079,8 @@ declare const SCHEMAS: {
|
|
|
7867
8079
|
name: string;
|
|
7868
8080
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
7869
8081
|
kind: "source_result";
|
|
7870
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7871
8082
|
reason: string;
|
|
8083
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7872
8084
|
url?: string | undefined;
|
|
7873
8085
|
score?: number | undefined;
|
|
7874
8086
|
} | {
|
|
@@ -7914,8 +8126,8 @@ declare const SCHEMAS: {
|
|
|
7914
8126
|
name: string;
|
|
7915
8127
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
7916
8128
|
kind: "source_result";
|
|
7917
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7918
8129
|
reason: string;
|
|
8130
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7919
8131
|
url?: string | undefined;
|
|
7920
8132
|
score?: number | undefined;
|
|
7921
8133
|
} | {
|
|
@@ -7965,8 +8177,8 @@ declare const SCHEMAS: {
|
|
|
7965
8177
|
name: string;
|
|
7966
8178
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
7967
8179
|
kind: "source_result";
|
|
7968
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7969
8180
|
reason: string;
|
|
8181
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
7970
8182
|
url?: string | undefined;
|
|
7971
8183
|
score?: number | undefined;
|
|
7972
8184
|
} | {
|
|
@@ -8012,8 +8224,8 @@ declare const SCHEMAS: {
|
|
|
8012
8224
|
name: string;
|
|
8013
8225
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
8014
8226
|
kind: "source_result";
|
|
8015
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
8016
8227
|
reason: string;
|
|
8228
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
8017
8229
|
url?: string | undefined;
|
|
8018
8230
|
score?: number | undefined;
|
|
8019
8231
|
} | {
|
|
@@ -8059,8 +8271,8 @@ declare const SCHEMAS: {
|
|
|
8059
8271
|
name: string;
|
|
8060
8272
|
platform: "telegram" | "facebook" | "x" | "tiktok" | "instagram" | "youtube" | "whatsapp" | "reddit" | "discord" | "linkedin" | "threads" | "vk" | "snapchat" | "web";
|
|
8061
8273
|
kind: "source_result";
|
|
8062
|
-
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
8063
8274
|
reason: string;
|
|
8275
|
+
outcome: "waiting_for_scraper" | "access_problem" | "to_scraper" | "to_monitor" | "known" | "dropped";
|
|
8064
8276
|
url?: string | undefined;
|
|
8065
8277
|
score?: number | undefined;
|
|
8066
8278
|
} | {
|
|
@@ -8668,4 +8880,4 @@ type HarvesterModels = {
|
|
|
8668
8880
|
*/
|
|
8669
8881
|
declare function registerModels(conn: Connection): HarvesterModels;
|
|
8670
8882
|
|
|
8671
|
-
export { type AgentMessageDoc, type AgentMessageModel, type AgentSessionDoc, type AgentSessionModel, type AnalystProfileDoc, type AnalystProfileModel, type AssigneeLoadDoc, type AssigneeLoadModel, type AssignmentDoc, type AssignmentModel, type AuditLogDoc, type AuditLogModel, type CaptureDoc, type CaptureModel, CollectionName, type DataItemDoc, type DataItemModel, type DatabaseDoc, type DatabaseModel, type DeploymentDoc, type DeploymentModel, type HarvesterModels, type HoursLogDoc, type HoursLogModel, INDEXES, type IndexSpec, type LlmCallDoc, type LlmCallModel, MODEL_NAMES, type MissionDoc, type MissionModel, type ModelName, NOT_SOFT_DELETED_FILTER, type ObjectIdArrayKey, type ObjectIdKey, type OrgSettingsDoc, type OrgSettingsModel, SCHEMAS, type ScoutProfileDoc, type ScoutProfileModel, type ScoutRatingDoc, type ScoutRatingModel, type ScraperDoc, type ScraperMetricDoc, type ScraperMetricModel, type ScraperModel, type SourceDoc, type SourceImportDoc, type SourceImportModel, type SourceModel, TASK_VERSION_HOOK_OPS, type TaskDoc, type TaskModel, type ToDoc, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, captureWindowSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, taskTargetSchema, toJSONOptions };
|
|
8883
|
+
export { type AgentMessageDoc, type AgentMessageModel, type AgentSessionDoc, type AgentSessionModel, type AnalystProfileDoc, type AnalystProfileModel, type AssigneeLoadDoc, type AssigneeLoadModel, type AssignmentDoc, type AssignmentModel, type AuditLogDoc, type AuditLogModel, type CaptureDoc, type CaptureModel, CollectionName, type DataItemDoc, type DataItemModel, type DatabaseDoc, type DatabaseModel, type DeploymentDoc, type DeploymentModel, type HarvesterModels, type HoursLogDoc, type HoursLogModel, INDEXES, type IndexSpec, type LlmCallDoc, type LlmCallModel, MODEL_NAMES, type MissionDoc, type MissionModel, type ModelName, NOT_SOFT_DELETED_FILTER, type ObjectIdArrayKey, type ObjectIdKey, type OrgSettingsDoc, type OrgSettingsModel, SCHEMAS, type ScoutProfileDoc, type ScoutProfileModel, type ScoutRatingDoc, type ScoutRatingModel, type ScraperDoc, type ScraperMetricDoc, type ScraperMetricModel, type ScraperModel, type SourceDoc, type SourceImportDoc, type SourceImportModel, type SourceModel, TASK_VERSION_HOOK_OPS, type TaskDoc, type TaskModel, type ToDoc, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, captureWindowSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceDiscoverySchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, taskTargetSchema, toJSONOptions };
|
package/dist/mongo/index.js
CHANGED
|
@@ -881,6 +881,20 @@ var discoveredBySchema = new Schema(
|
|
|
881
881
|
},
|
|
882
882
|
EMBEDDED
|
|
883
883
|
);
|
|
884
|
+
var sourceDiscoverySchema = new Schema(
|
|
885
|
+
{
|
|
886
|
+
taskId: { type: ObjectId, required: true },
|
|
887
|
+
captureId: { type: ObjectId },
|
|
888
|
+
capturedUrl: { type: String },
|
|
889
|
+
name: { type: String, required: true, maxlength: 200 },
|
|
890
|
+
description: { type: String, maxlength: 1e3 },
|
|
891
|
+
// Not `required`: Mongoose rejects '' for required strings, and the judge may return an empty reason.
|
|
892
|
+
reason: { type: String, maxlength: 300, default: "" },
|
|
893
|
+
relevanceScore: { type: Number, required: true, min: 0, max: 1 },
|
|
894
|
+
discoveredAt: { type: Date, required: true }
|
|
895
|
+
},
|
|
896
|
+
EMBEDDED
|
|
897
|
+
);
|
|
884
898
|
var sourceImportSummarySchema = new Schema(
|
|
885
899
|
{
|
|
886
900
|
toCreate: { type: Number, required: true, default: 0, min: 0 },
|
|
@@ -1131,6 +1145,7 @@ var sourceSchema = new Schema(
|
|
|
1131
1145
|
tags: { type: [String], required: true, default: [] },
|
|
1132
1146
|
status: { type: String, enum: SOURCE_STATUS_VALUES, required: true, default: "active" },
|
|
1133
1147
|
discoveredBy: { type: discoveredBySchema, required: true },
|
|
1148
|
+
discovery: { type: sourceDiscoverySchema },
|
|
1134
1149
|
lastCollectedAt: { type: Date },
|
|
1135
1150
|
nextVisitAt: { type: Date },
|
|
1136
1151
|
visitIntervalMs: { type: Number, min: 1 },
|
|
@@ -1460,6 +1475,6 @@ function registerModels(conn) {
|
|
|
1460
1475
|
};
|
|
1461
1476
|
}
|
|
1462
1477
|
|
|
1463
|
-
export { COLLECTIONS, INDEXES, MODEL_NAMES, NOT_SOFT_DELETED_FILTER, SCHEMAS, TASK_VERSION_HOOK_OPS, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, captureWindowSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, taskTargetSchema, toJSONOptions };
|
|
1478
|
+
export { COLLECTIONS, INDEXES, MODEL_NAMES, NOT_SOFT_DELETED_FILTER, SCHEMAS, TASK_VERSION_HOOK_OPS, agentMessageSchema, agentSessionBudgetSchema, agentSessionSchema, agentSessionStatsSchema, analystProfileSchema, applyIndexes, assigneeLoadSchema, assignmentSchema, auditLogSchema, auditTargetSchema, availabilityWindowSchema, blobRefSchema, captureDomSummarySchema, captureRegionSchema, captureSchema, captureWindowSchema, collectorSchema, coverageWindowSchema, dataItemContentSchema, dataItemEntitySchema, dataItemSchema, databaseSchema, deploymentSchema, deploymentStepSchema, discoveredBySchema, geoSchema, hoursLogSchema, incrementTaskVersion, llmCallSchema, llmUsageSchema, missionSchema, objectIdsToStrings, orgSettingsSchema, platformAccessSchema, ratingSummarySchema, registerModels, scoutProfileSchema, scoutRatingSchema, scraperMetricSchema, scraperSchema, sourceDiscoverySchema, sourceImportRowErrorSchema, sourceImportSchema, sourceImportSummarySchema, sourceRatingSchema, sourceSchema, specialAccessSchema, systemRecommendationSchema, taskCriteriaSchema, taskSchema, taskTargetSchema, toJSONOptions };
|
|
1464
1479
|
//# sourceMappingURL=index.js.map
|
|
1465
1480
|
//# sourceMappingURL=index.js.map
|