@okf/ootils 1.35.0 → 1.36.1
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 +55 -5
- package/dist/browser.d.ts +55 -5
- package/dist/browser.js +62 -22
- package/dist/browser.mjs +62 -22
- package/dist/node.d.mts +55 -5
- package/dist/node.d.ts +55 -5
- package/dist/node.js +62 -22
- package/dist/node.mjs +62 -22
- package/dist/universal.d.mts +55 -5
- package/dist/universal.d.ts +55 -5
- package/dist/universal.js +62 -22
- package/dist/universal.mjs +62 -22
- package/package.json +1 -1
package/dist/browser.d.mts
CHANGED
|
@@ -917,13 +917,11 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
917
917
|
}
|
|
918
918
|
export { workerConfig_15 as workerConfig };
|
|
919
919
|
}
|
|
920
|
-
namespace
|
|
920
|
+
namespace SCHEDULED_EXTERNAL_SYNC_QUEUE {
|
|
921
921
|
let id_16: string;
|
|
922
922
|
export { id_16 as id };
|
|
923
923
|
export namespace queueConfig_16 {
|
|
924
924
|
export namespace defaultJobOptions_16 {
|
|
925
|
-
let attempts_16: number;
|
|
926
|
-
export { attempts_16 as attempts };
|
|
927
925
|
export namespace backoff_16 {
|
|
928
926
|
let type_16: string;
|
|
929
927
|
export { type_16 as type };
|
|
@@ -931,8 +929,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
931
929
|
export { delay_16 as delay };
|
|
932
930
|
}
|
|
933
931
|
export { backoff_16 as backoff };
|
|
934
|
-
let
|
|
935
|
-
export {
|
|
932
|
+
let attempts_16: number;
|
|
933
|
+
export { attempts_16 as attempts };
|
|
936
934
|
let removeOnComplete_16: number;
|
|
937
935
|
export { removeOnComplete_16 as removeOnComplete };
|
|
938
936
|
let removeOnFail_16: number;
|
|
@@ -959,6 +957,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
959
957
|
}
|
|
960
958
|
export { workerConfig_16 as workerConfig };
|
|
961
959
|
}
|
|
960
|
+
namespace REINDEX_QUEUE {
|
|
961
|
+
let id_17: string;
|
|
962
|
+
export { id_17 as id };
|
|
963
|
+
export namespace queueConfig_17 {
|
|
964
|
+
export namespace defaultJobOptions_17 {
|
|
965
|
+
let attempts_17: number;
|
|
966
|
+
export { attempts_17 as attempts };
|
|
967
|
+
export namespace backoff_17 {
|
|
968
|
+
let type_17: string;
|
|
969
|
+
export { type_17 as type };
|
|
970
|
+
let delay_17: number;
|
|
971
|
+
export { delay_17 as delay };
|
|
972
|
+
}
|
|
973
|
+
export { backoff_17 as backoff };
|
|
974
|
+
let delay_18: number;
|
|
975
|
+
export { delay_18 as delay };
|
|
976
|
+
let removeOnComplete_17: number;
|
|
977
|
+
export { removeOnComplete_17 as removeOnComplete };
|
|
978
|
+
let removeOnFail_17: number;
|
|
979
|
+
export { removeOnFail_17 as removeOnFail };
|
|
980
|
+
}
|
|
981
|
+
export { defaultJobOptions_17 as defaultJobOptions };
|
|
982
|
+
export namespace streams_17 {
|
|
983
|
+
export namespace events_17 {
|
|
984
|
+
let maxLen_17: number;
|
|
985
|
+
export { maxLen_17 as maxLen };
|
|
986
|
+
}
|
|
987
|
+
export { events_17 as events };
|
|
988
|
+
}
|
|
989
|
+
export { streams_17 as streams };
|
|
990
|
+
}
|
|
991
|
+
export { queueConfig_17 as queueConfig };
|
|
992
|
+
export namespace workerConfig_17 {
|
|
993
|
+
let concurrency_17: number;
|
|
994
|
+
export { concurrency_17 as concurrency };
|
|
995
|
+
let lockDuration_17: number;
|
|
996
|
+
export { lockDuration_17 as lockDuration };
|
|
997
|
+
let maxStalledCount_17: number;
|
|
998
|
+
export { maxStalledCount_17 as maxStalledCount };
|
|
999
|
+
}
|
|
1000
|
+
export { workerConfig_17 as workerConfig };
|
|
1001
|
+
}
|
|
962
1002
|
}
|
|
963
1003
|
|
|
964
1004
|
interface PlatformContextContentItem {
|
|
@@ -1145,6 +1185,10 @@ declare const processAuthorAndCommonFilters: (allTpls: any[], filterScopes: stri
|
|
|
1145
1185
|
source: {
|
|
1146
1186
|
filterType: string;
|
|
1147
1187
|
profileTypes: any[];
|
|
1188
|
+
pinnedOptions: {
|
|
1189
|
+
display: string;
|
|
1190
|
+
value: null;
|
|
1191
|
+
}[];
|
|
1148
1192
|
options?: undefined;
|
|
1149
1193
|
};
|
|
1150
1194
|
target: {
|
|
@@ -1164,6 +1208,7 @@ declare const processAuthorAndCommonFilters: (allTpls: any[], filterScopes: stri
|
|
|
1164
1208
|
value: any;
|
|
1165
1209
|
}[];
|
|
1166
1210
|
profileTypes?: undefined;
|
|
1211
|
+
pinnedOptions?: undefined;
|
|
1167
1212
|
};
|
|
1168
1213
|
target: {
|
|
1169
1214
|
filterType: string;
|
|
@@ -1430,6 +1475,10 @@ declare const autoGenFilterConfigsFromTpl: ({ selectedTpls, allTpls, filterScope
|
|
|
1430
1475
|
source: {
|
|
1431
1476
|
filterType: string;
|
|
1432
1477
|
profileTypes: any[];
|
|
1478
|
+
pinnedOptions: {
|
|
1479
|
+
display: string;
|
|
1480
|
+
value: null;
|
|
1481
|
+
}[];
|
|
1433
1482
|
options?: undefined;
|
|
1434
1483
|
};
|
|
1435
1484
|
target: {
|
|
@@ -1449,6 +1498,7 @@ declare const autoGenFilterConfigsFromTpl: ({ selectedTpls, allTpls, filterScope
|
|
|
1449
1498
|
value: any;
|
|
1450
1499
|
}[];
|
|
1451
1500
|
profileTypes?: undefined;
|
|
1501
|
+
pinnedOptions?: undefined;
|
|
1452
1502
|
};
|
|
1453
1503
|
target: {
|
|
1454
1504
|
filterType: string;
|
package/dist/browser.d.ts
CHANGED
|
@@ -917,13 +917,11 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
917
917
|
}
|
|
918
918
|
export { workerConfig_15 as workerConfig };
|
|
919
919
|
}
|
|
920
|
-
namespace
|
|
920
|
+
namespace SCHEDULED_EXTERNAL_SYNC_QUEUE {
|
|
921
921
|
let id_16: string;
|
|
922
922
|
export { id_16 as id };
|
|
923
923
|
export namespace queueConfig_16 {
|
|
924
924
|
export namespace defaultJobOptions_16 {
|
|
925
|
-
let attempts_16: number;
|
|
926
|
-
export { attempts_16 as attempts };
|
|
927
925
|
export namespace backoff_16 {
|
|
928
926
|
let type_16: string;
|
|
929
927
|
export { type_16 as type };
|
|
@@ -931,8 +929,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
931
929
|
export { delay_16 as delay };
|
|
932
930
|
}
|
|
933
931
|
export { backoff_16 as backoff };
|
|
934
|
-
let
|
|
935
|
-
export {
|
|
932
|
+
let attempts_16: number;
|
|
933
|
+
export { attempts_16 as attempts };
|
|
936
934
|
let removeOnComplete_16: number;
|
|
937
935
|
export { removeOnComplete_16 as removeOnComplete };
|
|
938
936
|
let removeOnFail_16: number;
|
|
@@ -959,6 +957,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
959
957
|
}
|
|
960
958
|
export { workerConfig_16 as workerConfig };
|
|
961
959
|
}
|
|
960
|
+
namespace REINDEX_QUEUE {
|
|
961
|
+
let id_17: string;
|
|
962
|
+
export { id_17 as id };
|
|
963
|
+
export namespace queueConfig_17 {
|
|
964
|
+
export namespace defaultJobOptions_17 {
|
|
965
|
+
let attempts_17: number;
|
|
966
|
+
export { attempts_17 as attempts };
|
|
967
|
+
export namespace backoff_17 {
|
|
968
|
+
let type_17: string;
|
|
969
|
+
export { type_17 as type };
|
|
970
|
+
let delay_17: number;
|
|
971
|
+
export { delay_17 as delay };
|
|
972
|
+
}
|
|
973
|
+
export { backoff_17 as backoff };
|
|
974
|
+
let delay_18: number;
|
|
975
|
+
export { delay_18 as delay };
|
|
976
|
+
let removeOnComplete_17: number;
|
|
977
|
+
export { removeOnComplete_17 as removeOnComplete };
|
|
978
|
+
let removeOnFail_17: number;
|
|
979
|
+
export { removeOnFail_17 as removeOnFail };
|
|
980
|
+
}
|
|
981
|
+
export { defaultJobOptions_17 as defaultJobOptions };
|
|
982
|
+
export namespace streams_17 {
|
|
983
|
+
export namespace events_17 {
|
|
984
|
+
let maxLen_17: number;
|
|
985
|
+
export { maxLen_17 as maxLen };
|
|
986
|
+
}
|
|
987
|
+
export { events_17 as events };
|
|
988
|
+
}
|
|
989
|
+
export { streams_17 as streams };
|
|
990
|
+
}
|
|
991
|
+
export { queueConfig_17 as queueConfig };
|
|
992
|
+
export namespace workerConfig_17 {
|
|
993
|
+
let concurrency_17: number;
|
|
994
|
+
export { concurrency_17 as concurrency };
|
|
995
|
+
let lockDuration_17: number;
|
|
996
|
+
export { lockDuration_17 as lockDuration };
|
|
997
|
+
let maxStalledCount_17: number;
|
|
998
|
+
export { maxStalledCount_17 as maxStalledCount };
|
|
999
|
+
}
|
|
1000
|
+
export { workerConfig_17 as workerConfig };
|
|
1001
|
+
}
|
|
962
1002
|
}
|
|
963
1003
|
|
|
964
1004
|
interface PlatformContextContentItem {
|
|
@@ -1145,6 +1185,10 @@ declare const processAuthorAndCommonFilters: (allTpls: any[], filterScopes: stri
|
|
|
1145
1185
|
source: {
|
|
1146
1186
|
filterType: string;
|
|
1147
1187
|
profileTypes: any[];
|
|
1188
|
+
pinnedOptions: {
|
|
1189
|
+
display: string;
|
|
1190
|
+
value: null;
|
|
1191
|
+
}[];
|
|
1148
1192
|
options?: undefined;
|
|
1149
1193
|
};
|
|
1150
1194
|
target: {
|
|
@@ -1164,6 +1208,7 @@ declare const processAuthorAndCommonFilters: (allTpls: any[], filterScopes: stri
|
|
|
1164
1208
|
value: any;
|
|
1165
1209
|
}[];
|
|
1166
1210
|
profileTypes?: undefined;
|
|
1211
|
+
pinnedOptions?: undefined;
|
|
1167
1212
|
};
|
|
1168
1213
|
target: {
|
|
1169
1214
|
filterType: string;
|
|
@@ -1430,6 +1475,10 @@ declare const autoGenFilterConfigsFromTpl: ({ selectedTpls, allTpls, filterScope
|
|
|
1430
1475
|
source: {
|
|
1431
1476
|
filterType: string;
|
|
1432
1477
|
profileTypes: any[];
|
|
1478
|
+
pinnedOptions: {
|
|
1479
|
+
display: string;
|
|
1480
|
+
value: null;
|
|
1481
|
+
}[];
|
|
1433
1482
|
options?: undefined;
|
|
1434
1483
|
};
|
|
1435
1484
|
target: {
|
|
@@ -1449,6 +1498,7 @@ declare const autoGenFilterConfigsFromTpl: ({ selectedTpls, allTpls, filterScope
|
|
|
1449
1498
|
value: any;
|
|
1450
1499
|
}[];
|
|
1451
1500
|
profileTypes?: undefined;
|
|
1501
|
+
pinnedOptions?: undefined;
|
|
1452
1502
|
};
|
|
1453
1503
|
target: {
|
|
1454
1504
|
filterType: string;
|
package/dist/browser.js
CHANGED
|
@@ -1224,6 +1224,34 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
1224
1224
|
maxStalledCount: 3
|
|
1225
1225
|
}
|
|
1226
1226
|
},
|
|
1227
|
+
// One job per due ExternalConnection at each cron tick (hourly/daily/weekly).
|
|
1228
|
+
// The worker handler doesn't do the import itself — it calls okf-be's
|
|
1229
|
+
// /api/externalConnections/internal/runSync which fans out into the existing
|
|
1230
|
+
// DIRECT_DATA_IMPORT_QUEUE for the batched fetch+import work. Keeping this
|
|
1231
|
+
// queue separate from DDI gives clean dashboard separation, independent
|
|
1232
|
+
// concurrency (background-friendly), and independent pause/drain.
|
|
1233
|
+
SCHEDULED_EXTERNAL_SYNC_QUEUE: {
|
|
1234
|
+
id: "scheduled-external-sync-queue",
|
|
1235
|
+
queueConfig: {
|
|
1236
|
+
defaultJobOptions: {
|
|
1237
|
+
backoff: { type: "exponential", delay: 5e3 },
|
|
1238
|
+
attempts: 3,
|
|
1239
|
+
removeOnComplete: 30,
|
|
1240
|
+
removeOnFail: 100
|
|
1241
|
+
},
|
|
1242
|
+
streams: {
|
|
1243
|
+
events: {
|
|
1244
|
+
maxLen: 10
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
workerConfig: {
|
|
1249
|
+
concurrency: 1,
|
|
1250
|
+
lockDuration: 6e5,
|
|
1251
|
+
// 10 min — runSync HTTP call can be long
|
|
1252
|
+
maxStalledCount: 3
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1227
1255
|
REINDEX_QUEUE: {
|
|
1228
1256
|
id: "reindex-queue",
|
|
1229
1257
|
queueConfig: {
|
|
@@ -2067,7 +2095,10 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
2067
2095
|
}),
|
|
2068
2096
|
source: {
|
|
2069
2097
|
filterType: "usersType",
|
|
2070
|
-
profileTypes: allProfileTpls.map((tpl) => tpl.kp_content_type)
|
|
2098
|
+
profileTypes: allProfileTpls.map((tpl) => tpl.kp_content_type),
|
|
2099
|
+
pinnedOptions: [
|
|
2100
|
+
{ display: "AI", value: null }
|
|
2101
|
+
]
|
|
2071
2102
|
},
|
|
2072
2103
|
target: {
|
|
2073
2104
|
filterType: "valuePathType",
|
|
@@ -2331,6 +2362,9 @@ var sortFiltersHierarchically = (filters) => {
|
|
|
2331
2362
|
};
|
|
2332
2363
|
|
|
2333
2364
|
// src/utils/autoGenFilterConfigsFromTpl/utils/_self_managed_buildDocHierarchyConfig.ts
|
|
2365
|
+
var injectFilterOptionsBy = (filters) => filters.map(
|
|
2366
|
+
(f) => f.parentFilterId ? { ...f, source: { ...f.source, filterOptionsBy: { filterId: f.parentFilterId } } } : f
|
|
2367
|
+
);
|
|
2334
2368
|
var _self_managed_buildDocHierarchyConfig = ({
|
|
2335
2369
|
combinedDocumentBlocks,
|
|
2336
2370
|
docRollupBlocks,
|
|
@@ -2343,27 +2377,11 @@ var _self_managed_buildDocHierarchyConfig = ({
|
|
|
2343
2377
|
const commonGroup = allGroups.find(
|
|
2344
2378
|
(g) => g.contentTypes.length === selectedTpls.length
|
|
2345
2379
|
);
|
|
2346
|
-
const commonFilterConfigs = commonGroup ?
|
|
2347
|
-
|
|
2348
|
-
buildFilterConfigurations({
|
|
2349
|
-
groups: [commonGroup],
|
|
2350
|
-
type: "tags",
|
|
2351
|
-
selectedTpls,
|
|
2352
|
-
allTpls,
|
|
2353
|
-
isRollup: false,
|
|
2354
|
-
isAnno: false
|
|
2355
|
-
}).flatMap((s) => s.configs),
|
|
2356
|
-
allTpls
|
|
2357
|
-
)
|
|
2358
|
-
) : [];
|
|
2359
|
-
const multiDatasetGroups = selectedTpls.length >= 2 ? allGroups.filter(
|
|
2360
|
-
(g) => g.contentTypes.length > 1 && g.contentTypes.length < selectedTpls.length
|
|
2361
|
-
) : [];
|
|
2362
|
-
const sharedAcrossMultiple = multiDatasetGroups.map((group) => {
|
|
2363
|
-
const groupFilterConfigs = sortFiltersHierarchically(
|
|
2380
|
+
const commonFilterConfigs = commonGroup ? injectFilterOptionsBy(
|
|
2381
|
+
sortFiltersHierarchically(
|
|
2364
2382
|
attachParentFields(
|
|
2365
2383
|
buildFilterConfigurations({
|
|
2366
|
-
groups: [
|
|
2384
|
+
groups: [commonGroup],
|
|
2367
2385
|
type: "tags",
|
|
2368
2386
|
selectedTpls,
|
|
2369
2387
|
allTpls,
|
|
@@ -2372,6 +2390,26 @@ var _self_managed_buildDocHierarchyConfig = ({
|
|
|
2372
2390
|
}).flatMap((s) => s.configs),
|
|
2373
2391
|
allTpls
|
|
2374
2392
|
)
|
|
2393
|
+
)
|
|
2394
|
+
) : [];
|
|
2395
|
+
const multiDatasetGroups = selectedTpls.length >= 2 ? allGroups.filter(
|
|
2396
|
+
(g) => g.contentTypes.length > 1 && g.contentTypes.length < selectedTpls.length
|
|
2397
|
+
) : [];
|
|
2398
|
+
const sharedAcrossMultiple = multiDatasetGroups.map((group) => {
|
|
2399
|
+
const groupFilterConfigs = injectFilterOptionsBy(
|
|
2400
|
+
sortFiltersHierarchically(
|
|
2401
|
+
attachParentFields(
|
|
2402
|
+
buildFilterConfigurations({
|
|
2403
|
+
groups: [group],
|
|
2404
|
+
type: "tags",
|
|
2405
|
+
selectedTpls,
|
|
2406
|
+
allTpls,
|
|
2407
|
+
isRollup: false,
|
|
2408
|
+
isAnno: false
|
|
2409
|
+
}).flatMap((s) => s.configs),
|
|
2410
|
+
allTpls
|
|
2411
|
+
)
|
|
2412
|
+
)
|
|
2375
2413
|
);
|
|
2376
2414
|
const display = group.contentTypes.map((ct) => {
|
|
2377
2415
|
const tplData = allTpls.find(
|
|
@@ -2430,8 +2468,10 @@ var _self_managed_buildDocHierarchyConfig = ({
|
|
|
2430
2468
|
(f) => !rollupSourceKeys.has(JSON.stringify(f.source))
|
|
2431
2469
|
);
|
|
2432
2470
|
const combined = [...dedupedFilters, ...rollupConfigs];
|
|
2433
|
-
const combinedWithParents =
|
|
2434
|
-
|
|
2471
|
+
const combinedWithParents = injectFilterOptionsBy(
|
|
2472
|
+
sortFiltersHierarchically(
|
|
2473
|
+
attachParentFields(combined, allTpls)
|
|
2474
|
+
)
|
|
2435
2475
|
);
|
|
2436
2476
|
const rollupFilterIds = new Set(rollupConfigs.map((r) => r.filterId));
|
|
2437
2477
|
const filtersWithParents = combinedWithParents.filter(
|
package/dist/browser.mjs
CHANGED
|
@@ -1155,6 +1155,34 @@ var BASE_BULLMQ_CONFIG = {
|
|
|
1155
1155
|
maxStalledCount: 3
|
|
1156
1156
|
}
|
|
1157
1157
|
},
|
|
1158
|
+
// One job per due ExternalConnection at each cron tick (hourly/daily/weekly).
|
|
1159
|
+
// The worker handler doesn't do the import itself — it calls okf-be's
|
|
1160
|
+
// /api/externalConnections/internal/runSync which fans out into the existing
|
|
1161
|
+
// DIRECT_DATA_IMPORT_QUEUE for the batched fetch+import work. Keeping this
|
|
1162
|
+
// queue separate from DDI gives clean dashboard separation, independent
|
|
1163
|
+
// concurrency (background-friendly), and independent pause/drain.
|
|
1164
|
+
SCHEDULED_EXTERNAL_SYNC_QUEUE: {
|
|
1165
|
+
id: "scheduled-external-sync-queue",
|
|
1166
|
+
queueConfig: {
|
|
1167
|
+
defaultJobOptions: {
|
|
1168
|
+
backoff: { type: "exponential", delay: 5e3 },
|
|
1169
|
+
attempts: 3,
|
|
1170
|
+
removeOnComplete: 30,
|
|
1171
|
+
removeOnFail: 100
|
|
1172
|
+
},
|
|
1173
|
+
streams: {
|
|
1174
|
+
events: {
|
|
1175
|
+
maxLen: 10
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
workerConfig: {
|
|
1180
|
+
concurrency: 1,
|
|
1181
|
+
lockDuration: 6e5,
|
|
1182
|
+
// 10 min — runSync HTTP call can be long
|
|
1183
|
+
maxStalledCount: 3
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1158
1186
|
REINDEX_QUEUE: {
|
|
1159
1187
|
id: "reindex-queue",
|
|
1160
1188
|
queueConfig: {
|
|
@@ -1998,7 +2026,10 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
1998
2026
|
}),
|
|
1999
2027
|
source: {
|
|
2000
2028
|
filterType: "usersType",
|
|
2001
|
-
profileTypes: allProfileTpls.map((tpl) => tpl.kp_content_type)
|
|
2029
|
+
profileTypes: allProfileTpls.map((tpl) => tpl.kp_content_type),
|
|
2030
|
+
pinnedOptions: [
|
|
2031
|
+
{ display: "AI", value: null }
|
|
2032
|
+
]
|
|
2002
2033
|
},
|
|
2003
2034
|
target: {
|
|
2004
2035
|
filterType: "valuePathType",
|
|
@@ -2262,6 +2293,9 @@ var sortFiltersHierarchically = (filters) => {
|
|
|
2262
2293
|
};
|
|
2263
2294
|
|
|
2264
2295
|
// src/utils/autoGenFilterConfigsFromTpl/utils/_self_managed_buildDocHierarchyConfig.ts
|
|
2296
|
+
var injectFilterOptionsBy = (filters) => filters.map(
|
|
2297
|
+
(f) => f.parentFilterId ? { ...f, source: { ...f.source, filterOptionsBy: { filterId: f.parentFilterId } } } : f
|
|
2298
|
+
);
|
|
2265
2299
|
var _self_managed_buildDocHierarchyConfig = ({
|
|
2266
2300
|
combinedDocumentBlocks,
|
|
2267
2301
|
docRollupBlocks,
|
|
@@ -2274,27 +2308,11 @@ var _self_managed_buildDocHierarchyConfig = ({
|
|
|
2274
2308
|
const commonGroup = allGroups.find(
|
|
2275
2309
|
(g) => g.contentTypes.length === selectedTpls.length
|
|
2276
2310
|
);
|
|
2277
|
-
const commonFilterConfigs = commonGroup ?
|
|
2278
|
-
|
|
2279
|
-
buildFilterConfigurations({
|
|
2280
|
-
groups: [commonGroup],
|
|
2281
|
-
type: "tags",
|
|
2282
|
-
selectedTpls,
|
|
2283
|
-
allTpls,
|
|
2284
|
-
isRollup: false,
|
|
2285
|
-
isAnno: false
|
|
2286
|
-
}).flatMap((s) => s.configs),
|
|
2287
|
-
allTpls
|
|
2288
|
-
)
|
|
2289
|
-
) : [];
|
|
2290
|
-
const multiDatasetGroups = selectedTpls.length >= 2 ? allGroups.filter(
|
|
2291
|
-
(g) => g.contentTypes.length > 1 && g.contentTypes.length < selectedTpls.length
|
|
2292
|
-
) : [];
|
|
2293
|
-
const sharedAcrossMultiple = multiDatasetGroups.map((group) => {
|
|
2294
|
-
const groupFilterConfigs = sortFiltersHierarchically(
|
|
2311
|
+
const commonFilterConfigs = commonGroup ? injectFilterOptionsBy(
|
|
2312
|
+
sortFiltersHierarchically(
|
|
2295
2313
|
attachParentFields(
|
|
2296
2314
|
buildFilterConfigurations({
|
|
2297
|
-
groups: [
|
|
2315
|
+
groups: [commonGroup],
|
|
2298
2316
|
type: "tags",
|
|
2299
2317
|
selectedTpls,
|
|
2300
2318
|
allTpls,
|
|
@@ -2303,6 +2321,26 @@ var _self_managed_buildDocHierarchyConfig = ({
|
|
|
2303
2321
|
}).flatMap((s) => s.configs),
|
|
2304
2322
|
allTpls
|
|
2305
2323
|
)
|
|
2324
|
+
)
|
|
2325
|
+
) : [];
|
|
2326
|
+
const multiDatasetGroups = selectedTpls.length >= 2 ? allGroups.filter(
|
|
2327
|
+
(g) => g.contentTypes.length > 1 && g.contentTypes.length < selectedTpls.length
|
|
2328
|
+
) : [];
|
|
2329
|
+
const sharedAcrossMultiple = multiDatasetGroups.map((group) => {
|
|
2330
|
+
const groupFilterConfigs = injectFilterOptionsBy(
|
|
2331
|
+
sortFiltersHierarchically(
|
|
2332
|
+
attachParentFields(
|
|
2333
|
+
buildFilterConfigurations({
|
|
2334
|
+
groups: [group],
|
|
2335
|
+
type: "tags",
|
|
2336
|
+
selectedTpls,
|
|
2337
|
+
allTpls,
|
|
2338
|
+
isRollup: false,
|
|
2339
|
+
isAnno: false
|
|
2340
|
+
}).flatMap((s) => s.configs),
|
|
2341
|
+
allTpls
|
|
2342
|
+
)
|
|
2343
|
+
)
|
|
2306
2344
|
);
|
|
2307
2345
|
const display = group.contentTypes.map((ct) => {
|
|
2308
2346
|
const tplData = allTpls.find(
|
|
@@ -2361,8 +2399,10 @@ var _self_managed_buildDocHierarchyConfig = ({
|
|
|
2361
2399
|
(f) => !rollupSourceKeys.has(JSON.stringify(f.source))
|
|
2362
2400
|
);
|
|
2363
2401
|
const combined = [...dedupedFilters, ...rollupConfigs];
|
|
2364
|
-
const combinedWithParents =
|
|
2365
|
-
|
|
2402
|
+
const combinedWithParents = injectFilterOptionsBy(
|
|
2403
|
+
sortFiltersHierarchically(
|
|
2404
|
+
attachParentFields(combined, allTpls)
|
|
2405
|
+
)
|
|
2366
2406
|
);
|
|
2367
2407
|
const rollupFilterIds = new Set(rollupConfigs.map((r) => r.filterId));
|
|
2368
2408
|
const filtersWithParents = combinedWithParents.filter(
|
package/dist/node.d.mts
CHANGED
|
@@ -924,13 +924,11 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
924
924
|
}
|
|
925
925
|
export { workerConfig_15 as workerConfig };
|
|
926
926
|
}
|
|
927
|
-
namespace
|
|
927
|
+
namespace SCHEDULED_EXTERNAL_SYNC_QUEUE {
|
|
928
928
|
let id_16: string;
|
|
929
929
|
export { id_16 as id };
|
|
930
930
|
export namespace queueConfig_16 {
|
|
931
931
|
export namespace defaultJobOptions_16 {
|
|
932
|
-
let attempts_16: number;
|
|
933
|
-
export { attempts_16 as attempts };
|
|
934
932
|
export namespace backoff_16 {
|
|
935
933
|
let type_16: string;
|
|
936
934
|
export { type_16 as type };
|
|
@@ -938,8 +936,8 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
938
936
|
export { delay_16 as delay };
|
|
939
937
|
}
|
|
940
938
|
export { backoff_16 as backoff };
|
|
941
|
-
let
|
|
942
|
-
export {
|
|
939
|
+
let attempts_16: number;
|
|
940
|
+
export { attempts_16 as attempts };
|
|
943
941
|
let removeOnComplete_16: number;
|
|
944
942
|
export { removeOnComplete_16 as removeOnComplete };
|
|
945
943
|
let removeOnFail_16: number;
|
|
@@ -966,6 +964,48 @@ declare namespace BASE_BULLMQ_CONFIG {
|
|
|
966
964
|
}
|
|
967
965
|
export { workerConfig_16 as workerConfig };
|
|
968
966
|
}
|
|
967
|
+
namespace REINDEX_QUEUE {
|
|
968
|
+
let id_17: string;
|
|
969
|
+
export { id_17 as id };
|
|
970
|
+
export namespace queueConfig_17 {
|
|
971
|
+
export namespace defaultJobOptions_17 {
|
|
972
|
+
let attempts_17: number;
|
|
973
|
+
export { attempts_17 as attempts };
|
|
974
|
+
export namespace backoff_17 {
|
|
975
|
+
let type_17: string;
|
|
976
|
+
export { type_17 as type };
|
|
977
|
+
let delay_17: number;
|
|
978
|
+
export { delay_17 as delay };
|
|
979
|
+
}
|
|
980
|
+
export { backoff_17 as backoff };
|
|
981
|
+
let delay_18: number;
|
|
982
|
+
export { delay_18 as delay };
|
|
983
|
+
let removeOnComplete_17: number;
|
|
984
|
+
export { removeOnComplete_17 as removeOnComplete };
|
|
985
|
+
let removeOnFail_17: number;
|
|
986
|
+
export { removeOnFail_17 as removeOnFail };
|
|
987
|
+
}
|
|
988
|
+
export { defaultJobOptions_17 as defaultJobOptions };
|
|
989
|
+
export namespace streams_17 {
|
|
990
|
+
export namespace events_17 {
|
|
991
|
+
let maxLen_17: number;
|
|
992
|
+
export { maxLen_17 as maxLen };
|
|
993
|
+
}
|
|
994
|
+
export { events_17 as events };
|
|
995
|
+
}
|
|
996
|
+
export { streams_17 as streams };
|
|
997
|
+
}
|
|
998
|
+
export { queueConfig_17 as queueConfig };
|
|
999
|
+
export namespace workerConfig_17 {
|
|
1000
|
+
let concurrency_17: number;
|
|
1001
|
+
export { concurrency_17 as concurrency };
|
|
1002
|
+
let lockDuration_17: number;
|
|
1003
|
+
export { lockDuration_17 as lockDuration };
|
|
1004
|
+
let maxStalledCount_17: number;
|
|
1005
|
+
export { maxStalledCount_17 as maxStalledCount };
|
|
1006
|
+
}
|
|
1007
|
+
export { workerConfig_17 as workerConfig };
|
|
1008
|
+
}
|
|
969
1009
|
}
|
|
970
1010
|
|
|
971
1011
|
interface PlatformContextContentItem {
|
|
@@ -1152,6 +1192,10 @@ declare const processAuthorAndCommonFilters: (allTpls: any[], filterScopes: stri
|
|
|
1152
1192
|
source: {
|
|
1153
1193
|
filterType: string;
|
|
1154
1194
|
profileTypes: any[];
|
|
1195
|
+
pinnedOptions: {
|
|
1196
|
+
display: string;
|
|
1197
|
+
value: null;
|
|
1198
|
+
}[];
|
|
1155
1199
|
options?: undefined;
|
|
1156
1200
|
};
|
|
1157
1201
|
target: {
|
|
@@ -1171,6 +1215,7 @@ declare const processAuthorAndCommonFilters: (allTpls: any[], filterScopes: stri
|
|
|
1171
1215
|
value: any;
|
|
1172
1216
|
}[];
|
|
1173
1217
|
profileTypes?: undefined;
|
|
1218
|
+
pinnedOptions?: undefined;
|
|
1174
1219
|
};
|
|
1175
1220
|
target: {
|
|
1176
1221
|
filterType: string;
|
|
@@ -1437,6 +1482,10 @@ declare const autoGenFilterConfigsFromTpl: ({ selectedTpls, allTpls, filterScope
|
|
|
1437
1482
|
source: {
|
|
1438
1483
|
filterType: string;
|
|
1439
1484
|
profileTypes: any[];
|
|
1485
|
+
pinnedOptions: {
|
|
1486
|
+
display: string;
|
|
1487
|
+
value: null;
|
|
1488
|
+
}[];
|
|
1440
1489
|
options?: undefined;
|
|
1441
1490
|
};
|
|
1442
1491
|
target: {
|
|
@@ -1456,6 +1505,7 @@ declare const autoGenFilterConfigsFromTpl: ({ selectedTpls, allTpls, filterScope
|
|
|
1456
1505
|
value: any;
|
|
1457
1506
|
}[];
|
|
1458
1507
|
profileTypes?: undefined;
|
|
1508
|
+
pinnedOptions?: undefined;
|
|
1459
1509
|
};
|
|
1460
1510
|
target: {
|
|
1461
1511
|
filterType: string;
|