@okf/ootils 1.26.2 → 1.26.4
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/browser.d.mts +54 -7
- package/dist/browser.d.ts +54 -7
- package/dist/browser.js +28 -0
- package/dist/browser.mjs +28 -0
- package/dist/node.d.mts +78 -8
- package/dist/node.d.ts +78 -8
- package/dist/node.js +99 -4
- package/dist/node.mjs +96 -2
- package/dist/universal.d.mts +54 -7
- package/dist/universal.d.ts +54 -7
- package/dist/universal.js +28 -0
- package/dist/universal.mjs +28 -0
- package/package.json +1 -1
package/dist/browser.d.mts
CHANGED
|
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
502
502
|
}
|
|
503
503
|
export { workerConfig_5 as workerConfig };
|
|
504
504
|
}
|
|
505
|
-
namespace
|
|
505
|
+
namespace SENTIMENT_AND_NER_QUEUE {
|
|
506
506
|
let id_6: string;
|
|
507
507
|
export { id_6 as id };
|
|
508
508
|
export namespace queueConfig_6 {
|
|
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
539
539
|
export { lockDuration_6 as lockDuration };
|
|
540
540
|
let maxStalledCount_6: number;
|
|
541
541
|
export { maxStalledCount_6 as maxStalledCount };
|
|
542
|
+
export namespace limiter_3 {
|
|
543
|
+
let max_3: number;
|
|
544
|
+
export { max_3 as max };
|
|
545
|
+
let duration_3: number;
|
|
546
|
+
export { duration_3 as duration };
|
|
547
|
+
}
|
|
548
|
+
export { limiter_3 as limiter };
|
|
542
549
|
}
|
|
543
550
|
export { workerConfig_6 as workerConfig };
|
|
544
551
|
}
|
|
545
|
-
namespace
|
|
552
|
+
namespace AI_AUTO_ANNOTATE_QUEUE {
|
|
546
553
|
let id_7: string;
|
|
547
554
|
export { id_7 as id };
|
|
548
555
|
export namespace queueConfig_7 {
|
|
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
582
589
|
}
|
|
583
590
|
export { workerConfig_7 as workerConfig };
|
|
584
591
|
}
|
|
585
|
-
namespace
|
|
592
|
+
namespace ANNOS_ELASTIC_SYNC_QUEUE {
|
|
586
593
|
let id_8: string;
|
|
587
594
|
export { id_8 as id };
|
|
588
595
|
export namespace queueConfig_8 {
|
|
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
622
629
|
}
|
|
623
630
|
export { workerConfig_8 as workerConfig };
|
|
624
631
|
}
|
|
625
|
-
namespace
|
|
632
|
+
namespace CHUNKS_ELASTIC_SYNC_QUEUE {
|
|
626
633
|
let id_9: string;
|
|
627
634
|
export { id_9 as id };
|
|
628
635
|
export namespace queueConfig_9 {
|
|
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
662
669
|
}
|
|
663
670
|
export { workerConfig_9 as workerConfig };
|
|
664
671
|
}
|
|
665
|
-
namespace
|
|
672
|
+
namespace CONTENT_ELASTIC_SYNC_QUEUE {
|
|
666
673
|
let id_10: string;
|
|
667
674
|
export { id_10 as id };
|
|
668
675
|
export namespace queueConfig_10 {
|
|
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
676
683
|
export { delay_10 as delay };
|
|
677
684
|
}
|
|
678
685
|
export { backoff_10 as backoff };
|
|
679
|
-
let delay_11: number;
|
|
680
|
-
export { delay_11 as delay };
|
|
681
686
|
let removeOnComplete_10: number;
|
|
682
687
|
export { removeOnComplete_10 as removeOnComplete };
|
|
683
688
|
let removeOnFail_10: number;
|
|
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
704
709
|
}
|
|
705
710
|
export { workerConfig_10 as workerConfig };
|
|
706
711
|
}
|
|
712
|
+
namespace REINDEX_QUEUE {
|
|
713
|
+
let id_11: string;
|
|
714
|
+
export { id_11 as id };
|
|
715
|
+
export namespace queueConfig_11 {
|
|
716
|
+
export namespace defaultJobOptions_11 {
|
|
717
|
+
let attempts_11: number;
|
|
718
|
+
export { attempts_11 as attempts };
|
|
719
|
+
export namespace backoff_11 {
|
|
720
|
+
let type_11: string;
|
|
721
|
+
export { type_11 as type };
|
|
722
|
+
let delay_11: number;
|
|
723
|
+
export { delay_11 as delay };
|
|
724
|
+
}
|
|
725
|
+
export { backoff_11 as backoff };
|
|
726
|
+
let delay_12: number;
|
|
727
|
+
export { delay_12 as delay };
|
|
728
|
+
let removeOnComplete_11: number;
|
|
729
|
+
export { removeOnComplete_11 as removeOnComplete };
|
|
730
|
+
let removeOnFail_11: number;
|
|
731
|
+
export { removeOnFail_11 as removeOnFail };
|
|
732
|
+
}
|
|
733
|
+
export { defaultJobOptions_11 as defaultJobOptions };
|
|
734
|
+
export namespace streams_11 {
|
|
735
|
+
export namespace events_11 {
|
|
736
|
+
let maxLen_11: number;
|
|
737
|
+
export { maxLen_11 as maxLen };
|
|
738
|
+
}
|
|
739
|
+
export { events_11 as events };
|
|
740
|
+
}
|
|
741
|
+
export { streams_11 as streams };
|
|
742
|
+
}
|
|
743
|
+
export { queueConfig_11 as queueConfig };
|
|
744
|
+
export namespace workerConfig_11 {
|
|
745
|
+
let concurrency_11: number;
|
|
746
|
+
export { concurrency_11 as concurrency };
|
|
747
|
+
let lockDuration_11: number;
|
|
748
|
+
export { lockDuration_11 as lockDuration };
|
|
749
|
+
let maxStalledCount_11: number;
|
|
750
|
+
export { maxStalledCount_11 as maxStalledCount };
|
|
751
|
+
}
|
|
752
|
+
export { workerConfig_11 as workerConfig };
|
|
753
|
+
}
|
|
707
754
|
}
|
|
708
755
|
|
|
709
756
|
interface PlatformContextContentItem {
|
package/dist/browser.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
502
502
|
}
|
|
503
503
|
export { workerConfig_5 as workerConfig };
|
|
504
504
|
}
|
|
505
|
-
namespace
|
|
505
|
+
namespace SENTIMENT_AND_NER_QUEUE {
|
|
506
506
|
let id_6: string;
|
|
507
507
|
export { id_6 as id };
|
|
508
508
|
export namespace queueConfig_6 {
|
|
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
539
539
|
export { lockDuration_6 as lockDuration };
|
|
540
540
|
let maxStalledCount_6: number;
|
|
541
541
|
export { maxStalledCount_6 as maxStalledCount };
|
|
542
|
+
export namespace limiter_3 {
|
|
543
|
+
let max_3: number;
|
|
544
|
+
export { max_3 as max };
|
|
545
|
+
let duration_3: number;
|
|
546
|
+
export { duration_3 as duration };
|
|
547
|
+
}
|
|
548
|
+
export { limiter_3 as limiter };
|
|
542
549
|
}
|
|
543
550
|
export { workerConfig_6 as workerConfig };
|
|
544
551
|
}
|
|
545
|
-
namespace
|
|
552
|
+
namespace AI_AUTO_ANNOTATE_QUEUE {
|
|
546
553
|
let id_7: string;
|
|
547
554
|
export { id_7 as id };
|
|
548
555
|
export namespace queueConfig_7 {
|
|
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
582
589
|
}
|
|
583
590
|
export { workerConfig_7 as workerConfig };
|
|
584
591
|
}
|
|
585
|
-
namespace
|
|
592
|
+
namespace ANNOS_ELASTIC_SYNC_QUEUE {
|
|
586
593
|
let id_8: string;
|
|
587
594
|
export { id_8 as id };
|
|
588
595
|
export namespace queueConfig_8 {
|
|
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
622
629
|
}
|
|
623
630
|
export { workerConfig_8 as workerConfig };
|
|
624
631
|
}
|
|
625
|
-
namespace
|
|
632
|
+
namespace CHUNKS_ELASTIC_SYNC_QUEUE {
|
|
626
633
|
let id_9: string;
|
|
627
634
|
export { id_9 as id };
|
|
628
635
|
export namespace queueConfig_9 {
|
|
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
662
669
|
}
|
|
663
670
|
export { workerConfig_9 as workerConfig };
|
|
664
671
|
}
|
|
665
|
-
namespace
|
|
672
|
+
namespace CONTENT_ELASTIC_SYNC_QUEUE {
|
|
666
673
|
let id_10: string;
|
|
667
674
|
export { id_10 as id };
|
|
668
675
|
export namespace queueConfig_10 {
|
|
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
676
683
|
export { delay_10 as delay };
|
|
677
684
|
}
|
|
678
685
|
export { backoff_10 as backoff };
|
|
679
|
-
let delay_11: number;
|
|
680
|
-
export { delay_11 as delay };
|
|
681
686
|
let removeOnComplete_10: number;
|
|
682
687
|
export { removeOnComplete_10 as removeOnComplete };
|
|
683
688
|
let removeOnFail_10: number;
|
|
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
704
709
|
}
|
|
705
710
|
export { workerConfig_10 as workerConfig };
|
|
706
711
|
}
|
|
712
|
+
namespace REINDEX_QUEUE {
|
|
713
|
+
let id_11: string;
|
|
714
|
+
export { id_11 as id };
|
|
715
|
+
export namespace queueConfig_11 {
|
|
716
|
+
export namespace defaultJobOptions_11 {
|
|
717
|
+
let attempts_11: number;
|
|
718
|
+
export { attempts_11 as attempts };
|
|
719
|
+
export namespace backoff_11 {
|
|
720
|
+
let type_11: string;
|
|
721
|
+
export { type_11 as type };
|
|
722
|
+
let delay_11: number;
|
|
723
|
+
export { delay_11 as delay };
|
|
724
|
+
}
|
|
725
|
+
export { backoff_11 as backoff };
|
|
726
|
+
let delay_12: number;
|
|
727
|
+
export { delay_12 as delay };
|
|
728
|
+
let removeOnComplete_11: number;
|
|
729
|
+
export { removeOnComplete_11 as removeOnComplete };
|
|
730
|
+
let removeOnFail_11: number;
|
|
731
|
+
export { removeOnFail_11 as removeOnFail };
|
|
732
|
+
}
|
|
733
|
+
export { defaultJobOptions_11 as defaultJobOptions };
|
|
734
|
+
export namespace streams_11 {
|
|
735
|
+
export namespace events_11 {
|
|
736
|
+
let maxLen_11: number;
|
|
737
|
+
export { maxLen_11 as maxLen };
|
|
738
|
+
}
|
|
739
|
+
export { events_11 as events };
|
|
740
|
+
}
|
|
741
|
+
export { streams_11 as streams };
|
|
742
|
+
}
|
|
743
|
+
export { queueConfig_11 as queueConfig };
|
|
744
|
+
export namespace workerConfig_11 {
|
|
745
|
+
let concurrency_11: number;
|
|
746
|
+
export { concurrency_11 as concurrency };
|
|
747
|
+
let lockDuration_11: number;
|
|
748
|
+
export { lockDuration_11 as lockDuration };
|
|
749
|
+
let maxStalledCount_11: number;
|
|
750
|
+
export { maxStalledCount_11 as maxStalledCount };
|
|
751
|
+
}
|
|
752
|
+
export { workerConfig_11 as workerConfig };
|
|
753
|
+
}
|
|
707
754
|
}
|
|
708
755
|
|
|
709
756
|
interface PlatformContextContentItem {
|
package/dist/browser.js
CHANGED
|
@@ -632,6 +632,34 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
},
|
|
635
|
+
SENTIMENT_AND_NER_QUEUE: {
|
|
636
|
+
id: "sentiment-and-ner-queue",
|
|
637
|
+
queueConfig: {
|
|
638
|
+
defaultJobOptions: {
|
|
639
|
+
attempts: 3,
|
|
640
|
+
backoff: {
|
|
641
|
+
type: "exponential",
|
|
642
|
+
delay: 2e3
|
|
643
|
+
},
|
|
644
|
+
removeOnComplete: 30,
|
|
645
|
+
removeOnFail: 100
|
|
646
|
+
},
|
|
647
|
+
streams: {
|
|
648
|
+
events: {
|
|
649
|
+
maxLen: 10
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
workerConfig: {
|
|
654
|
+
concurrency: 1,
|
|
655
|
+
lockDuration: 9e4,
|
|
656
|
+
maxStalledCount: 3,
|
|
657
|
+
limiter: {
|
|
658
|
+
max: 100,
|
|
659
|
+
duration: 6e4
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
},
|
|
635
663
|
AI_AUTO_ANNOTATE_QUEUE: {
|
|
636
664
|
id: "ai-auto-annotate-queue",
|
|
637
665
|
queueConfig: {
|
package/dist/browser.mjs
CHANGED
|
@@ -578,6 +578,34 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
},
|
|
581
|
+
SENTIMENT_AND_NER_QUEUE: {
|
|
582
|
+
id: "sentiment-and-ner-queue",
|
|
583
|
+
queueConfig: {
|
|
584
|
+
defaultJobOptions: {
|
|
585
|
+
attempts: 3,
|
|
586
|
+
backoff: {
|
|
587
|
+
type: "exponential",
|
|
588
|
+
delay: 2e3
|
|
589
|
+
},
|
|
590
|
+
removeOnComplete: 30,
|
|
591
|
+
removeOnFail: 100
|
|
592
|
+
},
|
|
593
|
+
streams: {
|
|
594
|
+
events: {
|
|
595
|
+
maxLen: 10
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
workerConfig: {
|
|
600
|
+
concurrency: 1,
|
|
601
|
+
lockDuration: 9e4,
|
|
602
|
+
maxStalledCount: 3,
|
|
603
|
+
limiter: {
|
|
604
|
+
max: 100,
|
|
605
|
+
duration: 6e4
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
581
609
|
AI_AUTO_ANNOTATE_QUEUE: {
|
|
582
610
|
id: "ai-auto-annotate-queue",
|
|
583
611
|
queueConfig: {
|
package/dist/node.d.mts
CHANGED
|
@@ -509,7 +509,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
509
509
|
}
|
|
510
510
|
export { workerConfig_5 as workerConfig };
|
|
511
511
|
}
|
|
512
|
-
namespace
|
|
512
|
+
namespace SENTIMENT_AND_NER_QUEUE {
|
|
513
513
|
let id_6: string;
|
|
514
514
|
export { id_6 as id };
|
|
515
515
|
export namespace queueConfig_6 {
|
|
@@ -546,10 +546,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
546
546
|
export { lockDuration_6 as lockDuration };
|
|
547
547
|
let maxStalledCount_6: number;
|
|
548
548
|
export { maxStalledCount_6 as maxStalledCount };
|
|
549
|
+
export namespace limiter_3 {
|
|
550
|
+
let max_3: number;
|
|
551
|
+
export { max_3 as max };
|
|
552
|
+
let duration_3: number;
|
|
553
|
+
export { duration_3 as duration };
|
|
554
|
+
}
|
|
555
|
+
export { limiter_3 as limiter };
|
|
549
556
|
}
|
|
550
557
|
export { workerConfig_6 as workerConfig };
|
|
551
558
|
}
|
|
552
|
-
namespace
|
|
559
|
+
namespace AI_AUTO_ANNOTATE_QUEUE {
|
|
553
560
|
let id_7: string;
|
|
554
561
|
export { id_7 as id };
|
|
555
562
|
export namespace queueConfig_7 {
|
|
@@ -589,7 +596,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
589
596
|
}
|
|
590
597
|
export { workerConfig_7 as workerConfig };
|
|
591
598
|
}
|
|
592
|
-
namespace
|
|
599
|
+
namespace ANNOS_ELASTIC_SYNC_QUEUE {
|
|
593
600
|
let id_8: string;
|
|
594
601
|
export { id_8 as id };
|
|
595
602
|
export namespace queueConfig_8 {
|
|
@@ -629,7 +636,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
629
636
|
}
|
|
630
637
|
export { workerConfig_8 as workerConfig };
|
|
631
638
|
}
|
|
632
|
-
namespace
|
|
639
|
+
namespace CHUNKS_ELASTIC_SYNC_QUEUE {
|
|
633
640
|
let id_9: string;
|
|
634
641
|
export { id_9 as id };
|
|
635
642
|
export namespace queueConfig_9 {
|
|
@@ -669,7 +676,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
669
676
|
}
|
|
670
677
|
export { workerConfig_9 as workerConfig };
|
|
671
678
|
}
|
|
672
|
-
namespace
|
|
679
|
+
namespace CONTENT_ELASTIC_SYNC_QUEUE {
|
|
673
680
|
let id_10: string;
|
|
674
681
|
export { id_10 as id };
|
|
675
682
|
export namespace queueConfig_10 {
|
|
@@ -683,8 +690,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
683
690
|
export { delay_10 as delay };
|
|
684
691
|
}
|
|
685
692
|
export { backoff_10 as backoff };
|
|
686
|
-
let delay_11: number;
|
|
687
|
-
export { delay_11 as delay };
|
|
688
693
|
let removeOnComplete_10: number;
|
|
689
694
|
export { removeOnComplete_10 as removeOnComplete };
|
|
690
695
|
let removeOnFail_10: number;
|
|
@@ -711,6 +716,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
711
716
|
}
|
|
712
717
|
export { workerConfig_10 as workerConfig };
|
|
713
718
|
}
|
|
719
|
+
namespace REINDEX_QUEUE {
|
|
720
|
+
let id_11: string;
|
|
721
|
+
export { id_11 as id };
|
|
722
|
+
export namespace queueConfig_11 {
|
|
723
|
+
export namespace defaultJobOptions_11 {
|
|
724
|
+
let attempts_11: number;
|
|
725
|
+
export { attempts_11 as attempts };
|
|
726
|
+
export namespace backoff_11 {
|
|
727
|
+
let type_11: string;
|
|
728
|
+
export { type_11 as type };
|
|
729
|
+
let delay_11: number;
|
|
730
|
+
export { delay_11 as delay };
|
|
731
|
+
}
|
|
732
|
+
export { backoff_11 as backoff };
|
|
733
|
+
let delay_12: number;
|
|
734
|
+
export { delay_12 as delay };
|
|
735
|
+
let removeOnComplete_11: number;
|
|
736
|
+
export { removeOnComplete_11 as removeOnComplete };
|
|
737
|
+
let removeOnFail_11: number;
|
|
738
|
+
export { removeOnFail_11 as removeOnFail };
|
|
739
|
+
}
|
|
740
|
+
export { defaultJobOptions_11 as defaultJobOptions };
|
|
741
|
+
export namespace streams_11 {
|
|
742
|
+
export namespace events_11 {
|
|
743
|
+
let maxLen_11: number;
|
|
744
|
+
export { maxLen_11 as maxLen };
|
|
745
|
+
}
|
|
746
|
+
export { events_11 as events };
|
|
747
|
+
}
|
|
748
|
+
export { streams_11 as streams };
|
|
749
|
+
}
|
|
750
|
+
export { queueConfig_11 as queueConfig };
|
|
751
|
+
export namespace workerConfig_11 {
|
|
752
|
+
let concurrency_11: number;
|
|
753
|
+
export { concurrency_11 as concurrency };
|
|
754
|
+
let lockDuration_11: number;
|
|
755
|
+
export { lockDuration_11 as lockDuration };
|
|
756
|
+
let maxStalledCount_11: number;
|
|
757
|
+
export { maxStalledCount_11 as maxStalledCount };
|
|
758
|
+
}
|
|
759
|
+
export { workerConfig_11 as workerConfig };
|
|
760
|
+
}
|
|
714
761
|
}
|
|
715
762
|
|
|
716
763
|
interface PlatformContextContentItem {
|
|
@@ -1463,6 +1510,10 @@ declare function getGeneratedTopicsModelByTenant({ tenant, env }: {
|
|
|
1463
1510
|
tenant: any;
|
|
1464
1511
|
env: any;
|
|
1465
1512
|
}): any;
|
|
1513
|
+
declare function getGeneratedEntitiesModelByTenant({ tenant, env }: {
|
|
1514
|
+
tenant: any;
|
|
1515
|
+
env: any;
|
|
1516
|
+
}): any;
|
|
1466
1517
|
|
|
1467
1518
|
interface ITagData {
|
|
1468
1519
|
_id?: Types.ObjectId;
|
|
@@ -1555,6 +1606,7 @@ interface IAIChat extends Document {
|
|
|
1555
1606
|
lastActivity: Date;
|
|
1556
1607
|
messages: IMessage[];
|
|
1557
1608
|
ACLScope: "aiChat" | "reports";
|
|
1609
|
+
widgetAskAI_Id?: string;
|
|
1558
1610
|
immutableActiveFilters?: any;
|
|
1559
1611
|
immutableContentTypes?: string[];
|
|
1560
1612
|
}
|
|
@@ -1698,6 +1750,24 @@ declare const GeneratedTopicsSchema: Schema<IGeneratedTopic, mongoose.Model<IGen
|
|
|
1698
1750
|
__v: number;
|
|
1699
1751
|
}>;
|
|
1700
1752
|
|
|
1753
|
+
interface IGeneratedEntity {
|
|
1754
|
+
canonicalName: string;
|
|
1755
|
+
type: string;
|
|
1756
|
+
embeddings: number[];
|
|
1757
|
+
aliases: string[];
|
|
1758
|
+
createdAt: Date;
|
|
1759
|
+
updatedAt: Date;
|
|
1760
|
+
}
|
|
1761
|
+
declare const GeneratedEntitiesSchema: Schema<IGeneratedEntity, mongoose.Model<IGeneratedEntity, any, any, any, mongoose.Document<unknown, any, IGeneratedEntity, any, {}> & IGeneratedEntity & {
|
|
1762
|
+
_id: mongoose.Types.ObjectId;
|
|
1763
|
+
} & {
|
|
1764
|
+
__v: number;
|
|
1765
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IGeneratedEntity, mongoose.Document<unknown, {}, mongoose.FlatRecord<IGeneratedEntity>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<IGeneratedEntity> & {
|
|
1766
|
+
_id: mongoose.Types.ObjectId;
|
|
1767
|
+
} & {
|
|
1768
|
+
__v: number;
|
|
1769
|
+
}>;
|
|
1770
|
+
|
|
1701
1771
|
declare class WorkerManager {
|
|
1702
1772
|
constructor(workers?: any[]);
|
|
1703
1773
|
workers: any[];
|
|
@@ -1851,4 +1921,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
|
|
|
1851
1921
|
};
|
|
1852
1922
|
}): Object;
|
|
1853
1923
|
|
|
1854
|
-
export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
|
|
1924
|
+
export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
|
package/dist/node.d.ts
CHANGED
|
@@ -509,7 +509,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
509
509
|
}
|
|
510
510
|
export { workerConfig_5 as workerConfig };
|
|
511
511
|
}
|
|
512
|
-
namespace
|
|
512
|
+
namespace SENTIMENT_AND_NER_QUEUE {
|
|
513
513
|
let id_6: string;
|
|
514
514
|
export { id_6 as id };
|
|
515
515
|
export namespace queueConfig_6 {
|
|
@@ -546,10 +546,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
546
546
|
export { lockDuration_6 as lockDuration };
|
|
547
547
|
let maxStalledCount_6: number;
|
|
548
548
|
export { maxStalledCount_6 as maxStalledCount };
|
|
549
|
+
export namespace limiter_3 {
|
|
550
|
+
let max_3: number;
|
|
551
|
+
export { max_3 as max };
|
|
552
|
+
let duration_3: number;
|
|
553
|
+
export { duration_3 as duration };
|
|
554
|
+
}
|
|
555
|
+
export { limiter_3 as limiter };
|
|
549
556
|
}
|
|
550
557
|
export { workerConfig_6 as workerConfig };
|
|
551
558
|
}
|
|
552
|
-
namespace
|
|
559
|
+
namespace AI_AUTO_ANNOTATE_QUEUE {
|
|
553
560
|
let id_7: string;
|
|
554
561
|
export { id_7 as id };
|
|
555
562
|
export namespace queueConfig_7 {
|
|
@@ -589,7 +596,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
589
596
|
}
|
|
590
597
|
export { workerConfig_7 as workerConfig };
|
|
591
598
|
}
|
|
592
|
-
namespace
|
|
599
|
+
namespace ANNOS_ELASTIC_SYNC_QUEUE {
|
|
593
600
|
let id_8: string;
|
|
594
601
|
export { id_8 as id };
|
|
595
602
|
export namespace queueConfig_8 {
|
|
@@ -629,7 +636,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
629
636
|
}
|
|
630
637
|
export { workerConfig_8 as workerConfig };
|
|
631
638
|
}
|
|
632
|
-
namespace
|
|
639
|
+
namespace CHUNKS_ELASTIC_SYNC_QUEUE {
|
|
633
640
|
let id_9: string;
|
|
634
641
|
export { id_9 as id };
|
|
635
642
|
export namespace queueConfig_9 {
|
|
@@ -669,7 +676,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
669
676
|
}
|
|
670
677
|
export { workerConfig_9 as workerConfig };
|
|
671
678
|
}
|
|
672
|
-
namespace
|
|
679
|
+
namespace CONTENT_ELASTIC_SYNC_QUEUE {
|
|
673
680
|
let id_10: string;
|
|
674
681
|
export { id_10 as id };
|
|
675
682
|
export namespace queueConfig_10 {
|
|
@@ -683,8 +690,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
683
690
|
export { delay_10 as delay };
|
|
684
691
|
}
|
|
685
692
|
export { backoff_10 as backoff };
|
|
686
|
-
let delay_11: number;
|
|
687
|
-
export { delay_11 as delay };
|
|
688
693
|
let removeOnComplete_10: number;
|
|
689
694
|
export { removeOnComplete_10 as removeOnComplete };
|
|
690
695
|
let removeOnFail_10: number;
|
|
@@ -711,6 +716,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
711
716
|
}
|
|
712
717
|
export { workerConfig_10 as workerConfig };
|
|
713
718
|
}
|
|
719
|
+
namespace REINDEX_QUEUE {
|
|
720
|
+
let id_11: string;
|
|
721
|
+
export { id_11 as id };
|
|
722
|
+
export namespace queueConfig_11 {
|
|
723
|
+
export namespace defaultJobOptions_11 {
|
|
724
|
+
let attempts_11: number;
|
|
725
|
+
export { attempts_11 as attempts };
|
|
726
|
+
export namespace backoff_11 {
|
|
727
|
+
let type_11: string;
|
|
728
|
+
export { type_11 as type };
|
|
729
|
+
let delay_11: number;
|
|
730
|
+
export { delay_11 as delay };
|
|
731
|
+
}
|
|
732
|
+
export { backoff_11 as backoff };
|
|
733
|
+
let delay_12: number;
|
|
734
|
+
export { delay_12 as delay };
|
|
735
|
+
let removeOnComplete_11: number;
|
|
736
|
+
export { removeOnComplete_11 as removeOnComplete };
|
|
737
|
+
let removeOnFail_11: number;
|
|
738
|
+
export { removeOnFail_11 as removeOnFail };
|
|
739
|
+
}
|
|
740
|
+
export { defaultJobOptions_11 as defaultJobOptions };
|
|
741
|
+
export namespace streams_11 {
|
|
742
|
+
export namespace events_11 {
|
|
743
|
+
let maxLen_11: number;
|
|
744
|
+
export { maxLen_11 as maxLen };
|
|
745
|
+
}
|
|
746
|
+
export { events_11 as events };
|
|
747
|
+
}
|
|
748
|
+
export { streams_11 as streams };
|
|
749
|
+
}
|
|
750
|
+
export { queueConfig_11 as queueConfig };
|
|
751
|
+
export namespace workerConfig_11 {
|
|
752
|
+
let concurrency_11: number;
|
|
753
|
+
export { concurrency_11 as concurrency };
|
|
754
|
+
let lockDuration_11: number;
|
|
755
|
+
export { lockDuration_11 as lockDuration };
|
|
756
|
+
let maxStalledCount_11: number;
|
|
757
|
+
export { maxStalledCount_11 as maxStalledCount };
|
|
758
|
+
}
|
|
759
|
+
export { workerConfig_11 as workerConfig };
|
|
760
|
+
}
|
|
714
761
|
}
|
|
715
762
|
|
|
716
763
|
interface PlatformContextContentItem {
|
|
@@ -1463,6 +1510,10 @@ declare function getGeneratedTopicsModelByTenant({ tenant, env }: {
|
|
|
1463
1510
|
tenant: any;
|
|
1464
1511
|
env: any;
|
|
1465
1512
|
}): any;
|
|
1513
|
+
declare function getGeneratedEntitiesModelByTenant({ tenant, env }: {
|
|
1514
|
+
tenant: any;
|
|
1515
|
+
env: any;
|
|
1516
|
+
}): any;
|
|
1466
1517
|
|
|
1467
1518
|
interface ITagData {
|
|
1468
1519
|
_id?: Types.ObjectId;
|
|
@@ -1555,6 +1606,7 @@ interface IAIChat extends Document {
|
|
|
1555
1606
|
lastActivity: Date;
|
|
1556
1607
|
messages: IMessage[];
|
|
1557
1608
|
ACLScope: "aiChat" | "reports";
|
|
1609
|
+
widgetAskAI_Id?: string;
|
|
1558
1610
|
immutableActiveFilters?: any;
|
|
1559
1611
|
immutableContentTypes?: string[];
|
|
1560
1612
|
}
|
|
@@ -1698,6 +1750,24 @@ declare const GeneratedTopicsSchema: Schema<IGeneratedTopic, mongoose.Model<IGen
|
|
|
1698
1750
|
__v: number;
|
|
1699
1751
|
}>;
|
|
1700
1752
|
|
|
1753
|
+
interface IGeneratedEntity {
|
|
1754
|
+
canonicalName: string;
|
|
1755
|
+
type: string;
|
|
1756
|
+
embeddings: number[];
|
|
1757
|
+
aliases: string[];
|
|
1758
|
+
createdAt: Date;
|
|
1759
|
+
updatedAt: Date;
|
|
1760
|
+
}
|
|
1761
|
+
declare const GeneratedEntitiesSchema: Schema<IGeneratedEntity, mongoose.Model<IGeneratedEntity, any, any, any, mongoose.Document<unknown, any, IGeneratedEntity, any, {}> & IGeneratedEntity & {
|
|
1762
|
+
_id: mongoose.Types.ObjectId;
|
|
1763
|
+
} & {
|
|
1764
|
+
__v: number;
|
|
1765
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IGeneratedEntity, mongoose.Document<unknown, {}, mongoose.FlatRecord<IGeneratedEntity>, {}, mongoose.DefaultSchemaOptions> & mongoose.FlatRecord<IGeneratedEntity> & {
|
|
1766
|
+
_id: mongoose.Types.ObjectId;
|
|
1767
|
+
} & {
|
|
1768
|
+
__v: number;
|
|
1769
|
+
}>;
|
|
1770
|
+
|
|
1701
1771
|
declare class WorkerManager {
|
|
1702
1772
|
constructor(workers?: any[]);
|
|
1703
1773
|
workers: any[];
|
|
@@ -1851,4 +1921,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
|
|
|
1851
1921
|
};
|
|
1852
1922
|
}): Object;
|
|
1853
1923
|
|
|
1854
|
-
export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
|
|
1924
|
+
export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
|
package/dist/node.js
CHANGED
|
@@ -218,6 +218,34 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
|
+
SENTIMENT_AND_NER_QUEUE: {
|
|
222
|
+
id: "sentiment-and-ner-queue",
|
|
223
|
+
queueConfig: {
|
|
224
|
+
defaultJobOptions: {
|
|
225
|
+
attempts: 3,
|
|
226
|
+
backoff: {
|
|
227
|
+
type: "exponential",
|
|
228
|
+
delay: 2e3
|
|
229
|
+
},
|
|
230
|
+
removeOnComplete: 30,
|
|
231
|
+
removeOnFail: 100
|
|
232
|
+
},
|
|
233
|
+
streams: {
|
|
234
|
+
events: {
|
|
235
|
+
maxLen: 10
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
workerConfig: {
|
|
240
|
+
concurrency: 1,
|
|
241
|
+
lockDuration: 9e4,
|
|
242
|
+
maxStalledCount: 3,
|
|
243
|
+
limiter: {
|
|
244
|
+
max: 100,
|
|
245
|
+
duration: 6e4
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
},
|
|
221
249
|
AI_AUTO_ANNOTATE_QUEUE: {
|
|
222
250
|
id: "ai-auto-annotate-queue",
|
|
223
251
|
queueConfig: {
|
|
@@ -995,6 +1023,17 @@ var init_AIChat = __esm({
|
|
|
995
1023
|
default: "aiChat",
|
|
996
1024
|
index: true
|
|
997
1025
|
},
|
|
1026
|
+
// Deterministic ID linking this chat to a specific WidgetAskAI widget in a report.
|
|
1027
|
+
// The Report Agent generates widget configs on the backend, so at report creation
|
|
1028
|
+
// time no chat exists yet — the LLM query hasn't been fired. Without this ID,
|
|
1029
|
+
// every page load would trigger a fresh LLM call. With it, the first render runs
|
|
1030
|
+
// the LLM and saves the chat under this ID; subsequent renders find the existing
|
|
1031
|
+
// chat and return the cached response immediately.
|
|
1032
|
+
widgetAskAI_Id: {
|
|
1033
|
+
type: String,
|
|
1034
|
+
sparse: true,
|
|
1035
|
+
unique: true
|
|
1036
|
+
},
|
|
998
1037
|
immutableActiveFilters: {
|
|
999
1038
|
type: import_mongoose4.default.Schema.Types.Mixed,
|
|
1000
1039
|
default: void 0
|
|
@@ -1110,11 +1149,55 @@ var init_GeneratedTopics = __esm({
|
|
|
1110
1149
|
}
|
|
1111
1150
|
});
|
|
1112
1151
|
|
|
1152
|
+
// src/models/GeneratedEntities.ts
|
|
1153
|
+
var import_mongoose6, GeneratedEntitiesSchema, GeneratedEntities_default;
|
|
1154
|
+
var init_GeneratedEntities = __esm({
|
|
1155
|
+
"src/models/GeneratedEntities.ts"() {
|
|
1156
|
+
"use strict";
|
|
1157
|
+
import_mongoose6 = require("mongoose");
|
|
1158
|
+
GeneratedEntitiesSchema = new import_mongoose6.Schema(
|
|
1159
|
+
{
|
|
1160
|
+
canonicalName: {
|
|
1161
|
+
type: String,
|
|
1162
|
+
trim: true,
|
|
1163
|
+
required: true
|
|
1164
|
+
},
|
|
1165
|
+
type: {
|
|
1166
|
+
type: String,
|
|
1167
|
+
required: true,
|
|
1168
|
+
trim: true
|
|
1169
|
+
},
|
|
1170
|
+
embeddings: {
|
|
1171
|
+
type: [Number],
|
|
1172
|
+
required: true
|
|
1173
|
+
},
|
|
1174
|
+
aliases: {
|
|
1175
|
+
type: [String],
|
|
1176
|
+
default: []
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
{ timestamps: true, collection: "SYSTEM_generatedEntities" }
|
|
1180
|
+
);
|
|
1181
|
+
GeneratedEntitiesSchema.index(
|
|
1182
|
+
{
|
|
1183
|
+
canonicalName: 1,
|
|
1184
|
+
type: 1
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
unique: true,
|
|
1188
|
+
name: "unique_entity_per_type"
|
|
1189
|
+
}
|
|
1190
|
+
);
|
|
1191
|
+
GeneratedEntities_default = GeneratedEntitiesSchema;
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
|
|
1113
1195
|
// src/models/index.ts
|
|
1114
1196
|
var models_exports = {};
|
|
1115
1197
|
__export(models_exports, {
|
|
1116
1198
|
AIChatSchema: () => AIChat_default,
|
|
1117
1199
|
AnnotationSchema: () => Annotations_default,
|
|
1200
|
+
GeneratedEntitiesSchema: () => GeneratedEntities_default,
|
|
1118
1201
|
GeneratedTopicsSchema: () => GeneratedTopics_default,
|
|
1119
1202
|
PlatformConfigsSchema: () => PlatformConfigs_default,
|
|
1120
1203
|
TplSchema: () => Tpl_default
|
|
@@ -1127,6 +1210,7 @@ var init_models = __esm({
|
|
|
1127
1210
|
init_PlatformConfigs();
|
|
1128
1211
|
init_Tpl();
|
|
1129
1212
|
init_GeneratedTopics();
|
|
1213
|
+
init_GeneratedEntities();
|
|
1130
1214
|
}
|
|
1131
1215
|
});
|
|
1132
1216
|
|
|
@@ -1135,11 +1219,11 @@ var getDbByTenant_exports = {};
|
|
|
1135
1219
|
__export(getDbByTenant_exports, {
|
|
1136
1220
|
getDbByTenant: () => getDbByTenant
|
|
1137
1221
|
});
|
|
1138
|
-
var
|
|
1222
|
+
var import_mongoose7, import_MongoConnector, getDbByTenant;
|
|
1139
1223
|
var init_getDbByTenant = __esm({
|
|
1140
1224
|
"src/db/getDbByTenant.js"() {
|
|
1141
1225
|
"use strict";
|
|
1142
|
-
|
|
1226
|
+
import_mongoose7 = require("mongoose");
|
|
1143
1227
|
import_MongoConnector = __toESM(require_MongoConnector());
|
|
1144
1228
|
getDbByTenant = ({
|
|
1145
1229
|
tenant,
|
|
@@ -1167,7 +1251,7 @@ var require_getModelByTenant = __commonJS({
|
|
|
1167
1251
|
"src/db/getModelByTenant.js"(exports2, module2) {
|
|
1168
1252
|
"use strict";
|
|
1169
1253
|
var { getDbByTenant: getDbByTenant2 } = (init_getDbByTenant(), __toCommonJS(getDbByTenant_exports));
|
|
1170
|
-
var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2 } = (init_models(), __toCommonJS(models_exports));
|
|
1254
|
+
var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2, GeneratedEntitiesSchema: GeneratedEntitiesSchema2 } = (init_models(), __toCommonJS(models_exports));
|
|
1171
1255
|
var getModelByTenant3 = ({ tenant, modelName, schema, env }) => {
|
|
1172
1256
|
if (!tenant) {
|
|
1173
1257
|
throw new Error("tenant id has not been provided");
|
|
@@ -1208,13 +1292,20 @@ var require_getModelByTenant = __commonJS({
|
|
|
1208
1292
|
schema: GeneratedTopicsSchema2,
|
|
1209
1293
|
env
|
|
1210
1294
|
});
|
|
1295
|
+
var getGeneratedEntitiesModelByTenant2 = ({ tenant, env }) => getModelByTenant3({
|
|
1296
|
+
tenant,
|
|
1297
|
+
modelName: "generatedEntities",
|
|
1298
|
+
schema: GeneratedEntitiesSchema2,
|
|
1299
|
+
env
|
|
1300
|
+
});
|
|
1211
1301
|
module2.exports = {
|
|
1212
1302
|
getModelByTenant: getModelByTenant3,
|
|
1213
1303
|
getAIChatModelByTenant: getAIChatModelByTenant2,
|
|
1214
1304
|
getAnnotationsModelByTenant: getAnnotationsModelByTenant2,
|
|
1215
1305
|
getPlatformConfigsModelByTenant: getPlatformConfigsModelByTenant2,
|
|
1216
1306
|
getTplModelByTenant: getTplModelByTenant2,
|
|
1217
|
-
getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2
|
|
1307
|
+
getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2,
|
|
1308
|
+
getGeneratedEntitiesModelByTenant: getGeneratedEntitiesModelByTenant2
|
|
1218
1309
|
};
|
|
1219
1310
|
}
|
|
1220
1311
|
});
|
|
@@ -1836,6 +1927,7 @@ __export(node_exports, {
|
|
|
1836
1927
|
ElasticSearchConnector: () => import_ElasticSearchConnector.ElasticSearchConnector,
|
|
1837
1928
|
FILTER_IDS: () => FILTER_IDS,
|
|
1838
1929
|
GET_GLOBAL_BULLMQ_CONFIG: () => import_GET_GLOBAL_BULLMQ_CONFIG.GET_GLOBAL_BULLMQ_CONFIG,
|
|
1930
|
+
GeneratedEntitiesSchema: () => GeneratedEntities_default,
|
|
1839
1931
|
GeneratedTopicsSchema: () => GeneratedTopics_default,
|
|
1840
1932
|
MongoConnector: () => import_MongoConnector3.MongoConnector,
|
|
1841
1933
|
PlatformConfigsSchema: () => PlatformConfigs_default,
|
|
@@ -1861,6 +1953,7 @@ __export(node_exports, {
|
|
|
1861
1953
|
getAnnotationsModelByTenant: () => import_getModelByTenant2.getAnnotationsModelByTenant,
|
|
1862
1954
|
getDbByTenant: () => getDbByTenant,
|
|
1863
1955
|
getFilterKeyForBlock: () => getFilterKeyForBlock,
|
|
1956
|
+
getGeneratedEntitiesModelByTenant: () => import_getModelByTenant2.getGeneratedEntitiesModelByTenant,
|
|
1864
1957
|
getGeneratedTopicsModelByTenant: () => import_getModelByTenant2.getGeneratedTopicsModelByTenant,
|
|
1865
1958
|
getModelByTenant: () => import_getModelByTenant2.getModelByTenant,
|
|
1866
1959
|
getPlatformConfigsModelByTenant: () => import_getModelByTenant2.getPlatformConfigsModelByTenant,
|
|
@@ -3757,6 +3850,7 @@ var import_GET_GLOBAL_BULLMQ_CONFIG = __toESM(require_GET_GLOBAL_BULLMQ_CONFIG()
|
|
|
3757
3850
|
ElasticSearchConnector,
|
|
3758
3851
|
FILTER_IDS,
|
|
3759
3852
|
GET_GLOBAL_BULLMQ_CONFIG,
|
|
3853
|
+
GeneratedEntitiesSchema,
|
|
3760
3854
|
GeneratedTopicsSchema,
|
|
3761
3855
|
MongoConnector,
|
|
3762
3856
|
PlatformConfigsSchema,
|
|
@@ -3782,6 +3876,7 @@ var import_GET_GLOBAL_BULLMQ_CONFIG = __toESM(require_GET_GLOBAL_BULLMQ_CONFIG()
|
|
|
3782
3876
|
getAnnotationsModelByTenant,
|
|
3783
3877
|
getDbByTenant,
|
|
3784
3878
|
getFilterKeyForBlock,
|
|
3879
|
+
getGeneratedEntitiesModelByTenant,
|
|
3785
3880
|
getGeneratedTopicsModelByTenant,
|
|
3786
3881
|
getModelByTenant,
|
|
3787
3882
|
getPlatformConfigsModelByTenant,
|
package/dist/node.mjs
CHANGED
|
@@ -223,6 +223,34 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
|
+
SENTIMENT_AND_NER_QUEUE: {
|
|
227
|
+
id: "sentiment-and-ner-queue",
|
|
228
|
+
queueConfig: {
|
|
229
|
+
defaultJobOptions: {
|
|
230
|
+
attempts: 3,
|
|
231
|
+
backoff: {
|
|
232
|
+
type: "exponential",
|
|
233
|
+
delay: 2e3
|
|
234
|
+
},
|
|
235
|
+
removeOnComplete: 30,
|
|
236
|
+
removeOnFail: 100
|
|
237
|
+
},
|
|
238
|
+
streams: {
|
|
239
|
+
events: {
|
|
240
|
+
maxLen: 10
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
workerConfig: {
|
|
245
|
+
concurrency: 1,
|
|
246
|
+
lockDuration: 9e4,
|
|
247
|
+
maxStalledCount: 3,
|
|
248
|
+
limiter: {
|
|
249
|
+
max: 100,
|
|
250
|
+
duration: 6e4
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
226
254
|
AI_AUTO_ANNOTATE_QUEUE: {
|
|
227
255
|
id: "ai-auto-annotate-queue",
|
|
228
256
|
queueConfig: {
|
|
@@ -1000,6 +1028,17 @@ var init_AIChat = __esm({
|
|
|
1000
1028
|
default: "aiChat",
|
|
1001
1029
|
index: true
|
|
1002
1030
|
},
|
|
1031
|
+
// Deterministic ID linking this chat to a specific WidgetAskAI widget in a report.
|
|
1032
|
+
// The Report Agent generates widget configs on the backend, so at report creation
|
|
1033
|
+
// time no chat exists yet — the LLM query hasn't been fired. Without this ID,
|
|
1034
|
+
// every page load would trigger a fresh LLM call. With it, the first render runs
|
|
1035
|
+
// the LLM and saves the chat under this ID; subsequent renders find the existing
|
|
1036
|
+
// chat and return the cached response immediately.
|
|
1037
|
+
widgetAskAI_Id: {
|
|
1038
|
+
type: String,
|
|
1039
|
+
sparse: true,
|
|
1040
|
+
unique: true
|
|
1041
|
+
},
|
|
1003
1042
|
immutableActiveFilters: {
|
|
1004
1043
|
type: mongoose4.Schema.Types.Mixed,
|
|
1005
1044
|
default: void 0
|
|
@@ -1115,11 +1154,55 @@ var init_GeneratedTopics = __esm({
|
|
|
1115
1154
|
}
|
|
1116
1155
|
});
|
|
1117
1156
|
|
|
1157
|
+
// src/models/GeneratedEntities.ts
|
|
1158
|
+
import { Schema as Schema3 } from "mongoose";
|
|
1159
|
+
var GeneratedEntitiesSchema, GeneratedEntities_default;
|
|
1160
|
+
var init_GeneratedEntities = __esm({
|
|
1161
|
+
"src/models/GeneratedEntities.ts"() {
|
|
1162
|
+
"use strict";
|
|
1163
|
+
GeneratedEntitiesSchema = new Schema3(
|
|
1164
|
+
{
|
|
1165
|
+
canonicalName: {
|
|
1166
|
+
type: String,
|
|
1167
|
+
trim: true,
|
|
1168
|
+
required: true
|
|
1169
|
+
},
|
|
1170
|
+
type: {
|
|
1171
|
+
type: String,
|
|
1172
|
+
required: true,
|
|
1173
|
+
trim: true
|
|
1174
|
+
},
|
|
1175
|
+
embeddings: {
|
|
1176
|
+
type: [Number],
|
|
1177
|
+
required: true
|
|
1178
|
+
},
|
|
1179
|
+
aliases: {
|
|
1180
|
+
type: [String],
|
|
1181
|
+
default: []
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
{ timestamps: true, collection: "SYSTEM_generatedEntities" }
|
|
1185
|
+
);
|
|
1186
|
+
GeneratedEntitiesSchema.index(
|
|
1187
|
+
{
|
|
1188
|
+
canonicalName: 1,
|
|
1189
|
+
type: 1
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
unique: true,
|
|
1193
|
+
name: "unique_entity_per_type"
|
|
1194
|
+
}
|
|
1195
|
+
);
|
|
1196
|
+
GeneratedEntities_default = GeneratedEntitiesSchema;
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
|
|
1118
1200
|
// src/models/index.ts
|
|
1119
1201
|
var models_exports = {};
|
|
1120
1202
|
__export(models_exports, {
|
|
1121
1203
|
AIChatSchema: () => AIChat_default,
|
|
1122
1204
|
AnnotationSchema: () => Annotations_default,
|
|
1205
|
+
GeneratedEntitiesSchema: () => GeneratedEntities_default,
|
|
1123
1206
|
GeneratedTopicsSchema: () => GeneratedTopics_default,
|
|
1124
1207
|
PlatformConfigsSchema: () => PlatformConfigs_default,
|
|
1125
1208
|
TplSchema: () => Tpl_default
|
|
@@ -1132,6 +1215,7 @@ var init_models = __esm({
|
|
|
1132
1215
|
init_PlatformConfigs();
|
|
1133
1216
|
init_Tpl();
|
|
1134
1217
|
init_GeneratedTopics();
|
|
1218
|
+
init_GeneratedEntities();
|
|
1135
1219
|
}
|
|
1136
1220
|
});
|
|
1137
1221
|
|
|
@@ -1172,7 +1256,7 @@ var require_getModelByTenant = __commonJS({
|
|
|
1172
1256
|
"src/db/getModelByTenant.js"(exports, module) {
|
|
1173
1257
|
"use strict";
|
|
1174
1258
|
var { getDbByTenant: getDbByTenant2 } = (init_getDbByTenant(), __toCommonJS(getDbByTenant_exports));
|
|
1175
|
-
var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2 } = (init_models(), __toCommonJS(models_exports));
|
|
1259
|
+
var { AIChatSchema: AIChatSchema2, AnnotationSchema: AnnotationSchema2, PlatformConfigsSchema: PlatformConfigsSchema2, TplSchema: TplSchema2, GeneratedTopicsSchema: GeneratedTopicsSchema2, GeneratedEntitiesSchema: GeneratedEntitiesSchema2 } = (init_models(), __toCommonJS(models_exports));
|
|
1176
1260
|
var getModelByTenant3 = ({ tenant, modelName, schema, env }) => {
|
|
1177
1261
|
if (!tenant) {
|
|
1178
1262
|
throw new Error("tenant id has not been provided");
|
|
@@ -1213,13 +1297,20 @@ var require_getModelByTenant = __commonJS({
|
|
|
1213
1297
|
schema: GeneratedTopicsSchema2,
|
|
1214
1298
|
env
|
|
1215
1299
|
});
|
|
1300
|
+
var getGeneratedEntitiesModelByTenant2 = ({ tenant, env }) => getModelByTenant3({
|
|
1301
|
+
tenant,
|
|
1302
|
+
modelName: "generatedEntities",
|
|
1303
|
+
schema: GeneratedEntitiesSchema2,
|
|
1304
|
+
env
|
|
1305
|
+
});
|
|
1216
1306
|
module.exports = {
|
|
1217
1307
|
getModelByTenant: getModelByTenant3,
|
|
1218
1308
|
getAIChatModelByTenant: getAIChatModelByTenant2,
|
|
1219
1309
|
getAnnotationsModelByTenant: getAnnotationsModelByTenant2,
|
|
1220
1310
|
getPlatformConfigsModelByTenant: getPlatformConfigsModelByTenant2,
|
|
1221
1311
|
getTplModelByTenant: getTplModelByTenant2,
|
|
1222
|
-
getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2
|
|
1312
|
+
getGeneratedTopicsModelByTenant: getGeneratedTopicsModelByTenant2,
|
|
1313
|
+
getGeneratedEntitiesModelByTenant: getGeneratedEntitiesModelByTenant2
|
|
1223
1314
|
};
|
|
1224
1315
|
}
|
|
1225
1316
|
});
|
|
@@ -3703,6 +3794,7 @@ var export_ProducerManager = import_ProducerManager.ProducerManager;
|
|
|
3703
3794
|
var export_WorkerManager = import_WorkerManager.WorkerManager;
|
|
3704
3795
|
var export_getAIChatModelByTenant = import_getModelByTenant2.getAIChatModelByTenant;
|
|
3705
3796
|
var export_getAnnotationsModelByTenant = import_getModelByTenant2.getAnnotationsModelByTenant;
|
|
3797
|
+
var export_getGeneratedEntitiesModelByTenant = import_getModelByTenant2.getGeneratedEntitiesModelByTenant;
|
|
3706
3798
|
var export_getGeneratedTopicsModelByTenant = import_getModelByTenant2.getGeneratedTopicsModelByTenant;
|
|
3707
3799
|
var export_getModelByTenant = import_getModelByTenant2.getModelByTenant;
|
|
3708
3800
|
var export_getPlatformConfigsModelByTenant = import_getModelByTenant2.getPlatformConfigsModelByTenant;
|
|
@@ -3718,6 +3810,7 @@ export {
|
|
|
3718
3810
|
export_ElasticSearchConnector as ElasticSearchConnector,
|
|
3719
3811
|
FILTER_IDS,
|
|
3720
3812
|
export_GET_GLOBAL_BULLMQ_CONFIG as GET_GLOBAL_BULLMQ_CONFIG,
|
|
3813
|
+
GeneratedEntities_default as GeneratedEntitiesSchema,
|
|
3721
3814
|
GeneratedTopics_default as GeneratedTopicsSchema,
|
|
3722
3815
|
export_MongoConnector as MongoConnector,
|
|
3723
3816
|
PlatformConfigs_default as PlatformConfigsSchema,
|
|
@@ -3743,6 +3836,7 @@ export {
|
|
|
3743
3836
|
export_getAnnotationsModelByTenant as getAnnotationsModelByTenant,
|
|
3744
3837
|
getDbByTenant,
|
|
3745
3838
|
getFilterKeyForBlock,
|
|
3839
|
+
export_getGeneratedEntitiesModelByTenant as getGeneratedEntitiesModelByTenant,
|
|
3746
3840
|
export_getGeneratedTopicsModelByTenant as getGeneratedTopicsModelByTenant,
|
|
3747
3841
|
export_getModelByTenant as getModelByTenant,
|
|
3748
3842
|
export_getPlatformConfigsModelByTenant as getPlatformConfigsModelByTenant,
|
package/dist/universal.d.mts
CHANGED
|
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
502
502
|
}
|
|
503
503
|
export { workerConfig_5 as workerConfig };
|
|
504
504
|
}
|
|
505
|
-
namespace
|
|
505
|
+
namespace SENTIMENT_AND_NER_QUEUE {
|
|
506
506
|
let id_6: string;
|
|
507
507
|
export { id_6 as id };
|
|
508
508
|
export namespace queueConfig_6 {
|
|
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
539
539
|
export { lockDuration_6 as lockDuration };
|
|
540
540
|
let maxStalledCount_6: number;
|
|
541
541
|
export { maxStalledCount_6 as maxStalledCount };
|
|
542
|
+
export namespace limiter_3 {
|
|
543
|
+
let max_3: number;
|
|
544
|
+
export { max_3 as max };
|
|
545
|
+
let duration_3: number;
|
|
546
|
+
export { duration_3 as duration };
|
|
547
|
+
}
|
|
548
|
+
export { limiter_3 as limiter };
|
|
542
549
|
}
|
|
543
550
|
export { workerConfig_6 as workerConfig };
|
|
544
551
|
}
|
|
545
|
-
namespace
|
|
552
|
+
namespace AI_AUTO_ANNOTATE_QUEUE {
|
|
546
553
|
let id_7: string;
|
|
547
554
|
export { id_7 as id };
|
|
548
555
|
export namespace queueConfig_7 {
|
|
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
582
589
|
}
|
|
583
590
|
export { workerConfig_7 as workerConfig };
|
|
584
591
|
}
|
|
585
|
-
namespace
|
|
592
|
+
namespace ANNOS_ELASTIC_SYNC_QUEUE {
|
|
586
593
|
let id_8: string;
|
|
587
594
|
export { id_8 as id };
|
|
588
595
|
export namespace queueConfig_8 {
|
|
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
622
629
|
}
|
|
623
630
|
export { workerConfig_8 as workerConfig };
|
|
624
631
|
}
|
|
625
|
-
namespace
|
|
632
|
+
namespace CHUNKS_ELASTIC_SYNC_QUEUE {
|
|
626
633
|
let id_9: string;
|
|
627
634
|
export { id_9 as id };
|
|
628
635
|
export namespace queueConfig_9 {
|
|
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
662
669
|
}
|
|
663
670
|
export { workerConfig_9 as workerConfig };
|
|
664
671
|
}
|
|
665
|
-
namespace
|
|
672
|
+
namespace CONTENT_ELASTIC_SYNC_QUEUE {
|
|
666
673
|
let id_10: string;
|
|
667
674
|
export { id_10 as id };
|
|
668
675
|
export namespace queueConfig_10 {
|
|
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
676
683
|
export { delay_10 as delay };
|
|
677
684
|
}
|
|
678
685
|
export { backoff_10 as backoff };
|
|
679
|
-
let delay_11: number;
|
|
680
|
-
export { delay_11 as delay };
|
|
681
686
|
let removeOnComplete_10: number;
|
|
682
687
|
export { removeOnComplete_10 as removeOnComplete };
|
|
683
688
|
let removeOnFail_10: number;
|
|
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
704
709
|
}
|
|
705
710
|
export { workerConfig_10 as workerConfig };
|
|
706
711
|
}
|
|
712
|
+
namespace REINDEX_QUEUE {
|
|
713
|
+
let id_11: string;
|
|
714
|
+
export { id_11 as id };
|
|
715
|
+
export namespace queueConfig_11 {
|
|
716
|
+
export namespace defaultJobOptions_11 {
|
|
717
|
+
let attempts_11: number;
|
|
718
|
+
export { attempts_11 as attempts };
|
|
719
|
+
export namespace backoff_11 {
|
|
720
|
+
let type_11: string;
|
|
721
|
+
export { type_11 as type };
|
|
722
|
+
let delay_11: number;
|
|
723
|
+
export { delay_11 as delay };
|
|
724
|
+
}
|
|
725
|
+
export { backoff_11 as backoff };
|
|
726
|
+
let delay_12: number;
|
|
727
|
+
export { delay_12 as delay };
|
|
728
|
+
let removeOnComplete_11: number;
|
|
729
|
+
export { removeOnComplete_11 as removeOnComplete };
|
|
730
|
+
let removeOnFail_11: number;
|
|
731
|
+
export { removeOnFail_11 as removeOnFail };
|
|
732
|
+
}
|
|
733
|
+
export { defaultJobOptions_11 as defaultJobOptions };
|
|
734
|
+
export namespace streams_11 {
|
|
735
|
+
export namespace events_11 {
|
|
736
|
+
let maxLen_11: number;
|
|
737
|
+
export { maxLen_11 as maxLen };
|
|
738
|
+
}
|
|
739
|
+
export { events_11 as events };
|
|
740
|
+
}
|
|
741
|
+
export { streams_11 as streams };
|
|
742
|
+
}
|
|
743
|
+
export { queueConfig_11 as queueConfig };
|
|
744
|
+
export namespace workerConfig_11 {
|
|
745
|
+
let concurrency_11: number;
|
|
746
|
+
export { concurrency_11 as concurrency };
|
|
747
|
+
let lockDuration_11: number;
|
|
748
|
+
export { lockDuration_11 as lockDuration };
|
|
749
|
+
let maxStalledCount_11: number;
|
|
750
|
+
export { maxStalledCount_11 as maxStalledCount };
|
|
751
|
+
}
|
|
752
|
+
export { workerConfig_11 as workerConfig };
|
|
753
|
+
}
|
|
707
754
|
}
|
|
708
755
|
|
|
709
756
|
interface PlatformContextContentItem {
|
package/dist/universal.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
502
502
|
}
|
|
503
503
|
export { workerConfig_5 as workerConfig };
|
|
504
504
|
}
|
|
505
|
-
namespace
|
|
505
|
+
namespace SENTIMENT_AND_NER_QUEUE {
|
|
506
506
|
let id_6: string;
|
|
507
507
|
export { id_6 as id };
|
|
508
508
|
export namespace queueConfig_6 {
|
|
@@ -539,10 +539,17 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
539
539
|
export { lockDuration_6 as lockDuration };
|
|
540
540
|
let maxStalledCount_6: number;
|
|
541
541
|
export { maxStalledCount_6 as maxStalledCount };
|
|
542
|
+
export namespace limiter_3 {
|
|
543
|
+
let max_3: number;
|
|
544
|
+
export { max_3 as max };
|
|
545
|
+
let duration_3: number;
|
|
546
|
+
export { duration_3 as duration };
|
|
547
|
+
}
|
|
548
|
+
export { limiter_3 as limiter };
|
|
542
549
|
}
|
|
543
550
|
export { workerConfig_6 as workerConfig };
|
|
544
551
|
}
|
|
545
|
-
namespace
|
|
552
|
+
namespace AI_AUTO_ANNOTATE_QUEUE {
|
|
546
553
|
let id_7: string;
|
|
547
554
|
export { id_7 as id };
|
|
548
555
|
export namespace queueConfig_7 {
|
|
@@ -582,7 +589,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
582
589
|
}
|
|
583
590
|
export { workerConfig_7 as workerConfig };
|
|
584
591
|
}
|
|
585
|
-
namespace
|
|
592
|
+
namespace ANNOS_ELASTIC_SYNC_QUEUE {
|
|
586
593
|
let id_8: string;
|
|
587
594
|
export { id_8 as id };
|
|
588
595
|
export namespace queueConfig_8 {
|
|
@@ -622,7 +629,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
622
629
|
}
|
|
623
630
|
export { workerConfig_8 as workerConfig };
|
|
624
631
|
}
|
|
625
|
-
namespace
|
|
632
|
+
namespace CHUNKS_ELASTIC_SYNC_QUEUE {
|
|
626
633
|
let id_9: string;
|
|
627
634
|
export { id_9 as id };
|
|
628
635
|
export namespace queueConfig_9 {
|
|
@@ -662,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
662
669
|
}
|
|
663
670
|
export { workerConfig_9 as workerConfig };
|
|
664
671
|
}
|
|
665
|
-
namespace
|
|
672
|
+
namespace CONTENT_ELASTIC_SYNC_QUEUE {
|
|
666
673
|
let id_10: string;
|
|
667
674
|
export { id_10 as id };
|
|
668
675
|
export namespace queueConfig_10 {
|
|
@@ -676,8 +683,6 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
676
683
|
export { delay_10 as delay };
|
|
677
684
|
}
|
|
678
685
|
export { backoff_10 as backoff };
|
|
679
|
-
let delay_11: number;
|
|
680
|
-
export { delay_11 as delay };
|
|
681
686
|
let removeOnComplete_10: number;
|
|
682
687
|
export { removeOnComplete_10 as removeOnComplete };
|
|
683
688
|
let removeOnFail_10: number;
|
|
@@ -704,6 +709,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
704
709
|
}
|
|
705
710
|
export { workerConfig_10 as workerConfig };
|
|
706
711
|
}
|
|
712
|
+
namespace REINDEX_QUEUE {
|
|
713
|
+
let id_11: string;
|
|
714
|
+
export { id_11 as id };
|
|
715
|
+
export namespace queueConfig_11 {
|
|
716
|
+
export namespace defaultJobOptions_11 {
|
|
717
|
+
let attempts_11: number;
|
|
718
|
+
export { attempts_11 as attempts };
|
|
719
|
+
export namespace backoff_11 {
|
|
720
|
+
let type_11: string;
|
|
721
|
+
export { type_11 as type };
|
|
722
|
+
let delay_11: number;
|
|
723
|
+
export { delay_11 as delay };
|
|
724
|
+
}
|
|
725
|
+
export { backoff_11 as backoff };
|
|
726
|
+
let delay_12: number;
|
|
727
|
+
export { delay_12 as delay };
|
|
728
|
+
let removeOnComplete_11: number;
|
|
729
|
+
export { removeOnComplete_11 as removeOnComplete };
|
|
730
|
+
let removeOnFail_11: number;
|
|
731
|
+
export { removeOnFail_11 as removeOnFail };
|
|
732
|
+
}
|
|
733
|
+
export { defaultJobOptions_11 as defaultJobOptions };
|
|
734
|
+
export namespace streams_11 {
|
|
735
|
+
export namespace events_11 {
|
|
736
|
+
let maxLen_11: number;
|
|
737
|
+
export { maxLen_11 as maxLen };
|
|
738
|
+
}
|
|
739
|
+
export { events_11 as events };
|
|
740
|
+
}
|
|
741
|
+
export { streams_11 as streams };
|
|
742
|
+
}
|
|
743
|
+
export { queueConfig_11 as queueConfig };
|
|
744
|
+
export namespace workerConfig_11 {
|
|
745
|
+
let concurrency_11: number;
|
|
746
|
+
export { concurrency_11 as concurrency };
|
|
747
|
+
let lockDuration_11: number;
|
|
748
|
+
export { lockDuration_11 as lockDuration };
|
|
749
|
+
let maxStalledCount_11: number;
|
|
750
|
+
export { maxStalledCount_11 as maxStalledCount };
|
|
751
|
+
}
|
|
752
|
+
export { workerConfig_11 as workerConfig };
|
|
753
|
+
}
|
|
707
754
|
}
|
|
708
755
|
|
|
709
756
|
interface PlatformContextContentItem {
|
package/dist/universal.js
CHANGED
|
@@ -632,6 +632,34 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
},
|
|
635
|
+
SENTIMENT_AND_NER_QUEUE: {
|
|
636
|
+
id: "sentiment-and-ner-queue",
|
|
637
|
+
queueConfig: {
|
|
638
|
+
defaultJobOptions: {
|
|
639
|
+
attempts: 3,
|
|
640
|
+
backoff: {
|
|
641
|
+
type: "exponential",
|
|
642
|
+
delay: 2e3
|
|
643
|
+
},
|
|
644
|
+
removeOnComplete: 30,
|
|
645
|
+
removeOnFail: 100
|
|
646
|
+
},
|
|
647
|
+
streams: {
|
|
648
|
+
events: {
|
|
649
|
+
maxLen: 10
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
workerConfig: {
|
|
654
|
+
concurrency: 1,
|
|
655
|
+
lockDuration: 9e4,
|
|
656
|
+
maxStalledCount: 3,
|
|
657
|
+
limiter: {
|
|
658
|
+
max: 100,
|
|
659
|
+
duration: 6e4
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
},
|
|
635
663
|
AI_AUTO_ANNOTATE_QUEUE: {
|
|
636
664
|
id: "ai-auto-annotate-queue",
|
|
637
665
|
queueConfig: {
|
package/dist/universal.mjs
CHANGED
|
@@ -578,6 +578,34 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
},
|
|
581
|
+
SENTIMENT_AND_NER_QUEUE: {
|
|
582
|
+
id: "sentiment-and-ner-queue",
|
|
583
|
+
queueConfig: {
|
|
584
|
+
defaultJobOptions: {
|
|
585
|
+
attempts: 3,
|
|
586
|
+
backoff: {
|
|
587
|
+
type: "exponential",
|
|
588
|
+
delay: 2e3
|
|
589
|
+
},
|
|
590
|
+
removeOnComplete: 30,
|
|
591
|
+
removeOnFail: 100
|
|
592
|
+
},
|
|
593
|
+
streams: {
|
|
594
|
+
events: {
|
|
595
|
+
maxLen: 10
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
workerConfig: {
|
|
600
|
+
concurrency: 1,
|
|
601
|
+
lockDuration: 9e4,
|
|
602
|
+
maxStalledCount: 3,
|
|
603
|
+
limiter: {
|
|
604
|
+
max: 100,
|
|
605
|
+
duration: 6e4
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
581
609
|
AI_AUTO_ANNOTATE_QUEUE: {
|
|
582
610
|
id: "ai-auto-annotate-queue",
|
|
583
611
|
queueConfig: {
|