@okf/ootils 1.28.2 → 1.28.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.
@@ -669,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
669
669
  }
670
670
  export { workerConfig_9 as workerConfig };
671
671
  }
672
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
672
+ namespace USERS_ELASTIC_SYNC_QUEUE {
673
673
  let id_10: string;
674
674
  export { id_10 as id };
675
675
  export namespace queueConfig_10 {
@@ -709,7 +709,7 @@ declare namespace BASE_BULLMQ_CONFIG {
709
709
  }
710
710
  export { workerConfig_10 as workerConfig };
711
711
  }
712
- namespace REINDEX_QUEUE {
712
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
713
713
  let id_11: string;
714
714
  export { id_11 as id };
715
715
  export namespace queueConfig_11 {
@@ -723,8 +723,6 @@ declare namespace BASE_BULLMQ_CONFIG {
723
723
  export { delay_11 as delay };
724
724
  }
725
725
  export { backoff_11 as backoff };
726
- let delay_12: number;
727
- export { delay_12 as delay };
728
726
  let removeOnComplete_11: number;
729
727
  export { removeOnComplete_11 as removeOnComplete };
730
728
  let removeOnFail_11: number;
@@ -751,6 +749,48 @@ declare namespace BASE_BULLMQ_CONFIG {
751
749
  }
752
750
  export { workerConfig_11 as workerConfig };
753
751
  }
752
+ namespace REINDEX_QUEUE {
753
+ let id_12: string;
754
+ export { id_12 as id };
755
+ export namespace queueConfig_12 {
756
+ export namespace defaultJobOptions_12 {
757
+ let attempts_12: number;
758
+ export { attempts_12 as attempts };
759
+ export namespace backoff_12 {
760
+ let type_12: string;
761
+ export { type_12 as type };
762
+ let delay_12: number;
763
+ export { delay_12 as delay };
764
+ }
765
+ export { backoff_12 as backoff };
766
+ let delay_13: number;
767
+ export { delay_13 as delay };
768
+ let removeOnComplete_12: number;
769
+ export { removeOnComplete_12 as removeOnComplete };
770
+ let removeOnFail_12: number;
771
+ export { removeOnFail_12 as removeOnFail };
772
+ }
773
+ export { defaultJobOptions_12 as defaultJobOptions };
774
+ export namespace streams_12 {
775
+ export namespace events_12 {
776
+ let maxLen_12: number;
777
+ export { maxLen_12 as maxLen };
778
+ }
779
+ export { events_12 as events };
780
+ }
781
+ export { streams_12 as streams };
782
+ }
783
+ export { queueConfig_12 as queueConfig };
784
+ export namespace workerConfig_12 {
785
+ let concurrency_12: number;
786
+ export { concurrency_12 as concurrency };
787
+ let lockDuration_12: number;
788
+ export { lockDuration_12 as lockDuration };
789
+ let maxStalledCount_12: number;
790
+ export { maxStalledCount_12 as maxStalledCount };
791
+ }
792
+ export { workerConfig_12 as workerConfig };
793
+ }
754
794
  }
755
795
 
756
796
  interface PlatformContextContentItem {
@@ -842,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
842
882
  };
843
883
  }) => string;
844
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
845
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
846
902
  groups: any[];
847
903
  type: string;
@@ -1283,4 +1339,4 @@ declare const UI_CONTENT: {
1283
1339
  */
1284
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1285
1341
 
1286
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/browser.d.ts CHANGED
@@ -669,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
669
669
  }
670
670
  export { workerConfig_9 as workerConfig };
671
671
  }
672
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
672
+ namespace USERS_ELASTIC_SYNC_QUEUE {
673
673
  let id_10: string;
674
674
  export { id_10 as id };
675
675
  export namespace queueConfig_10 {
@@ -709,7 +709,7 @@ declare namespace BASE_BULLMQ_CONFIG {
709
709
  }
710
710
  export { workerConfig_10 as workerConfig };
711
711
  }
712
- namespace REINDEX_QUEUE {
712
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
713
713
  let id_11: string;
714
714
  export { id_11 as id };
715
715
  export namespace queueConfig_11 {
@@ -723,8 +723,6 @@ declare namespace BASE_BULLMQ_CONFIG {
723
723
  export { delay_11 as delay };
724
724
  }
725
725
  export { backoff_11 as backoff };
726
- let delay_12: number;
727
- export { delay_12 as delay };
728
726
  let removeOnComplete_11: number;
729
727
  export { removeOnComplete_11 as removeOnComplete };
730
728
  let removeOnFail_11: number;
@@ -751,6 +749,48 @@ declare namespace BASE_BULLMQ_CONFIG {
751
749
  }
752
750
  export { workerConfig_11 as workerConfig };
753
751
  }
752
+ namespace REINDEX_QUEUE {
753
+ let id_12: string;
754
+ export { id_12 as id };
755
+ export namespace queueConfig_12 {
756
+ export namespace defaultJobOptions_12 {
757
+ let attempts_12: number;
758
+ export { attempts_12 as attempts };
759
+ export namespace backoff_12 {
760
+ let type_12: string;
761
+ export { type_12 as type };
762
+ let delay_12: number;
763
+ export { delay_12 as delay };
764
+ }
765
+ export { backoff_12 as backoff };
766
+ let delay_13: number;
767
+ export { delay_13 as delay };
768
+ let removeOnComplete_12: number;
769
+ export { removeOnComplete_12 as removeOnComplete };
770
+ let removeOnFail_12: number;
771
+ export { removeOnFail_12 as removeOnFail };
772
+ }
773
+ export { defaultJobOptions_12 as defaultJobOptions };
774
+ export namespace streams_12 {
775
+ export namespace events_12 {
776
+ let maxLen_12: number;
777
+ export { maxLen_12 as maxLen };
778
+ }
779
+ export { events_12 as events };
780
+ }
781
+ export { streams_12 as streams };
782
+ }
783
+ export { queueConfig_12 as queueConfig };
784
+ export namespace workerConfig_12 {
785
+ let concurrency_12: number;
786
+ export { concurrency_12 as concurrency };
787
+ let lockDuration_12: number;
788
+ export { lockDuration_12 as lockDuration };
789
+ let maxStalledCount_12: number;
790
+ export { maxStalledCount_12 as maxStalledCount };
791
+ }
792
+ export { workerConfig_12 as workerConfig };
793
+ }
754
794
  }
755
795
 
756
796
  interface PlatformContextContentItem {
@@ -842,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
842
882
  };
843
883
  }) => string;
844
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
845
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
846
902
  groups: any[];
847
903
  type: string;
@@ -1283,4 +1339,4 @@ declare const UI_CONTENT: {
1283
1339
  */
1284
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1285
1341
 
1286
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/browser.js CHANGED
@@ -42,7 +42,9 @@ __export(browser_exports, {
42
42
  getRollupPossibilities: () => getRollupPossibilities,
43
43
  getRoutePathToEditContent: () => getRoutePathToEditContent,
44
44
  getRoutePathToModerateContent: () => getRoutePathToModerateContent,
45
+ getRoutePathToMyContent: () => getRoutePathToMyContent,
45
46
  getRoutePathToPublishedContent: () => getRoutePathToPublishedContent,
47
+ getRoutePathToReviewDashboard: () => getRoutePathToReviewDashboard,
46
48
  getVal: () => getVal,
47
49
  mergeAnnoDataIntoAnnotationsTags: () => mergeAnnoDataIntoAnnotationsTags,
48
50
  parseSpecialConfigSyntax: () => parseSpecialConfigSyntax,
@@ -737,6 +739,30 @@ var BASE_BULLMQ_CONFIG = {
737
739
  maxStalledCount: 3
738
740
  }
739
741
  },
742
+ USERS_ELASTIC_SYNC_QUEUE: {
743
+ id: "users-elastic-sync-queue",
744
+ queueConfig: {
745
+ defaultJobOptions: {
746
+ attempts: 3,
747
+ backoff: {
748
+ type: "exponential",
749
+ delay: 2e3
750
+ },
751
+ removeOnComplete: 30,
752
+ removeOnFail: 100
753
+ },
754
+ streams: {
755
+ events: {
756
+ maxLen: 10
757
+ }
758
+ }
759
+ },
760
+ workerConfig: {
761
+ concurrency: 50,
762
+ lockDuration: 9e4,
763
+ maxStalledCount: 3
764
+ }
765
+ },
740
766
  CONTENT_ELASTIC_SYNC_QUEUE: {
741
767
  id: "content-elastic-sync-queue",
742
768
  queueConfig: {
@@ -972,6 +998,20 @@ var getRoutePathToModerateContent = ({
972
998
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
973
999
  };
974
1000
 
1001
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
1002
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1003
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1004
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
1005
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1006
+ };
1007
+
1008
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
1009
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1010
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1011
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
1012
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1013
+ };
1014
+
975
1015
  // src/UI_CONTENT.ts
976
1016
  var UI_CONTENT = {
977
1017
  autoGenFilterConfigs: {
@@ -2173,7 +2213,9 @@ var genCleanCamelCaseId = (id) => {
2173
2213
  getRollupPossibilities,
2174
2214
  getRoutePathToEditContent,
2175
2215
  getRoutePathToModerateContent,
2216
+ getRoutePathToMyContent,
2176
2217
  getRoutePathToPublishedContent,
2218
+ getRoutePathToReviewDashboard,
2177
2219
  getVal,
2178
2220
  mergeAnnoDataIntoAnnotationsTags,
2179
2221
  parseSpecialConfigSyntax,
package/dist/browser.mjs CHANGED
@@ -681,6 +681,30 @@ var BASE_BULLMQ_CONFIG = {
681
681
  maxStalledCount: 3
682
682
  }
683
683
  },
684
+ USERS_ELASTIC_SYNC_QUEUE: {
685
+ id: "users-elastic-sync-queue",
686
+ queueConfig: {
687
+ defaultJobOptions: {
688
+ attempts: 3,
689
+ backoff: {
690
+ type: "exponential",
691
+ delay: 2e3
692
+ },
693
+ removeOnComplete: 30,
694
+ removeOnFail: 100
695
+ },
696
+ streams: {
697
+ events: {
698
+ maxLen: 10
699
+ }
700
+ }
701
+ },
702
+ workerConfig: {
703
+ concurrency: 50,
704
+ lockDuration: 9e4,
705
+ maxStalledCount: 3
706
+ }
707
+ },
684
708
  CONTENT_ELASTIC_SYNC_QUEUE: {
685
709
  id: "content-elastic-sync-queue",
686
710
  queueConfig: {
@@ -916,6 +940,20 @@ var getRoutePathToModerateContent = ({
916
940
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
917
941
  };
918
942
 
943
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
944
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
945
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
946
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
947
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
948
+ };
949
+
950
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
951
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
952
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
953
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
954
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
955
+ };
956
+
919
957
  // src/UI_CONTENT.ts
920
958
  var UI_CONTENT = {
921
959
  autoGenFilterConfigs: {
@@ -2116,7 +2154,9 @@ export {
2116
2154
  getRollupPossibilities,
2117
2155
  getRoutePathToEditContent,
2118
2156
  getRoutePathToModerateContent,
2157
+ getRoutePathToMyContent,
2119
2158
  getRoutePathToPublishedContent,
2159
+ getRoutePathToReviewDashboard,
2120
2160
  getVal,
2121
2161
  mergeAnnoDataIntoAnnotationsTags,
2122
2162
  parseSpecialConfigSyntax,
package/dist/node.d.mts CHANGED
@@ -676,7 +676,7 @@ declare namespace BASE_BULLMQ_CONFIG {
676
676
  }
677
677
  export { workerConfig_9 as workerConfig };
678
678
  }
679
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
679
+ namespace USERS_ELASTIC_SYNC_QUEUE {
680
680
  let id_10: string;
681
681
  export { id_10 as id };
682
682
  export namespace queueConfig_10 {
@@ -716,7 +716,7 @@ declare namespace BASE_BULLMQ_CONFIG {
716
716
  }
717
717
  export { workerConfig_10 as workerConfig };
718
718
  }
719
- namespace REINDEX_QUEUE {
719
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
720
720
  let id_11: string;
721
721
  export { id_11 as id };
722
722
  export namespace queueConfig_11 {
@@ -730,8 +730,6 @@ declare namespace BASE_BULLMQ_CONFIG {
730
730
  export { delay_11 as delay };
731
731
  }
732
732
  export { backoff_11 as backoff };
733
- let delay_12: number;
734
- export { delay_12 as delay };
735
733
  let removeOnComplete_11: number;
736
734
  export { removeOnComplete_11 as removeOnComplete };
737
735
  let removeOnFail_11: number;
@@ -758,6 +756,48 @@ declare namespace BASE_BULLMQ_CONFIG {
758
756
  }
759
757
  export { workerConfig_11 as workerConfig };
760
758
  }
759
+ namespace REINDEX_QUEUE {
760
+ let id_12: string;
761
+ export { id_12 as id };
762
+ export namespace queueConfig_12 {
763
+ export namespace defaultJobOptions_12 {
764
+ let attempts_12: number;
765
+ export { attempts_12 as attempts };
766
+ export namespace backoff_12 {
767
+ let type_12: string;
768
+ export { type_12 as type };
769
+ let delay_12: number;
770
+ export { delay_12 as delay };
771
+ }
772
+ export { backoff_12 as backoff };
773
+ let delay_13: number;
774
+ export { delay_13 as delay };
775
+ let removeOnComplete_12: number;
776
+ export { removeOnComplete_12 as removeOnComplete };
777
+ let removeOnFail_12: number;
778
+ export { removeOnFail_12 as removeOnFail };
779
+ }
780
+ export { defaultJobOptions_12 as defaultJobOptions };
781
+ export namespace streams_12 {
782
+ export namespace events_12 {
783
+ let maxLen_12: number;
784
+ export { maxLen_12 as maxLen };
785
+ }
786
+ export { events_12 as events };
787
+ }
788
+ export { streams_12 as streams };
789
+ }
790
+ export { queueConfig_12 as queueConfig };
791
+ export namespace workerConfig_12 {
792
+ let concurrency_12: number;
793
+ export { concurrency_12 as concurrency };
794
+ let lockDuration_12: number;
795
+ export { lockDuration_12 as lockDuration };
796
+ let maxStalledCount_12: number;
797
+ export { maxStalledCount_12 as maxStalledCount };
798
+ }
799
+ export { workerConfig_12 as workerConfig };
800
+ }
761
801
  }
762
802
 
763
803
  interface PlatformContextContentItem {
@@ -849,6 +889,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
849
889
  };
850
890
  }) => string;
851
891
 
892
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
893
+ SELF_MANAGED_BASE_CONFIGS?: {
894
+ enable?: boolean;
895
+ [key: string]: any;
896
+ };
897
+ activeTab?: string;
898
+ }) => string;
899
+
900
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
901
+ SELF_MANAGED_BASE_CONFIGS?: {
902
+ enable?: boolean;
903
+ [key: string]: any;
904
+ };
905
+ activeTab?: string;
906
+ }) => string;
907
+
852
908
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
853
909
  groups: any[];
854
910
  type: string;
@@ -2020,4 +2076,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
2020
2076
  };
2021
2077
  }): Object;
2022
2078
 
2023
- 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_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, 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 };
2079
+ 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_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/node.d.ts CHANGED
@@ -676,7 +676,7 @@ declare namespace BASE_BULLMQ_CONFIG {
676
676
  }
677
677
  export { workerConfig_9 as workerConfig };
678
678
  }
679
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
679
+ namespace USERS_ELASTIC_SYNC_QUEUE {
680
680
  let id_10: string;
681
681
  export { id_10 as id };
682
682
  export namespace queueConfig_10 {
@@ -716,7 +716,7 @@ declare namespace BASE_BULLMQ_CONFIG {
716
716
  }
717
717
  export { workerConfig_10 as workerConfig };
718
718
  }
719
- namespace REINDEX_QUEUE {
719
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
720
720
  let id_11: string;
721
721
  export { id_11 as id };
722
722
  export namespace queueConfig_11 {
@@ -730,8 +730,6 @@ declare namespace BASE_BULLMQ_CONFIG {
730
730
  export { delay_11 as delay };
731
731
  }
732
732
  export { backoff_11 as backoff };
733
- let delay_12: number;
734
- export { delay_12 as delay };
735
733
  let removeOnComplete_11: number;
736
734
  export { removeOnComplete_11 as removeOnComplete };
737
735
  let removeOnFail_11: number;
@@ -758,6 +756,48 @@ declare namespace BASE_BULLMQ_CONFIG {
758
756
  }
759
757
  export { workerConfig_11 as workerConfig };
760
758
  }
759
+ namespace REINDEX_QUEUE {
760
+ let id_12: string;
761
+ export { id_12 as id };
762
+ export namespace queueConfig_12 {
763
+ export namespace defaultJobOptions_12 {
764
+ let attempts_12: number;
765
+ export { attempts_12 as attempts };
766
+ export namespace backoff_12 {
767
+ let type_12: string;
768
+ export { type_12 as type };
769
+ let delay_12: number;
770
+ export { delay_12 as delay };
771
+ }
772
+ export { backoff_12 as backoff };
773
+ let delay_13: number;
774
+ export { delay_13 as delay };
775
+ let removeOnComplete_12: number;
776
+ export { removeOnComplete_12 as removeOnComplete };
777
+ let removeOnFail_12: number;
778
+ export { removeOnFail_12 as removeOnFail };
779
+ }
780
+ export { defaultJobOptions_12 as defaultJobOptions };
781
+ export namespace streams_12 {
782
+ export namespace events_12 {
783
+ let maxLen_12: number;
784
+ export { maxLen_12 as maxLen };
785
+ }
786
+ export { events_12 as events };
787
+ }
788
+ export { streams_12 as streams };
789
+ }
790
+ export { queueConfig_12 as queueConfig };
791
+ export namespace workerConfig_12 {
792
+ let concurrency_12: number;
793
+ export { concurrency_12 as concurrency };
794
+ let lockDuration_12: number;
795
+ export { lockDuration_12 as lockDuration };
796
+ let maxStalledCount_12: number;
797
+ export { maxStalledCount_12 as maxStalledCount };
798
+ }
799
+ export { workerConfig_12 as workerConfig };
800
+ }
761
801
  }
762
802
 
763
803
  interface PlatformContextContentItem {
@@ -849,6 +889,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
849
889
  };
850
890
  }) => string;
851
891
 
892
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
893
+ SELF_MANAGED_BASE_CONFIGS?: {
894
+ enable?: boolean;
895
+ [key: string]: any;
896
+ };
897
+ activeTab?: string;
898
+ }) => string;
899
+
900
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
901
+ SELF_MANAGED_BASE_CONFIGS?: {
902
+ enable?: boolean;
903
+ [key: string]: any;
904
+ };
905
+ activeTab?: string;
906
+ }) => string;
907
+
852
908
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
853
909
  groups: any[];
854
910
  type: string;
@@ -2020,4 +2076,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
2020
2076
  };
2021
2077
  }): Object;
2022
2078
 
2023
- 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_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, 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 };
2079
+ 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_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/node.js CHANGED
@@ -321,6 +321,30 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
321
321
  maxStalledCount: 3
322
322
  }
323
323
  },
324
+ USERS_ELASTIC_SYNC_QUEUE: {
325
+ id: "users-elastic-sync-queue",
326
+ queueConfig: {
327
+ defaultJobOptions: {
328
+ attempts: 3,
329
+ backoff: {
330
+ type: "exponential",
331
+ delay: 2e3
332
+ },
333
+ removeOnComplete: 30,
334
+ removeOnFail: 100
335
+ },
336
+ streams: {
337
+ events: {
338
+ maxLen: 10
339
+ }
340
+ }
341
+ },
342
+ workerConfig: {
343
+ concurrency: 50,
344
+ lockDuration: 9e4,
345
+ maxStalledCount: 3
346
+ }
347
+ },
324
348
  CONTENT_ELASTIC_SYNC_QUEUE: {
325
349
  id: "content-elastic-sync-queue",
326
350
  queueConfig: {
@@ -1963,7 +1987,9 @@ __export(node_exports, {
1963
1987
  getRollupPossibilities: () => getRollupPossibilities,
1964
1988
  getRoutePathToEditContent: () => getRoutePathToEditContent,
1965
1989
  getRoutePathToModerateContent: () => getRoutePathToModerateContent,
1990
+ getRoutePathToMyContent: () => getRoutePathToMyContent,
1966
1991
  getRoutePathToPublishedContent: () => getRoutePathToPublishedContent,
1992
+ getRoutePathToReviewDashboard: () => getRoutePathToReviewDashboard,
1967
1993
  getTplModelByTenant: () => import_getModelByTenant2.getTplModelByTenant,
1968
1994
  getVal: () => getVal,
1969
1995
  mergeAnnoDataIntoAnnotationsTags: () => mergeAnnoDataIntoAnnotationsTags,
@@ -2566,6 +2592,20 @@ var getRoutePathToModerateContent = ({
2566
2592
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
2567
2593
  };
2568
2594
 
2595
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
2596
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2597
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2598
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
2599
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2600
+ };
2601
+
2602
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
2603
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2604
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2605
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
2606
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2607
+ };
2608
+
2569
2609
  // src/UI_CONTENT.ts
2570
2610
  var UI_CONTENT = {
2571
2611
  autoGenFilterConfigs: {
@@ -4175,7 +4215,9 @@ var import_GET_GLOBAL_BULLMQ_CONFIG = __toESM(require_GET_GLOBAL_BULLMQ_CONFIG()
4175
4215
  getRollupPossibilities,
4176
4216
  getRoutePathToEditContent,
4177
4217
  getRoutePathToModerateContent,
4218
+ getRoutePathToMyContent,
4178
4219
  getRoutePathToPublishedContent,
4220
+ getRoutePathToReviewDashboard,
4179
4221
  getTplModelByTenant,
4180
4222
  getVal,
4181
4223
  mergeAnnoDataIntoAnnotationsTags,
package/dist/node.mjs CHANGED
@@ -326,6 +326,30 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
326
326
  maxStalledCount: 3
327
327
  }
328
328
  },
329
+ USERS_ELASTIC_SYNC_QUEUE: {
330
+ id: "users-elastic-sync-queue",
331
+ queueConfig: {
332
+ defaultJobOptions: {
333
+ attempts: 3,
334
+ backoff: {
335
+ type: "exponential",
336
+ delay: 2e3
337
+ },
338
+ removeOnComplete: 30,
339
+ removeOnFail: 100
340
+ },
341
+ streams: {
342
+ events: {
343
+ maxLen: 10
344
+ }
345
+ }
346
+ },
347
+ workerConfig: {
348
+ concurrency: 50,
349
+ lockDuration: 9e4,
350
+ maxStalledCount: 3
351
+ }
352
+ },
329
353
  CONTENT_ELASTIC_SYNC_QUEUE: {
330
354
  id: "content-elastic-sync-queue",
331
355
  queueConfig: {
@@ -2509,6 +2533,20 @@ var getRoutePathToModerateContent = ({
2509
2533
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
2510
2534
  };
2511
2535
 
2536
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
2537
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2538
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2539
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
2540
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2541
+ };
2542
+
2543
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
2544
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2545
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2546
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
2547
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2548
+ };
2549
+
2512
2550
  // src/UI_CONTENT.ts
2513
2551
  var UI_CONTENT = {
2514
2552
  autoGenFilterConfigs: {
@@ -4133,7 +4171,9 @@ export {
4133
4171
  getRollupPossibilities,
4134
4172
  getRoutePathToEditContent,
4135
4173
  getRoutePathToModerateContent,
4174
+ getRoutePathToMyContent,
4136
4175
  getRoutePathToPublishedContent,
4176
+ getRoutePathToReviewDashboard,
4137
4177
  export_getTplModelByTenant as getTplModelByTenant,
4138
4178
  getVal,
4139
4179
  mergeAnnoDataIntoAnnotationsTags,
@@ -669,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
669
669
  }
670
670
  export { workerConfig_9 as workerConfig };
671
671
  }
672
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
672
+ namespace USERS_ELASTIC_SYNC_QUEUE {
673
673
  let id_10: string;
674
674
  export { id_10 as id };
675
675
  export namespace queueConfig_10 {
@@ -709,7 +709,7 @@ declare namespace BASE_BULLMQ_CONFIG {
709
709
  }
710
710
  export { workerConfig_10 as workerConfig };
711
711
  }
712
- namespace REINDEX_QUEUE {
712
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
713
713
  let id_11: string;
714
714
  export { id_11 as id };
715
715
  export namespace queueConfig_11 {
@@ -723,8 +723,6 @@ declare namespace BASE_BULLMQ_CONFIG {
723
723
  export { delay_11 as delay };
724
724
  }
725
725
  export { backoff_11 as backoff };
726
- let delay_12: number;
727
- export { delay_12 as delay };
728
726
  let removeOnComplete_11: number;
729
727
  export { removeOnComplete_11 as removeOnComplete };
730
728
  let removeOnFail_11: number;
@@ -751,6 +749,48 @@ declare namespace BASE_BULLMQ_CONFIG {
751
749
  }
752
750
  export { workerConfig_11 as workerConfig };
753
751
  }
752
+ namespace REINDEX_QUEUE {
753
+ let id_12: string;
754
+ export { id_12 as id };
755
+ export namespace queueConfig_12 {
756
+ export namespace defaultJobOptions_12 {
757
+ let attempts_12: number;
758
+ export { attempts_12 as attempts };
759
+ export namespace backoff_12 {
760
+ let type_12: string;
761
+ export { type_12 as type };
762
+ let delay_12: number;
763
+ export { delay_12 as delay };
764
+ }
765
+ export { backoff_12 as backoff };
766
+ let delay_13: number;
767
+ export { delay_13 as delay };
768
+ let removeOnComplete_12: number;
769
+ export { removeOnComplete_12 as removeOnComplete };
770
+ let removeOnFail_12: number;
771
+ export { removeOnFail_12 as removeOnFail };
772
+ }
773
+ export { defaultJobOptions_12 as defaultJobOptions };
774
+ export namespace streams_12 {
775
+ export namespace events_12 {
776
+ let maxLen_12: number;
777
+ export { maxLen_12 as maxLen };
778
+ }
779
+ export { events_12 as events };
780
+ }
781
+ export { streams_12 as streams };
782
+ }
783
+ export { queueConfig_12 as queueConfig };
784
+ export namespace workerConfig_12 {
785
+ let concurrency_12: number;
786
+ export { concurrency_12 as concurrency };
787
+ let lockDuration_12: number;
788
+ export { lockDuration_12 as lockDuration };
789
+ let maxStalledCount_12: number;
790
+ export { maxStalledCount_12 as maxStalledCount };
791
+ }
792
+ export { workerConfig_12 as workerConfig };
793
+ }
754
794
  }
755
795
 
756
796
  interface PlatformContextContentItem {
@@ -842,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
842
882
  };
843
883
  }) => string;
844
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
845
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
846
902
  groups: any[];
847
903
  type: string;
@@ -1283,4 +1339,4 @@ declare const UI_CONTENT: {
1283
1339
  */
1284
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1285
1341
 
1286
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
@@ -669,7 +669,7 @@ declare namespace BASE_BULLMQ_CONFIG {
669
669
  }
670
670
  export { workerConfig_9 as workerConfig };
671
671
  }
672
- namespace CONTENT_ELASTIC_SYNC_QUEUE {
672
+ namespace USERS_ELASTIC_SYNC_QUEUE {
673
673
  let id_10: string;
674
674
  export { id_10 as id };
675
675
  export namespace queueConfig_10 {
@@ -709,7 +709,7 @@ declare namespace BASE_BULLMQ_CONFIG {
709
709
  }
710
710
  export { workerConfig_10 as workerConfig };
711
711
  }
712
- namespace REINDEX_QUEUE {
712
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
713
713
  let id_11: string;
714
714
  export { id_11 as id };
715
715
  export namespace queueConfig_11 {
@@ -723,8 +723,6 @@ declare namespace BASE_BULLMQ_CONFIG {
723
723
  export { delay_11 as delay };
724
724
  }
725
725
  export { backoff_11 as backoff };
726
- let delay_12: number;
727
- export { delay_12 as delay };
728
726
  let removeOnComplete_11: number;
729
727
  export { removeOnComplete_11 as removeOnComplete };
730
728
  let removeOnFail_11: number;
@@ -751,6 +749,48 @@ declare namespace BASE_BULLMQ_CONFIG {
751
749
  }
752
750
  export { workerConfig_11 as workerConfig };
753
751
  }
752
+ namespace REINDEX_QUEUE {
753
+ let id_12: string;
754
+ export { id_12 as id };
755
+ export namespace queueConfig_12 {
756
+ export namespace defaultJobOptions_12 {
757
+ let attempts_12: number;
758
+ export { attempts_12 as attempts };
759
+ export namespace backoff_12 {
760
+ let type_12: string;
761
+ export { type_12 as type };
762
+ let delay_12: number;
763
+ export { delay_12 as delay };
764
+ }
765
+ export { backoff_12 as backoff };
766
+ let delay_13: number;
767
+ export { delay_13 as delay };
768
+ let removeOnComplete_12: number;
769
+ export { removeOnComplete_12 as removeOnComplete };
770
+ let removeOnFail_12: number;
771
+ export { removeOnFail_12 as removeOnFail };
772
+ }
773
+ export { defaultJobOptions_12 as defaultJobOptions };
774
+ export namespace streams_12 {
775
+ export namespace events_12 {
776
+ let maxLen_12: number;
777
+ export { maxLen_12 as maxLen };
778
+ }
779
+ export { events_12 as events };
780
+ }
781
+ export { streams_12 as streams };
782
+ }
783
+ export { queueConfig_12 as queueConfig };
784
+ export namespace workerConfig_12 {
785
+ let concurrency_12: number;
786
+ export { concurrency_12 as concurrency };
787
+ let lockDuration_12: number;
788
+ export { lockDuration_12 as lockDuration };
789
+ let maxStalledCount_12: number;
790
+ export { maxStalledCount_12 as maxStalledCount };
791
+ }
792
+ export { workerConfig_12 as workerConfig };
793
+ }
754
794
  }
755
795
 
756
796
  interface PlatformContextContentItem {
@@ -842,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
842
882
  };
843
883
  }) => string;
844
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
845
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
846
902
  groups: any[];
847
903
  type: string;
@@ -1283,4 +1339,4 @@ declare const UI_CONTENT: {
1283
1339
  */
1284
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1285
1341
 
1286
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/universal.js CHANGED
@@ -42,7 +42,9 @@ __export(universal_exports, {
42
42
  getRollupPossibilities: () => getRollupPossibilities,
43
43
  getRoutePathToEditContent: () => getRoutePathToEditContent,
44
44
  getRoutePathToModerateContent: () => getRoutePathToModerateContent,
45
+ getRoutePathToMyContent: () => getRoutePathToMyContent,
45
46
  getRoutePathToPublishedContent: () => getRoutePathToPublishedContent,
47
+ getRoutePathToReviewDashboard: () => getRoutePathToReviewDashboard,
46
48
  getVal: () => getVal,
47
49
  mergeAnnoDataIntoAnnotationsTags: () => mergeAnnoDataIntoAnnotationsTags,
48
50
  parseSpecialConfigSyntax: () => parseSpecialConfigSyntax,
@@ -737,6 +739,30 @@ var BASE_BULLMQ_CONFIG = {
737
739
  maxStalledCount: 3
738
740
  }
739
741
  },
742
+ USERS_ELASTIC_SYNC_QUEUE: {
743
+ id: "users-elastic-sync-queue",
744
+ queueConfig: {
745
+ defaultJobOptions: {
746
+ attempts: 3,
747
+ backoff: {
748
+ type: "exponential",
749
+ delay: 2e3
750
+ },
751
+ removeOnComplete: 30,
752
+ removeOnFail: 100
753
+ },
754
+ streams: {
755
+ events: {
756
+ maxLen: 10
757
+ }
758
+ }
759
+ },
760
+ workerConfig: {
761
+ concurrency: 50,
762
+ lockDuration: 9e4,
763
+ maxStalledCount: 3
764
+ }
765
+ },
740
766
  CONTENT_ELASTIC_SYNC_QUEUE: {
741
767
  id: "content-elastic-sync-queue",
742
768
  queueConfig: {
@@ -972,6 +998,20 @@ var getRoutePathToModerateContent = ({
972
998
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
973
999
  };
974
1000
 
1001
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
1002
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1003
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1004
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
1005
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1006
+ };
1007
+
1008
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
1009
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1010
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1011
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
1012
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1013
+ };
1014
+
975
1015
  // src/UI_CONTENT.ts
976
1016
  var UI_CONTENT = {
977
1017
  autoGenFilterConfigs: {
@@ -2173,7 +2213,9 @@ var genCleanCamelCaseId = (id) => {
2173
2213
  getRollupPossibilities,
2174
2214
  getRoutePathToEditContent,
2175
2215
  getRoutePathToModerateContent,
2216
+ getRoutePathToMyContent,
2176
2217
  getRoutePathToPublishedContent,
2218
+ getRoutePathToReviewDashboard,
2177
2219
  getVal,
2178
2220
  mergeAnnoDataIntoAnnotationsTags,
2179
2221
  parseSpecialConfigSyntax,
@@ -681,6 +681,30 @@ var BASE_BULLMQ_CONFIG = {
681
681
  maxStalledCount: 3
682
682
  }
683
683
  },
684
+ USERS_ELASTIC_SYNC_QUEUE: {
685
+ id: "users-elastic-sync-queue",
686
+ queueConfig: {
687
+ defaultJobOptions: {
688
+ attempts: 3,
689
+ backoff: {
690
+ type: "exponential",
691
+ delay: 2e3
692
+ },
693
+ removeOnComplete: 30,
694
+ removeOnFail: 100
695
+ },
696
+ streams: {
697
+ events: {
698
+ maxLen: 10
699
+ }
700
+ }
701
+ },
702
+ workerConfig: {
703
+ concurrency: 50,
704
+ lockDuration: 9e4,
705
+ maxStalledCount: 3
706
+ }
707
+ },
684
708
  CONTENT_ELASTIC_SYNC_QUEUE: {
685
709
  id: "content-elastic-sync-queue",
686
710
  queueConfig: {
@@ -916,6 +940,20 @@ var getRoutePathToModerateContent = ({
916
940
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
917
941
  };
918
942
 
943
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
944
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
945
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
946
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
947
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
948
+ };
949
+
950
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
951
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
952
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
953
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
954
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
955
+ };
956
+
919
957
  // src/UI_CONTENT.ts
920
958
  var UI_CONTENT = {
921
959
  autoGenFilterConfigs: {
@@ -2116,7 +2154,9 @@ export {
2116
2154
  getRollupPossibilities,
2117
2155
  getRoutePathToEditContent,
2118
2156
  getRoutePathToModerateContent,
2157
+ getRoutePathToMyContent,
2119
2158
  getRoutePathToPublishedContent,
2159
+ getRoutePathToReviewDashboard,
2120
2160
  getVal,
2121
2161
  mergeAnnoDataIntoAnnotationsTags,
2122
2162
  parseSpecialConfigSyntax,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.28.2",
6
+ "version": "1.28.4",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",