@okf/ootils 1.32.8 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -797,7 +797,7 @@ declare namespace BASE_BULLMQ_CONFIG {
797
797
  }
798
798
  export { workerConfig_12 as workerConfig };
799
799
  }
800
- namespace TAG_SYNC_PLAN_QUEUE {
800
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
801
801
  let id_13: string;
802
802
  export { id_13 as id };
803
803
  export namespace queueConfig_13 {
@@ -837,7 +837,7 @@ declare namespace BASE_BULLMQ_CONFIG {
837
837
  }
838
838
  export { workerConfig_13 as workerConfig };
839
839
  }
840
- namespace TAG_SYNC_BATCH_QUEUE {
840
+ namespace TAG_SYNC_PLAN_QUEUE {
841
841
  let id_14: string;
842
842
  export { id_14 as id };
843
843
  export namespace queueConfig_14 {
@@ -877,7 +877,7 @@ declare namespace BASE_BULLMQ_CONFIG {
877
877
  }
878
878
  export { workerConfig_14 as workerConfig };
879
879
  }
880
- namespace REINDEX_QUEUE {
880
+ namespace TAG_SYNC_BATCH_QUEUE {
881
881
  let id_15: string;
882
882
  export { id_15 as id };
883
883
  export namespace queueConfig_15 {
@@ -891,8 +891,6 @@ declare namespace BASE_BULLMQ_CONFIG {
891
891
  export { delay_15 as delay };
892
892
  }
893
893
  export { backoff_15 as backoff };
894
- let delay_16: number;
895
- export { delay_16 as delay };
896
894
  let removeOnComplete_15: number;
897
895
  export { removeOnComplete_15 as removeOnComplete };
898
896
  let removeOnFail_15: number;
@@ -919,6 +917,48 @@ declare namespace BASE_BULLMQ_CONFIG {
919
917
  }
920
918
  export { workerConfig_15 as workerConfig };
921
919
  }
920
+ namespace REINDEX_QUEUE {
921
+ let id_16: string;
922
+ export { id_16 as id };
923
+ export namespace queueConfig_16 {
924
+ export namespace defaultJobOptions_16 {
925
+ let attempts_16: number;
926
+ export { attempts_16 as attempts };
927
+ export namespace backoff_16 {
928
+ let type_16: string;
929
+ export { type_16 as type };
930
+ let delay_16: number;
931
+ export { delay_16 as delay };
932
+ }
933
+ export { backoff_16 as backoff };
934
+ let delay_17: number;
935
+ export { delay_17 as delay };
936
+ let removeOnComplete_16: number;
937
+ export { removeOnComplete_16 as removeOnComplete };
938
+ let removeOnFail_16: number;
939
+ export { removeOnFail_16 as removeOnFail };
940
+ }
941
+ export { defaultJobOptions_16 as defaultJobOptions };
942
+ export namespace streams_16 {
943
+ export namespace events_16 {
944
+ let maxLen_16: number;
945
+ export { maxLen_16 as maxLen };
946
+ }
947
+ export { events_16 as events };
948
+ }
949
+ export { streams_16 as streams };
950
+ }
951
+ export { queueConfig_16 as queueConfig };
952
+ export namespace workerConfig_16 {
953
+ let concurrency_16: number;
954
+ export { concurrency_16 as concurrency };
955
+ let lockDuration_16: number;
956
+ export { lockDuration_16 as lockDuration };
957
+ let maxStalledCount_16: number;
958
+ export { maxStalledCount_16 as maxStalledCount };
959
+ }
960
+ export { workerConfig_16 as workerConfig };
961
+ }
922
962
  }
923
963
 
924
964
  interface PlatformContextContentItem {
@@ -1203,9 +1243,20 @@ declare const FILTER_IDS: {
1203
1243
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1244
  *
1205
1245
  * Themes -> SubThemes -> Tags
1246
+ *
1247
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1248
+ * renders that level as multiple meta entries (one per tab), each scoping its
1249
+ * options by the tab's findQuery. Selected values still flow through the level's
1250
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1251
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1252
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1253
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1254
  annotationTagsCount: any;
1255
+ attributeThematicTabs?: Array<{
1256
+ key: string;
1257
+ display: string;
1258
+ findQuery: any;
1259
+ }>;
1209
1260
  }) => {
1210
1261
  target: {
1211
1262
  filterType: string;
@@ -1227,6 +1278,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1278
  };
1228
1279
  folderSelectionMode: string;
1229
1280
  hierarchyLevels: (false | {
1281
+ tabs?: {
1282
+ key: string;
1283
+ display: string;
1284
+ findQuery: any;
1285
+ }[] | undefined;
1230
1286
  level: string;
1231
1287
  filterId: string;
1232
1288
  tagType: string;
package/dist/browser.d.ts CHANGED
@@ -797,7 +797,7 @@ declare namespace BASE_BULLMQ_CONFIG {
797
797
  }
798
798
  export { workerConfig_12 as workerConfig };
799
799
  }
800
- namespace TAG_SYNC_PLAN_QUEUE {
800
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
801
801
  let id_13: string;
802
802
  export { id_13 as id };
803
803
  export namespace queueConfig_13 {
@@ -837,7 +837,7 @@ declare namespace BASE_BULLMQ_CONFIG {
837
837
  }
838
838
  export { workerConfig_13 as workerConfig };
839
839
  }
840
- namespace TAG_SYNC_BATCH_QUEUE {
840
+ namespace TAG_SYNC_PLAN_QUEUE {
841
841
  let id_14: string;
842
842
  export { id_14 as id };
843
843
  export namespace queueConfig_14 {
@@ -877,7 +877,7 @@ declare namespace BASE_BULLMQ_CONFIG {
877
877
  }
878
878
  export { workerConfig_14 as workerConfig };
879
879
  }
880
- namespace REINDEX_QUEUE {
880
+ namespace TAG_SYNC_BATCH_QUEUE {
881
881
  let id_15: string;
882
882
  export { id_15 as id };
883
883
  export namespace queueConfig_15 {
@@ -891,8 +891,6 @@ declare namespace BASE_BULLMQ_CONFIG {
891
891
  export { delay_15 as delay };
892
892
  }
893
893
  export { backoff_15 as backoff };
894
- let delay_16: number;
895
- export { delay_16 as delay };
896
894
  let removeOnComplete_15: number;
897
895
  export { removeOnComplete_15 as removeOnComplete };
898
896
  let removeOnFail_15: number;
@@ -919,6 +917,48 @@ declare namespace BASE_BULLMQ_CONFIG {
919
917
  }
920
918
  export { workerConfig_15 as workerConfig };
921
919
  }
920
+ namespace REINDEX_QUEUE {
921
+ let id_16: string;
922
+ export { id_16 as id };
923
+ export namespace queueConfig_16 {
924
+ export namespace defaultJobOptions_16 {
925
+ let attempts_16: number;
926
+ export { attempts_16 as attempts };
927
+ export namespace backoff_16 {
928
+ let type_16: string;
929
+ export { type_16 as type };
930
+ let delay_16: number;
931
+ export { delay_16 as delay };
932
+ }
933
+ export { backoff_16 as backoff };
934
+ let delay_17: number;
935
+ export { delay_17 as delay };
936
+ let removeOnComplete_16: number;
937
+ export { removeOnComplete_16 as removeOnComplete };
938
+ let removeOnFail_16: number;
939
+ export { removeOnFail_16 as removeOnFail };
940
+ }
941
+ export { defaultJobOptions_16 as defaultJobOptions };
942
+ export namespace streams_16 {
943
+ export namespace events_16 {
944
+ let maxLen_16: number;
945
+ export { maxLen_16 as maxLen };
946
+ }
947
+ export { events_16 as events };
948
+ }
949
+ export { streams_16 as streams };
950
+ }
951
+ export { queueConfig_16 as queueConfig };
952
+ export namespace workerConfig_16 {
953
+ let concurrency_16: number;
954
+ export { concurrency_16 as concurrency };
955
+ let lockDuration_16: number;
956
+ export { lockDuration_16 as lockDuration };
957
+ let maxStalledCount_16: number;
958
+ export { maxStalledCount_16 as maxStalledCount };
959
+ }
960
+ export { workerConfig_16 as workerConfig };
961
+ }
922
962
  }
923
963
 
924
964
  interface PlatformContextContentItem {
@@ -1203,9 +1243,20 @@ declare const FILTER_IDS: {
1203
1243
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1244
  *
1205
1245
  * Themes -> SubThemes -> Tags
1246
+ *
1247
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1248
+ * renders that level as multiple meta entries (one per tab), each scoping its
1249
+ * options by the tab's findQuery. Selected values still flow through the level's
1250
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1251
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1252
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1253
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1254
  annotationTagsCount: any;
1255
+ attributeThematicTabs?: Array<{
1256
+ key: string;
1257
+ display: string;
1258
+ findQuery: any;
1259
+ }>;
1209
1260
  }) => {
1210
1261
  target: {
1211
1262
  filterType: string;
@@ -1227,6 +1278,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1278
  };
1228
1279
  folderSelectionMode: string;
1229
1280
  hierarchyLevels: (false | {
1281
+ tabs?: {
1282
+ key: string;
1283
+ display: string;
1284
+ findQuery: any;
1285
+ }[] | undefined;
1230
1286
  level: string;
1231
1287
  filterId: string;
1232
1288
  tagType: string;
package/dist/browser.js CHANGED
@@ -1145,6 +1145,33 @@ var BASE_BULLMQ_CONFIG = {
1145
1145
  maxStalledCount: 3
1146
1146
  }
1147
1147
  },
1148
+ INTERCOM_CONVERSATIONS_QUEUE: {
1149
+ id: "intercom-conversations-queue",
1150
+ queueConfig: {
1151
+ defaultJobOptions: {
1152
+ attempts: 3,
1153
+ backoff: {
1154
+ type: "exponential",
1155
+ delay: 5e3
1156
+ },
1157
+ // Results sit in job.returnvalue until the user finishes column mapping.
1158
+ // Keep a generous buffer so eviction doesn't happen mid-mapping.
1159
+ removeOnComplete: 50,
1160
+ removeOnFail: 200
1161
+ },
1162
+ streams: {
1163
+ events: {
1164
+ maxLen: 10
1165
+ }
1166
+ }
1167
+ },
1168
+ workerConfig: {
1169
+ concurrency: 1,
1170
+ lockDuration: 3e5,
1171
+ // 5 min — large workspaces need time for thread expansion
1172
+ maxStalledCount: 3
1173
+ }
1174
+ },
1148
1175
  TAG_SYNC_PLAN_QUEUE: {
1149
1176
  id: "tag-sync-plan-queue",
1150
1177
  queueConfig: {
@@ -2170,7 +2197,8 @@ var FILTER_IDS = {
2170
2197
  tags: "anno_tags"
2171
2198
  };
2172
2199
  var _self_managed_buildAnnoHierarchyConfig = ({
2173
- annotationTagsCount
2200
+ annotationTagsCount,
2201
+ attributeThematicTabs
2174
2202
  }) => {
2175
2203
  const hasThemes = annotationTagsCount?.themes > 0;
2176
2204
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2180,7 +2208,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2180
2208
  }
2181
2209
  const hierarchyLevels = [
2182
2210
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2183
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2211
+ hasSubThemes && {
2212
+ level: "subThemes",
2213
+ filterId: FILTER_IDS.subThemes,
2214
+ tagType: "subThemes",
2215
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2216
+ },
2184
2217
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2185
2218
  ].filter(Boolean);
2186
2219
  return {
package/dist/browser.mjs CHANGED
@@ -1076,6 +1076,33 @@ var BASE_BULLMQ_CONFIG = {
1076
1076
  maxStalledCount: 3
1077
1077
  }
1078
1078
  },
1079
+ INTERCOM_CONVERSATIONS_QUEUE: {
1080
+ id: "intercom-conversations-queue",
1081
+ queueConfig: {
1082
+ defaultJobOptions: {
1083
+ attempts: 3,
1084
+ backoff: {
1085
+ type: "exponential",
1086
+ delay: 5e3
1087
+ },
1088
+ // Results sit in job.returnvalue until the user finishes column mapping.
1089
+ // Keep a generous buffer so eviction doesn't happen mid-mapping.
1090
+ removeOnComplete: 50,
1091
+ removeOnFail: 200
1092
+ },
1093
+ streams: {
1094
+ events: {
1095
+ maxLen: 10
1096
+ }
1097
+ }
1098
+ },
1099
+ workerConfig: {
1100
+ concurrency: 1,
1101
+ lockDuration: 3e5,
1102
+ // 5 min — large workspaces need time for thread expansion
1103
+ maxStalledCount: 3
1104
+ }
1105
+ },
1079
1106
  TAG_SYNC_PLAN_QUEUE: {
1080
1107
  id: "tag-sync-plan-queue",
1081
1108
  queueConfig: {
@@ -2101,7 +2128,8 @@ var FILTER_IDS = {
2101
2128
  tags: "anno_tags"
2102
2129
  };
2103
2130
  var _self_managed_buildAnnoHierarchyConfig = ({
2104
- annotationTagsCount
2131
+ annotationTagsCount,
2132
+ attributeThematicTabs
2105
2133
  }) => {
2106
2134
  const hasThemes = annotationTagsCount?.themes > 0;
2107
2135
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2111,7 +2139,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2111
2139
  }
2112
2140
  const hierarchyLevels = [
2113
2141
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2114
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2142
+ hasSubThemes && {
2143
+ level: "subThemes",
2144
+ filterId: FILTER_IDS.subThemes,
2145
+ tagType: "subThemes",
2146
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2147
+ },
2115
2148
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2116
2149
  ].filter(Boolean);
2117
2150
  return {
package/dist/node.d.mts CHANGED
@@ -804,7 +804,7 @@ declare namespace BASE_BULLMQ_CONFIG {
804
804
  }
805
805
  export { workerConfig_12 as workerConfig };
806
806
  }
807
- namespace TAG_SYNC_PLAN_QUEUE {
807
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
808
808
  let id_13: string;
809
809
  export { id_13 as id };
810
810
  export namespace queueConfig_13 {
@@ -844,7 +844,7 @@ declare namespace BASE_BULLMQ_CONFIG {
844
844
  }
845
845
  export { workerConfig_13 as workerConfig };
846
846
  }
847
- namespace TAG_SYNC_BATCH_QUEUE {
847
+ namespace TAG_SYNC_PLAN_QUEUE {
848
848
  let id_14: string;
849
849
  export { id_14 as id };
850
850
  export namespace queueConfig_14 {
@@ -884,7 +884,7 @@ declare namespace BASE_BULLMQ_CONFIG {
884
884
  }
885
885
  export { workerConfig_14 as workerConfig };
886
886
  }
887
- namespace REINDEX_QUEUE {
887
+ namespace TAG_SYNC_BATCH_QUEUE {
888
888
  let id_15: string;
889
889
  export { id_15 as id };
890
890
  export namespace queueConfig_15 {
@@ -898,8 +898,6 @@ declare namespace BASE_BULLMQ_CONFIG {
898
898
  export { delay_15 as delay };
899
899
  }
900
900
  export { backoff_15 as backoff };
901
- let delay_16: number;
902
- export { delay_16 as delay };
903
901
  let removeOnComplete_15: number;
904
902
  export { removeOnComplete_15 as removeOnComplete };
905
903
  let removeOnFail_15: number;
@@ -926,6 +924,48 @@ declare namespace BASE_BULLMQ_CONFIG {
926
924
  }
927
925
  export { workerConfig_15 as workerConfig };
928
926
  }
927
+ namespace REINDEX_QUEUE {
928
+ let id_16: string;
929
+ export { id_16 as id };
930
+ export namespace queueConfig_16 {
931
+ export namespace defaultJobOptions_16 {
932
+ let attempts_16: number;
933
+ export { attempts_16 as attempts };
934
+ export namespace backoff_16 {
935
+ let type_16: string;
936
+ export { type_16 as type };
937
+ let delay_16: number;
938
+ export { delay_16 as delay };
939
+ }
940
+ export { backoff_16 as backoff };
941
+ let delay_17: number;
942
+ export { delay_17 as delay };
943
+ let removeOnComplete_16: number;
944
+ export { removeOnComplete_16 as removeOnComplete };
945
+ let removeOnFail_16: number;
946
+ export { removeOnFail_16 as removeOnFail };
947
+ }
948
+ export { defaultJobOptions_16 as defaultJobOptions };
949
+ export namespace streams_16 {
950
+ export namespace events_16 {
951
+ let maxLen_16: number;
952
+ export { maxLen_16 as maxLen };
953
+ }
954
+ export { events_16 as events };
955
+ }
956
+ export { streams_16 as streams };
957
+ }
958
+ export { queueConfig_16 as queueConfig };
959
+ export namespace workerConfig_16 {
960
+ let concurrency_16: number;
961
+ export { concurrency_16 as concurrency };
962
+ let lockDuration_16: number;
963
+ export { lockDuration_16 as lockDuration };
964
+ let maxStalledCount_16: number;
965
+ export { maxStalledCount_16 as maxStalledCount };
966
+ }
967
+ export { workerConfig_16 as workerConfig };
968
+ }
929
969
  }
930
970
 
931
971
  interface PlatformContextContentItem {
@@ -1210,9 +1250,20 @@ declare const FILTER_IDS: {
1210
1250
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1211
1251
  *
1212
1252
  * Themes -> SubThemes -> Tags
1253
+ *
1254
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1255
+ * renders that level as multiple meta entries (one per tab), each scoping its
1256
+ * options by the tab's findQuery. Selected values still flow through the level's
1257
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1258
+ * when EXPERIMENTAL_newTopicModelling is on.
1213
1259
  */
1214
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1260
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1215
1261
  annotationTagsCount: any;
1262
+ attributeThematicTabs?: Array<{
1263
+ key: string;
1264
+ display: string;
1265
+ findQuery: any;
1266
+ }>;
1216
1267
  }) => {
1217
1268
  target: {
1218
1269
  filterType: string;
@@ -1234,6 +1285,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1234
1285
  };
1235
1286
  folderSelectionMode: string;
1236
1287
  hierarchyLevels: (false | {
1288
+ tabs?: {
1289
+ key: string;
1290
+ display: string;
1291
+ findQuery: any;
1292
+ }[] | undefined;
1237
1293
  level: string;
1238
1294
  filterId: string;
1239
1295
  tagType: string;
package/dist/node.d.ts CHANGED
@@ -804,7 +804,7 @@ declare namespace BASE_BULLMQ_CONFIG {
804
804
  }
805
805
  export { workerConfig_12 as workerConfig };
806
806
  }
807
- namespace TAG_SYNC_PLAN_QUEUE {
807
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
808
808
  let id_13: string;
809
809
  export { id_13 as id };
810
810
  export namespace queueConfig_13 {
@@ -844,7 +844,7 @@ declare namespace BASE_BULLMQ_CONFIG {
844
844
  }
845
845
  export { workerConfig_13 as workerConfig };
846
846
  }
847
- namespace TAG_SYNC_BATCH_QUEUE {
847
+ namespace TAG_SYNC_PLAN_QUEUE {
848
848
  let id_14: string;
849
849
  export { id_14 as id };
850
850
  export namespace queueConfig_14 {
@@ -884,7 +884,7 @@ declare namespace BASE_BULLMQ_CONFIG {
884
884
  }
885
885
  export { workerConfig_14 as workerConfig };
886
886
  }
887
- namespace REINDEX_QUEUE {
887
+ namespace TAG_SYNC_BATCH_QUEUE {
888
888
  let id_15: string;
889
889
  export { id_15 as id };
890
890
  export namespace queueConfig_15 {
@@ -898,8 +898,6 @@ declare namespace BASE_BULLMQ_CONFIG {
898
898
  export { delay_15 as delay };
899
899
  }
900
900
  export { backoff_15 as backoff };
901
- let delay_16: number;
902
- export { delay_16 as delay };
903
901
  let removeOnComplete_15: number;
904
902
  export { removeOnComplete_15 as removeOnComplete };
905
903
  let removeOnFail_15: number;
@@ -926,6 +924,48 @@ declare namespace BASE_BULLMQ_CONFIG {
926
924
  }
927
925
  export { workerConfig_15 as workerConfig };
928
926
  }
927
+ namespace REINDEX_QUEUE {
928
+ let id_16: string;
929
+ export { id_16 as id };
930
+ export namespace queueConfig_16 {
931
+ export namespace defaultJobOptions_16 {
932
+ let attempts_16: number;
933
+ export { attempts_16 as attempts };
934
+ export namespace backoff_16 {
935
+ let type_16: string;
936
+ export { type_16 as type };
937
+ let delay_16: number;
938
+ export { delay_16 as delay };
939
+ }
940
+ export { backoff_16 as backoff };
941
+ let delay_17: number;
942
+ export { delay_17 as delay };
943
+ let removeOnComplete_16: number;
944
+ export { removeOnComplete_16 as removeOnComplete };
945
+ let removeOnFail_16: number;
946
+ export { removeOnFail_16 as removeOnFail };
947
+ }
948
+ export { defaultJobOptions_16 as defaultJobOptions };
949
+ export namespace streams_16 {
950
+ export namespace events_16 {
951
+ let maxLen_16: number;
952
+ export { maxLen_16 as maxLen };
953
+ }
954
+ export { events_16 as events };
955
+ }
956
+ export { streams_16 as streams };
957
+ }
958
+ export { queueConfig_16 as queueConfig };
959
+ export namespace workerConfig_16 {
960
+ let concurrency_16: number;
961
+ export { concurrency_16 as concurrency };
962
+ let lockDuration_16: number;
963
+ export { lockDuration_16 as lockDuration };
964
+ let maxStalledCount_16: number;
965
+ export { maxStalledCount_16 as maxStalledCount };
966
+ }
967
+ export { workerConfig_16 as workerConfig };
968
+ }
929
969
  }
930
970
 
931
971
  interface PlatformContextContentItem {
@@ -1210,9 +1250,20 @@ declare const FILTER_IDS: {
1210
1250
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1211
1251
  *
1212
1252
  * Themes -> SubThemes -> Tags
1253
+ *
1254
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1255
+ * renders that level as multiple meta entries (one per tab), each scoping its
1256
+ * options by the tab's findQuery. Selected values still flow through the level's
1257
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1258
+ * when EXPERIMENTAL_newTopicModelling is on.
1213
1259
  */
1214
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1260
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1215
1261
  annotationTagsCount: any;
1262
+ attributeThematicTabs?: Array<{
1263
+ key: string;
1264
+ display: string;
1265
+ findQuery: any;
1266
+ }>;
1216
1267
  }) => {
1217
1268
  target: {
1218
1269
  filterType: string;
@@ -1234,6 +1285,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1234
1285
  };
1235
1286
  folderSelectionMode: string;
1236
1287
  hierarchyLevels: (false | {
1288
+ tabs?: {
1289
+ key: string;
1290
+ display: string;
1291
+ findQuery: any;
1292
+ }[] | undefined;
1237
1293
  level: string;
1238
1294
  filterId: string;
1239
1295
  tagType: string;
package/dist/node.js CHANGED
@@ -402,6 +402,33 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
402
402
  maxStalledCount: 3
403
403
  }
404
404
  },
405
+ INTERCOM_CONVERSATIONS_QUEUE: {
406
+ id: "intercom-conversations-queue",
407
+ queueConfig: {
408
+ defaultJobOptions: {
409
+ attempts: 3,
410
+ backoff: {
411
+ type: "exponential",
412
+ delay: 5e3
413
+ },
414
+ // Results sit in job.returnvalue until the user finishes column mapping.
415
+ // Keep a generous buffer so eviction doesn't happen mid-mapping.
416
+ removeOnComplete: 50,
417
+ removeOnFail: 200
418
+ },
419
+ streams: {
420
+ events: {
421
+ maxLen: 10
422
+ }
423
+ }
424
+ },
425
+ workerConfig: {
426
+ concurrency: 1,
427
+ lockDuration: 3e5,
428
+ // 5 min — large workspaces need time for thread expansion
429
+ maxStalledCount: 3
430
+ }
431
+ },
405
432
  TAG_SYNC_PLAN_QUEUE: {
406
433
  id: "tag-sync-plan-queue",
407
434
  queueConfig: {
@@ -3768,7 +3795,8 @@ var FILTER_IDS = {
3768
3795
  tags: "anno_tags"
3769
3796
  };
3770
3797
  var _self_managed_buildAnnoHierarchyConfig = ({
3771
- annotationTagsCount
3798
+ annotationTagsCount,
3799
+ attributeThematicTabs
3772
3800
  }) => {
3773
3801
  const hasThemes = annotationTagsCount?.themes > 0;
3774
3802
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -3778,7 +3806,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
3778
3806
  }
3779
3807
  const hierarchyLevels = [
3780
3808
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
3781
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
3809
+ hasSubThemes && {
3810
+ level: "subThemes",
3811
+ filterId: FILTER_IDS.subThemes,
3812
+ tagType: "subThemes",
3813
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
3814
+ },
3782
3815
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
3783
3816
  ].filter(Boolean);
3784
3817
  return {
package/dist/node.mjs CHANGED
@@ -407,6 +407,33 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
407
407
  maxStalledCount: 3
408
408
  }
409
409
  },
410
+ INTERCOM_CONVERSATIONS_QUEUE: {
411
+ id: "intercom-conversations-queue",
412
+ queueConfig: {
413
+ defaultJobOptions: {
414
+ attempts: 3,
415
+ backoff: {
416
+ type: "exponential",
417
+ delay: 5e3
418
+ },
419
+ // Results sit in job.returnvalue until the user finishes column mapping.
420
+ // Keep a generous buffer so eviction doesn't happen mid-mapping.
421
+ removeOnComplete: 50,
422
+ removeOnFail: 200
423
+ },
424
+ streams: {
425
+ events: {
426
+ maxLen: 10
427
+ }
428
+ }
429
+ },
430
+ workerConfig: {
431
+ concurrency: 1,
432
+ lockDuration: 3e5,
433
+ // 5 min — large workspaces need time for thread expansion
434
+ maxStalledCount: 3
435
+ }
436
+ },
410
437
  TAG_SYNC_PLAN_QUEUE: {
411
438
  id: "tag-sync-plan-queue",
412
439
  queueConfig: {
@@ -3698,7 +3725,8 @@ var FILTER_IDS = {
3698
3725
  tags: "anno_tags"
3699
3726
  };
3700
3727
  var _self_managed_buildAnnoHierarchyConfig = ({
3701
- annotationTagsCount
3728
+ annotationTagsCount,
3729
+ attributeThematicTabs
3702
3730
  }) => {
3703
3731
  const hasThemes = annotationTagsCount?.themes > 0;
3704
3732
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -3708,7 +3736,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
3708
3736
  }
3709
3737
  const hierarchyLevels = [
3710
3738
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
3711
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
3739
+ hasSubThemes && {
3740
+ level: "subThemes",
3741
+ filterId: FILTER_IDS.subThemes,
3742
+ tagType: "subThemes",
3743
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
3744
+ },
3712
3745
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
3713
3746
  ].filter(Boolean);
3714
3747
  return {
@@ -797,7 +797,7 @@ declare namespace BASE_BULLMQ_CONFIG {
797
797
  }
798
798
  export { workerConfig_12 as workerConfig };
799
799
  }
800
- namespace TAG_SYNC_PLAN_QUEUE {
800
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
801
801
  let id_13: string;
802
802
  export { id_13 as id };
803
803
  export namespace queueConfig_13 {
@@ -837,7 +837,7 @@ declare namespace BASE_BULLMQ_CONFIG {
837
837
  }
838
838
  export { workerConfig_13 as workerConfig };
839
839
  }
840
- namespace TAG_SYNC_BATCH_QUEUE {
840
+ namespace TAG_SYNC_PLAN_QUEUE {
841
841
  let id_14: string;
842
842
  export { id_14 as id };
843
843
  export namespace queueConfig_14 {
@@ -877,7 +877,7 @@ declare namespace BASE_BULLMQ_CONFIG {
877
877
  }
878
878
  export { workerConfig_14 as workerConfig };
879
879
  }
880
- namespace REINDEX_QUEUE {
880
+ namespace TAG_SYNC_BATCH_QUEUE {
881
881
  let id_15: string;
882
882
  export { id_15 as id };
883
883
  export namespace queueConfig_15 {
@@ -891,8 +891,6 @@ declare namespace BASE_BULLMQ_CONFIG {
891
891
  export { delay_15 as delay };
892
892
  }
893
893
  export { backoff_15 as backoff };
894
- let delay_16: number;
895
- export { delay_16 as delay };
896
894
  let removeOnComplete_15: number;
897
895
  export { removeOnComplete_15 as removeOnComplete };
898
896
  let removeOnFail_15: number;
@@ -919,6 +917,48 @@ declare namespace BASE_BULLMQ_CONFIG {
919
917
  }
920
918
  export { workerConfig_15 as workerConfig };
921
919
  }
920
+ namespace REINDEX_QUEUE {
921
+ let id_16: string;
922
+ export { id_16 as id };
923
+ export namespace queueConfig_16 {
924
+ export namespace defaultJobOptions_16 {
925
+ let attempts_16: number;
926
+ export { attempts_16 as attempts };
927
+ export namespace backoff_16 {
928
+ let type_16: string;
929
+ export { type_16 as type };
930
+ let delay_16: number;
931
+ export { delay_16 as delay };
932
+ }
933
+ export { backoff_16 as backoff };
934
+ let delay_17: number;
935
+ export { delay_17 as delay };
936
+ let removeOnComplete_16: number;
937
+ export { removeOnComplete_16 as removeOnComplete };
938
+ let removeOnFail_16: number;
939
+ export { removeOnFail_16 as removeOnFail };
940
+ }
941
+ export { defaultJobOptions_16 as defaultJobOptions };
942
+ export namespace streams_16 {
943
+ export namespace events_16 {
944
+ let maxLen_16: number;
945
+ export { maxLen_16 as maxLen };
946
+ }
947
+ export { events_16 as events };
948
+ }
949
+ export { streams_16 as streams };
950
+ }
951
+ export { queueConfig_16 as queueConfig };
952
+ export namespace workerConfig_16 {
953
+ let concurrency_16: number;
954
+ export { concurrency_16 as concurrency };
955
+ let lockDuration_16: number;
956
+ export { lockDuration_16 as lockDuration };
957
+ let maxStalledCount_16: number;
958
+ export { maxStalledCount_16 as maxStalledCount };
959
+ }
960
+ export { workerConfig_16 as workerConfig };
961
+ }
922
962
  }
923
963
 
924
964
  interface PlatformContextContentItem {
@@ -1203,9 +1243,20 @@ declare const FILTER_IDS: {
1203
1243
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1244
  *
1205
1245
  * Themes -> SubThemes -> Tags
1246
+ *
1247
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1248
+ * renders that level as multiple meta entries (one per tab), each scoping its
1249
+ * options by the tab's findQuery. Selected values still flow through the level's
1250
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1251
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1252
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1253
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1254
  annotationTagsCount: any;
1255
+ attributeThematicTabs?: Array<{
1256
+ key: string;
1257
+ display: string;
1258
+ findQuery: any;
1259
+ }>;
1209
1260
  }) => {
1210
1261
  target: {
1211
1262
  filterType: string;
@@ -1227,6 +1278,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1278
  };
1228
1279
  folderSelectionMode: string;
1229
1280
  hierarchyLevels: (false | {
1281
+ tabs?: {
1282
+ key: string;
1283
+ display: string;
1284
+ findQuery: any;
1285
+ }[] | undefined;
1230
1286
  level: string;
1231
1287
  filterId: string;
1232
1288
  tagType: string;
@@ -797,7 +797,7 @@ declare namespace BASE_BULLMQ_CONFIG {
797
797
  }
798
798
  export { workerConfig_12 as workerConfig };
799
799
  }
800
- namespace TAG_SYNC_PLAN_QUEUE {
800
+ namespace INTERCOM_CONVERSATIONS_QUEUE {
801
801
  let id_13: string;
802
802
  export { id_13 as id };
803
803
  export namespace queueConfig_13 {
@@ -837,7 +837,7 @@ declare namespace BASE_BULLMQ_CONFIG {
837
837
  }
838
838
  export { workerConfig_13 as workerConfig };
839
839
  }
840
- namespace TAG_SYNC_BATCH_QUEUE {
840
+ namespace TAG_SYNC_PLAN_QUEUE {
841
841
  let id_14: string;
842
842
  export { id_14 as id };
843
843
  export namespace queueConfig_14 {
@@ -877,7 +877,7 @@ declare namespace BASE_BULLMQ_CONFIG {
877
877
  }
878
878
  export { workerConfig_14 as workerConfig };
879
879
  }
880
- namespace REINDEX_QUEUE {
880
+ namespace TAG_SYNC_BATCH_QUEUE {
881
881
  let id_15: string;
882
882
  export { id_15 as id };
883
883
  export namespace queueConfig_15 {
@@ -891,8 +891,6 @@ declare namespace BASE_BULLMQ_CONFIG {
891
891
  export { delay_15 as delay };
892
892
  }
893
893
  export { backoff_15 as backoff };
894
- let delay_16: number;
895
- export { delay_16 as delay };
896
894
  let removeOnComplete_15: number;
897
895
  export { removeOnComplete_15 as removeOnComplete };
898
896
  let removeOnFail_15: number;
@@ -919,6 +917,48 @@ declare namespace BASE_BULLMQ_CONFIG {
919
917
  }
920
918
  export { workerConfig_15 as workerConfig };
921
919
  }
920
+ namespace REINDEX_QUEUE {
921
+ let id_16: string;
922
+ export { id_16 as id };
923
+ export namespace queueConfig_16 {
924
+ export namespace defaultJobOptions_16 {
925
+ let attempts_16: number;
926
+ export { attempts_16 as attempts };
927
+ export namespace backoff_16 {
928
+ let type_16: string;
929
+ export { type_16 as type };
930
+ let delay_16: number;
931
+ export { delay_16 as delay };
932
+ }
933
+ export { backoff_16 as backoff };
934
+ let delay_17: number;
935
+ export { delay_17 as delay };
936
+ let removeOnComplete_16: number;
937
+ export { removeOnComplete_16 as removeOnComplete };
938
+ let removeOnFail_16: number;
939
+ export { removeOnFail_16 as removeOnFail };
940
+ }
941
+ export { defaultJobOptions_16 as defaultJobOptions };
942
+ export namespace streams_16 {
943
+ export namespace events_16 {
944
+ let maxLen_16: number;
945
+ export { maxLen_16 as maxLen };
946
+ }
947
+ export { events_16 as events };
948
+ }
949
+ export { streams_16 as streams };
950
+ }
951
+ export { queueConfig_16 as queueConfig };
952
+ export namespace workerConfig_16 {
953
+ let concurrency_16: number;
954
+ export { concurrency_16 as concurrency };
955
+ let lockDuration_16: number;
956
+ export { lockDuration_16 as lockDuration };
957
+ let maxStalledCount_16: number;
958
+ export { maxStalledCount_16 as maxStalledCount };
959
+ }
960
+ export { workerConfig_16 as workerConfig };
961
+ }
922
962
  }
923
963
 
924
964
  interface PlatformContextContentItem {
@@ -1203,9 +1243,20 @@ declare const FILTER_IDS: {
1203
1243
  * Replaces separate Themes, SubThemes, Tags filters with one consolidated hierarchy UI.
1204
1244
  *
1205
1245
  * Themes -> SubThemes -> Tags
1246
+ *
1247
+ * A hierarchy level may carry a `tabs` array, in which case AnnoHierarchyFilter
1248
+ * renders that level as multiple meta entries (one per tab), each scoping its
1249
+ * options by the tab's findQuery. Selected values still flow through the level's
1250
+ * single filterId. Currently used to split sub-themes into Thematics + Attributes
1251
+ * when EXPERIMENTAL_newTopicModelling is on.
1206
1252
  */
1207
- declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }: {
1253
+ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, attributeThematicTabs, }: {
1208
1254
  annotationTagsCount: any;
1255
+ attributeThematicTabs?: Array<{
1256
+ key: string;
1257
+ display: string;
1258
+ findQuery: any;
1259
+ }>;
1209
1260
  }) => {
1210
1261
  target: {
1211
1262
  filterType: string;
@@ -1227,6 +1278,11 @@ declare const _self_managed_buildAnnoHierarchyConfig: ({ annotationTagsCount, }:
1227
1278
  };
1228
1279
  folderSelectionMode: string;
1229
1280
  hierarchyLevels: (false | {
1281
+ tabs?: {
1282
+ key: string;
1283
+ display: string;
1284
+ findQuery: any;
1285
+ }[] | undefined;
1230
1286
  level: string;
1231
1287
  filterId: string;
1232
1288
  tagType: string;
package/dist/universal.js CHANGED
@@ -1145,6 +1145,33 @@ var BASE_BULLMQ_CONFIG = {
1145
1145
  maxStalledCount: 3
1146
1146
  }
1147
1147
  },
1148
+ INTERCOM_CONVERSATIONS_QUEUE: {
1149
+ id: "intercom-conversations-queue",
1150
+ queueConfig: {
1151
+ defaultJobOptions: {
1152
+ attempts: 3,
1153
+ backoff: {
1154
+ type: "exponential",
1155
+ delay: 5e3
1156
+ },
1157
+ // Results sit in job.returnvalue until the user finishes column mapping.
1158
+ // Keep a generous buffer so eviction doesn't happen mid-mapping.
1159
+ removeOnComplete: 50,
1160
+ removeOnFail: 200
1161
+ },
1162
+ streams: {
1163
+ events: {
1164
+ maxLen: 10
1165
+ }
1166
+ }
1167
+ },
1168
+ workerConfig: {
1169
+ concurrency: 1,
1170
+ lockDuration: 3e5,
1171
+ // 5 min — large workspaces need time for thread expansion
1172
+ maxStalledCount: 3
1173
+ }
1174
+ },
1148
1175
  TAG_SYNC_PLAN_QUEUE: {
1149
1176
  id: "tag-sync-plan-queue",
1150
1177
  queueConfig: {
@@ -2170,7 +2197,8 @@ var FILTER_IDS = {
2170
2197
  tags: "anno_tags"
2171
2198
  };
2172
2199
  var _self_managed_buildAnnoHierarchyConfig = ({
2173
- annotationTagsCount
2200
+ annotationTagsCount,
2201
+ attributeThematicTabs
2174
2202
  }) => {
2175
2203
  const hasThemes = annotationTagsCount?.themes > 0;
2176
2204
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2180,7 +2208,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2180
2208
  }
2181
2209
  const hierarchyLevels = [
2182
2210
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2183
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2211
+ hasSubThemes && {
2212
+ level: "subThemes",
2213
+ filterId: FILTER_IDS.subThemes,
2214
+ tagType: "subThemes",
2215
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2216
+ },
2184
2217
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2185
2218
  ].filter(Boolean);
2186
2219
  return {
@@ -1076,6 +1076,33 @@ var BASE_BULLMQ_CONFIG = {
1076
1076
  maxStalledCount: 3
1077
1077
  }
1078
1078
  },
1079
+ INTERCOM_CONVERSATIONS_QUEUE: {
1080
+ id: "intercom-conversations-queue",
1081
+ queueConfig: {
1082
+ defaultJobOptions: {
1083
+ attempts: 3,
1084
+ backoff: {
1085
+ type: "exponential",
1086
+ delay: 5e3
1087
+ },
1088
+ // Results sit in job.returnvalue until the user finishes column mapping.
1089
+ // Keep a generous buffer so eviction doesn't happen mid-mapping.
1090
+ removeOnComplete: 50,
1091
+ removeOnFail: 200
1092
+ },
1093
+ streams: {
1094
+ events: {
1095
+ maxLen: 10
1096
+ }
1097
+ }
1098
+ },
1099
+ workerConfig: {
1100
+ concurrency: 1,
1101
+ lockDuration: 3e5,
1102
+ // 5 min — large workspaces need time for thread expansion
1103
+ maxStalledCount: 3
1104
+ }
1105
+ },
1079
1106
  TAG_SYNC_PLAN_QUEUE: {
1080
1107
  id: "tag-sync-plan-queue",
1081
1108
  queueConfig: {
@@ -2101,7 +2128,8 @@ var FILTER_IDS = {
2101
2128
  tags: "anno_tags"
2102
2129
  };
2103
2130
  var _self_managed_buildAnnoHierarchyConfig = ({
2104
- annotationTagsCount
2131
+ annotationTagsCount,
2132
+ attributeThematicTabs
2105
2133
  }) => {
2106
2134
  const hasThemes = annotationTagsCount?.themes > 0;
2107
2135
  const hasSubThemes = annotationTagsCount?.subThemes > 0;
@@ -2111,7 +2139,12 @@ var _self_managed_buildAnnoHierarchyConfig = ({
2111
2139
  }
2112
2140
  const hierarchyLevels = [
2113
2141
  hasThemes && { level: "themes", filterId: FILTER_IDS.themes, tagType: "themes" },
2114
- hasSubThemes && { level: "subThemes", filterId: FILTER_IDS.subThemes, tagType: "subThemes" },
2142
+ hasSubThemes && {
2143
+ level: "subThemes",
2144
+ filterId: FILTER_IDS.subThemes,
2145
+ tagType: "subThemes",
2146
+ ...attributeThematicTabs ? { tabs: attributeThematicTabs } : {}
2147
+ },
2115
2148
  hasTags && { level: "tags", filterId: FILTER_IDS.tags, tagType: "tags" }
2116
2149
  ].filter(Boolean);
2117
2150
  return {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.32.8",
6
+ "version": "1.34.0",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",