@okf/ootils 1.6.14 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -524,6 +524,92 @@ declare namespace BASE_BULLMQ_CONFIG {
524
524
  }
525
525
  export { workerConfig_7 as workerConfig };
526
526
  }
527
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
528
+ let id_8: string;
529
+ export { id_8 as id };
530
+ export namespace queueConfig_8 {
531
+ export namespace defaultJobOptions_8 {
532
+ let attempts_8: number;
533
+ export { attempts_8 as attempts };
534
+ export namespace backoff_8 {
535
+ let type_8: string;
536
+ export { type_8 as type };
537
+ let delay_8: number;
538
+ export { delay_8 as delay };
539
+ }
540
+ export { backoff_8 as backoff };
541
+ let removeOnComplete_8: number;
542
+ export { removeOnComplete_8 as removeOnComplete };
543
+ let removeOnFail_8: number;
544
+ export { removeOnFail_8 as removeOnFail };
545
+ }
546
+ export { defaultJobOptions_8 as defaultJobOptions };
547
+ export namespace streams_8 {
548
+ export namespace events_8 {
549
+ let maxLen_8: number;
550
+ export { maxLen_8 as maxLen };
551
+ }
552
+ export { events_8 as events };
553
+ }
554
+ export { streams_8 as streams };
555
+ }
556
+ export { queueConfig_8 as queueConfig };
557
+ export namespace workerConfig_8 {
558
+ let concurrency_8: number;
559
+ export { concurrency_8 as concurrency };
560
+ export namespace limiter_8 {
561
+ let max_8: number;
562
+ export { max_8 as max };
563
+ let duration_8: number;
564
+ export { duration_8 as duration };
565
+ }
566
+ export { limiter_8 as limiter };
567
+ }
568
+ export { workerConfig_8 as workerConfig };
569
+ }
570
+ namespace REINDEX_QUEUE {
571
+ let id_9: string;
572
+ export { id_9 as id };
573
+ export namespace queueConfig_9 {
574
+ export namespace defaultJobOptions_9 {
575
+ let attempts_9: number;
576
+ export { attempts_9 as attempts };
577
+ export namespace backoff_9 {
578
+ let type_9: string;
579
+ export { type_9 as type };
580
+ let delay_9: number;
581
+ export { delay_9 as delay };
582
+ }
583
+ export { backoff_9 as backoff };
584
+ let removeOnComplete_9: number;
585
+ export { removeOnComplete_9 as removeOnComplete };
586
+ let removeOnFail_9: number;
587
+ export { removeOnFail_9 as removeOnFail };
588
+ }
589
+ export { defaultJobOptions_9 as defaultJobOptions };
590
+ export namespace streams_9 {
591
+ export namespace events_9 {
592
+ let maxLen_9: number;
593
+ export { maxLen_9 as maxLen };
594
+ }
595
+ export { events_9 as events };
596
+ }
597
+ export { streams_9 as streams };
598
+ }
599
+ export { queueConfig_9 as queueConfig };
600
+ export namespace workerConfig_9 {
601
+ let concurrency_9: number;
602
+ export { concurrency_9 as concurrency };
603
+ export namespace limiter_9 {
604
+ let max_9: number;
605
+ export { max_9 as max };
606
+ let duration_9: number;
607
+ export { duration_9 as duration };
608
+ }
609
+ export { limiter_9 as limiter };
610
+ }
611
+ export { workerConfig_9 as workerConfig };
612
+ }
527
613
  }
528
614
 
529
615
  interface PlatformContextContentItem {
package/dist/browser.d.ts CHANGED
@@ -524,6 +524,92 @@ declare namespace BASE_BULLMQ_CONFIG {
524
524
  }
525
525
  export { workerConfig_7 as workerConfig };
526
526
  }
527
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
528
+ let id_8: string;
529
+ export { id_8 as id };
530
+ export namespace queueConfig_8 {
531
+ export namespace defaultJobOptions_8 {
532
+ let attempts_8: number;
533
+ export { attempts_8 as attempts };
534
+ export namespace backoff_8 {
535
+ let type_8: string;
536
+ export { type_8 as type };
537
+ let delay_8: number;
538
+ export { delay_8 as delay };
539
+ }
540
+ export { backoff_8 as backoff };
541
+ let removeOnComplete_8: number;
542
+ export { removeOnComplete_8 as removeOnComplete };
543
+ let removeOnFail_8: number;
544
+ export { removeOnFail_8 as removeOnFail };
545
+ }
546
+ export { defaultJobOptions_8 as defaultJobOptions };
547
+ export namespace streams_8 {
548
+ export namespace events_8 {
549
+ let maxLen_8: number;
550
+ export { maxLen_8 as maxLen };
551
+ }
552
+ export { events_8 as events };
553
+ }
554
+ export { streams_8 as streams };
555
+ }
556
+ export { queueConfig_8 as queueConfig };
557
+ export namespace workerConfig_8 {
558
+ let concurrency_8: number;
559
+ export { concurrency_8 as concurrency };
560
+ export namespace limiter_8 {
561
+ let max_8: number;
562
+ export { max_8 as max };
563
+ let duration_8: number;
564
+ export { duration_8 as duration };
565
+ }
566
+ export { limiter_8 as limiter };
567
+ }
568
+ export { workerConfig_8 as workerConfig };
569
+ }
570
+ namespace REINDEX_QUEUE {
571
+ let id_9: string;
572
+ export { id_9 as id };
573
+ export namespace queueConfig_9 {
574
+ export namespace defaultJobOptions_9 {
575
+ let attempts_9: number;
576
+ export { attempts_9 as attempts };
577
+ export namespace backoff_9 {
578
+ let type_9: string;
579
+ export { type_9 as type };
580
+ let delay_9: number;
581
+ export { delay_9 as delay };
582
+ }
583
+ export { backoff_9 as backoff };
584
+ let removeOnComplete_9: number;
585
+ export { removeOnComplete_9 as removeOnComplete };
586
+ let removeOnFail_9: number;
587
+ export { removeOnFail_9 as removeOnFail };
588
+ }
589
+ export { defaultJobOptions_9 as defaultJobOptions };
590
+ export namespace streams_9 {
591
+ export namespace events_9 {
592
+ let maxLen_9: number;
593
+ export { maxLen_9 as maxLen };
594
+ }
595
+ export { events_9 as events };
596
+ }
597
+ export { streams_9 as streams };
598
+ }
599
+ export { queueConfig_9 as queueConfig };
600
+ export namespace workerConfig_9 {
601
+ let concurrency_9: number;
602
+ export { concurrency_9 as concurrency };
603
+ export namespace limiter_9 {
604
+ let max_9: number;
605
+ export { max_9 as max };
606
+ let duration_9: number;
607
+ export { duration_9 as duration };
608
+ }
609
+ export { limiter_9 as limiter };
610
+ }
611
+ export { workerConfig_9 as workerConfig };
612
+ }
527
613
  }
528
614
 
529
615
  interface PlatformContextContentItem {
package/dist/browser.js CHANGED
@@ -530,6 +530,7 @@ var BASE_BULLMQ_CONFIG = {
530
530
  },
531
531
  workerConfig: {
532
532
  concurrency: 1,
533
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
533
534
  limiter: {
534
535
  max: 20,
535
536
  // Max 5 jobs per...
@@ -624,6 +625,62 @@ var BASE_BULLMQ_CONFIG = {
624
625
  // ...60 seconds (higher throughput for chunking)
625
626
  }
626
627
  }
628
+ },
629
+ CONTENT_ELASTIC_SYNC_QUEUE: {
630
+ id: "content-elastic-sync-queue",
631
+ queueConfig: {
632
+ defaultJobOptions: {
633
+ attempts: 3,
634
+ backoff: {
635
+ type: "exponential",
636
+ delay: 2e3
637
+ },
638
+ removeOnComplete: 30,
639
+ removeOnFail: 100
640
+ },
641
+ streams: {
642
+ events: {
643
+ maxLen: 10
644
+ // Keep very low, cuz we dont really use historical stream events as of now
645
+ }
646
+ }
647
+ },
648
+ workerConfig: {
649
+ concurrency: 5,
650
+ limiter: {
651
+ max: 200,
652
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
653
+ duration: 6e4
654
+ // ...60 seconds (higher throughput for chunking)
655
+ }
656
+ }
657
+ },
658
+ REINDEX_QUEUE: {
659
+ id: "reindex-queue",
660
+ queueConfig: {
661
+ defaultJobOptions: {
662
+ attempts: 3,
663
+ backoff: {
664
+ type: "exponential",
665
+ delay: 2e3
666
+ },
667
+ removeOnComplete: 30,
668
+ removeOnFail: 100
669
+ },
670
+ streams: {
671
+ events: {
672
+ maxLen: 10
673
+ // Keep very low, cuz we dont really use historical stream events as of now
674
+ }
675
+ }
676
+ },
677
+ workerConfig: {
678
+ concurrency: 1,
679
+ limiter: {
680
+ max: 3,
681
+ duration: 6e4
682
+ }
683
+ }
627
684
  }
628
685
  };
629
686
 
package/dist/browser.mjs CHANGED
@@ -495,6 +495,7 @@ var BASE_BULLMQ_CONFIG = {
495
495
  },
496
496
  workerConfig: {
497
497
  concurrency: 1,
498
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
498
499
  limiter: {
499
500
  max: 20,
500
501
  // Max 5 jobs per...
@@ -589,6 +590,62 @@ var BASE_BULLMQ_CONFIG = {
589
590
  // ...60 seconds (higher throughput for chunking)
590
591
  }
591
592
  }
593
+ },
594
+ CONTENT_ELASTIC_SYNC_QUEUE: {
595
+ id: "content-elastic-sync-queue",
596
+ queueConfig: {
597
+ defaultJobOptions: {
598
+ attempts: 3,
599
+ backoff: {
600
+ type: "exponential",
601
+ delay: 2e3
602
+ },
603
+ removeOnComplete: 30,
604
+ removeOnFail: 100
605
+ },
606
+ streams: {
607
+ events: {
608
+ maxLen: 10
609
+ // Keep very low, cuz we dont really use historical stream events as of now
610
+ }
611
+ }
612
+ },
613
+ workerConfig: {
614
+ concurrency: 5,
615
+ limiter: {
616
+ max: 200,
617
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
618
+ duration: 6e4
619
+ // ...60 seconds (higher throughput for chunking)
620
+ }
621
+ }
622
+ },
623
+ REINDEX_QUEUE: {
624
+ id: "reindex-queue",
625
+ queueConfig: {
626
+ defaultJobOptions: {
627
+ attempts: 3,
628
+ backoff: {
629
+ type: "exponential",
630
+ delay: 2e3
631
+ },
632
+ removeOnComplete: 30,
633
+ removeOnFail: 100
634
+ },
635
+ streams: {
636
+ events: {
637
+ maxLen: 10
638
+ // Keep very low, cuz we dont really use historical stream events as of now
639
+ }
640
+ }
641
+ },
642
+ workerConfig: {
643
+ concurrency: 1,
644
+ limiter: {
645
+ max: 3,
646
+ duration: 6e4
647
+ }
648
+ }
592
649
  }
593
650
  };
594
651
 
package/dist/node.d.mts CHANGED
@@ -531,6 +531,92 @@ declare namespace BASE_BULLMQ_CONFIG {
531
531
  }
532
532
  export { workerConfig_7 as workerConfig };
533
533
  }
534
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
535
+ let id_8: string;
536
+ export { id_8 as id };
537
+ export namespace queueConfig_8 {
538
+ export namespace defaultJobOptions_8 {
539
+ let attempts_8: number;
540
+ export { attempts_8 as attempts };
541
+ export namespace backoff_8 {
542
+ let type_8: string;
543
+ export { type_8 as type };
544
+ let delay_8: number;
545
+ export { delay_8 as delay };
546
+ }
547
+ export { backoff_8 as backoff };
548
+ let removeOnComplete_8: number;
549
+ export { removeOnComplete_8 as removeOnComplete };
550
+ let removeOnFail_8: number;
551
+ export { removeOnFail_8 as removeOnFail };
552
+ }
553
+ export { defaultJobOptions_8 as defaultJobOptions };
554
+ export namespace streams_8 {
555
+ export namespace events_8 {
556
+ let maxLen_8: number;
557
+ export { maxLen_8 as maxLen };
558
+ }
559
+ export { events_8 as events };
560
+ }
561
+ export { streams_8 as streams };
562
+ }
563
+ export { queueConfig_8 as queueConfig };
564
+ export namespace workerConfig_8 {
565
+ let concurrency_8: number;
566
+ export { concurrency_8 as concurrency };
567
+ export namespace limiter_8 {
568
+ let max_8: number;
569
+ export { max_8 as max };
570
+ let duration_8: number;
571
+ export { duration_8 as duration };
572
+ }
573
+ export { limiter_8 as limiter };
574
+ }
575
+ export { workerConfig_8 as workerConfig };
576
+ }
577
+ namespace REINDEX_QUEUE {
578
+ let id_9: string;
579
+ export { id_9 as id };
580
+ export namespace queueConfig_9 {
581
+ export namespace defaultJobOptions_9 {
582
+ let attempts_9: number;
583
+ export { attempts_9 as attempts };
584
+ export namespace backoff_9 {
585
+ let type_9: string;
586
+ export { type_9 as type };
587
+ let delay_9: number;
588
+ export { delay_9 as delay };
589
+ }
590
+ export { backoff_9 as backoff };
591
+ let removeOnComplete_9: number;
592
+ export { removeOnComplete_9 as removeOnComplete };
593
+ let removeOnFail_9: number;
594
+ export { removeOnFail_9 as removeOnFail };
595
+ }
596
+ export { defaultJobOptions_9 as defaultJobOptions };
597
+ export namespace streams_9 {
598
+ export namespace events_9 {
599
+ let maxLen_9: number;
600
+ export { maxLen_9 as maxLen };
601
+ }
602
+ export { events_9 as events };
603
+ }
604
+ export { streams_9 as streams };
605
+ }
606
+ export { queueConfig_9 as queueConfig };
607
+ export namespace workerConfig_9 {
608
+ let concurrency_9: number;
609
+ export { concurrency_9 as concurrency };
610
+ export namespace limiter_9 {
611
+ let max_9: number;
612
+ export { max_9 as max };
613
+ let duration_9: number;
614
+ export { duration_9 as duration };
615
+ }
616
+ export { limiter_9 as limiter };
617
+ }
618
+ export { workerConfig_9 as workerConfig };
619
+ }
534
620
  }
535
621
 
536
622
  interface PlatformContextContentItem {
package/dist/node.d.ts CHANGED
@@ -531,6 +531,92 @@ declare namespace BASE_BULLMQ_CONFIG {
531
531
  }
532
532
  export { workerConfig_7 as workerConfig };
533
533
  }
534
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
535
+ let id_8: string;
536
+ export { id_8 as id };
537
+ export namespace queueConfig_8 {
538
+ export namespace defaultJobOptions_8 {
539
+ let attempts_8: number;
540
+ export { attempts_8 as attempts };
541
+ export namespace backoff_8 {
542
+ let type_8: string;
543
+ export { type_8 as type };
544
+ let delay_8: number;
545
+ export { delay_8 as delay };
546
+ }
547
+ export { backoff_8 as backoff };
548
+ let removeOnComplete_8: number;
549
+ export { removeOnComplete_8 as removeOnComplete };
550
+ let removeOnFail_8: number;
551
+ export { removeOnFail_8 as removeOnFail };
552
+ }
553
+ export { defaultJobOptions_8 as defaultJobOptions };
554
+ export namespace streams_8 {
555
+ export namespace events_8 {
556
+ let maxLen_8: number;
557
+ export { maxLen_8 as maxLen };
558
+ }
559
+ export { events_8 as events };
560
+ }
561
+ export { streams_8 as streams };
562
+ }
563
+ export { queueConfig_8 as queueConfig };
564
+ export namespace workerConfig_8 {
565
+ let concurrency_8: number;
566
+ export { concurrency_8 as concurrency };
567
+ export namespace limiter_8 {
568
+ let max_8: number;
569
+ export { max_8 as max };
570
+ let duration_8: number;
571
+ export { duration_8 as duration };
572
+ }
573
+ export { limiter_8 as limiter };
574
+ }
575
+ export { workerConfig_8 as workerConfig };
576
+ }
577
+ namespace REINDEX_QUEUE {
578
+ let id_9: string;
579
+ export { id_9 as id };
580
+ export namespace queueConfig_9 {
581
+ export namespace defaultJobOptions_9 {
582
+ let attempts_9: number;
583
+ export { attempts_9 as attempts };
584
+ export namespace backoff_9 {
585
+ let type_9: string;
586
+ export { type_9 as type };
587
+ let delay_9: number;
588
+ export { delay_9 as delay };
589
+ }
590
+ export { backoff_9 as backoff };
591
+ let removeOnComplete_9: number;
592
+ export { removeOnComplete_9 as removeOnComplete };
593
+ let removeOnFail_9: number;
594
+ export { removeOnFail_9 as removeOnFail };
595
+ }
596
+ export { defaultJobOptions_9 as defaultJobOptions };
597
+ export namespace streams_9 {
598
+ export namespace events_9 {
599
+ let maxLen_9: number;
600
+ export { maxLen_9 as maxLen };
601
+ }
602
+ export { events_9 as events };
603
+ }
604
+ export { streams_9 as streams };
605
+ }
606
+ export { queueConfig_9 as queueConfig };
607
+ export namespace workerConfig_9 {
608
+ let concurrency_9: number;
609
+ export { concurrency_9 as concurrency };
610
+ export namespace limiter_9 {
611
+ let max_9: number;
612
+ export { max_9 as max };
613
+ let duration_9: number;
614
+ export { duration_9 as duration };
615
+ }
616
+ export { limiter_9 as limiter };
617
+ }
618
+ export { workerConfig_9 as workerConfig };
619
+ }
534
620
  }
535
621
 
536
622
  interface PlatformContextContentItem {
package/dist/node.js CHANGED
@@ -186,6 +186,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
186
186
  },
187
187
  workerConfig: {
188
188
  concurrency: 1,
189
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
189
190
  limiter: {
190
191
  max: 20,
191
192
  // Max 5 jobs per...
@@ -280,6 +281,62 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
280
281
  // ...60 seconds (higher throughput for chunking)
281
282
  }
282
283
  }
284
+ },
285
+ CONTENT_ELASTIC_SYNC_QUEUE: {
286
+ id: "content-elastic-sync-queue",
287
+ queueConfig: {
288
+ defaultJobOptions: {
289
+ attempts: 3,
290
+ backoff: {
291
+ type: "exponential",
292
+ delay: 2e3
293
+ },
294
+ removeOnComplete: 30,
295
+ removeOnFail: 100
296
+ },
297
+ streams: {
298
+ events: {
299
+ maxLen: 10
300
+ // Keep very low, cuz we dont really use historical stream events as of now
301
+ }
302
+ }
303
+ },
304
+ workerConfig: {
305
+ concurrency: 5,
306
+ limiter: {
307
+ max: 200,
308
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
309
+ duration: 6e4
310
+ // ...60 seconds (higher throughput for chunking)
311
+ }
312
+ }
313
+ },
314
+ REINDEX_QUEUE: {
315
+ id: "reindex-queue",
316
+ queueConfig: {
317
+ defaultJobOptions: {
318
+ attempts: 3,
319
+ backoff: {
320
+ type: "exponential",
321
+ delay: 2e3
322
+ },
323
+ removeOnComplete: 30,
324
+ removeOnFail: 100
325
+ },
326
+ streams: {
327
+ events: {
328
+ maxLen: 10
329
+ // Keep very low, cuz we dont really use historical stream events as of now
330
+ }
331
+ }
332
+ },
333
+ workerConfig: {
334
+ concurrency: 1,
335
+ limiter: {
336
+ max: 3,
337
+ duration: 6e4
338
+ }
339
+ }
283
340
  }
284
341
  };
285
342
  }
package/dist/node.mjs CHANGED
@@ -191,6 +191,7 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
191
191
  },
192
192
  workerConfig: {
193
193
  concurrency: 1,
194
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
194
195
  limiter: {
195
196
  max: 20,
196
197
  // Max 5 jobs per...
@@ -285,6 +286,62 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
285
286
  // ...60 seconds (higher throughput for chunking)
286
287
  }
287
288
  }
289
+ },
290
+ CONTENT_ELASTIC_SYNC_QUEUE: {
291
+ id: "content-elastic-sync-queue",
292
+ queueConfig: {
293
+ defaultJobOptions: {
294
+ attempts: 3,
295
+ backoff: {
296
+ type: "exponential",
297
+ delay: 2e3
298
+ },
299
+ removeOnComplete: 30,
300
+ removeOnFail: 100
301
+ },
302
+ streams: {
303
+ events: {
304
+ maxLen: 10
305
+ // Keep very low, cuz we dont really use historical stream events as of now
306
+ }
307
+ }
308
+ },
309
+ workerConfig: {
310
+ concurrency: 5,
311
+ limiter: {
312
+ max: 200,
313
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
314
+ duration: 6e4
315
+ // ...60 seconds (higher throughput for chunking)
316
+ }
317
+ }
318
+ },
319
+ REINDEX_QUEUE: {
320
+ id: "reindex-queue",
321
+ queueConfig: {
322
+ defaultJobOptions: {
323
+ attempts: 3,
324
+ backoff: {
325
+ type: "exponential",
326
+ delay: 2e3
327
+ },
328
+ removeOnComplete: 30,
329
+ removeOnFail: 100
330
+ },
331
+ streams: {
332
+ events: {
333
+ maxLen: 10
334
+ // Keep very low, cuz we dont really use historical stream events as of now
335
+ }
336
+ }
337
+ },
338
+ workerConfig: {
339
+ concurrency: 1,
340
+ limiter: {
341
+ max: 3,
342
+ duration: 6e4
343
+ }
344
+ }
288
345
  }
289
346
  };
290
347
  }
@@ -524,6 +524,92 @@ declare namespace BASE_BULLMQ_CONFIG {
524
524
  }
525
525
  export { workerConfig_7 as workerConfig };
526
526
  }
527
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
528
+ let id_8: string;
529
+ export { id_8 as id };
530
+ export namespace queueConfig_8 {
531
+ export namespace defaultJobOptions_8 {
532
+ let attempts_8: number;
533
+ export { attempts_8 as attempts };
534
+ export namespace backoff_8 {
535
+ let type_8: string;
536
+ export { type_8 as type };
537
+ let delay_8: number;
538
+ export { delay_8 as delay };
539
+ }
540
+ export { backoff_8 as backoff };
541
+ let removeOnComplete_8: number;
542
+ export { removeOnComplete_8 as removeOnComplete };
543
+ let removeOnFail_8: number;
544
+ export { removeOnFail_8 as removeOnFail };
545
+ }
546
+ export { defaultJobOptions_8 as defaultJobOptions };
547
+ export namespace streams_8 {
548
+ export namespace events_8 {
549
+ let maxLen_8: number;
550
+ export { maxLen_8 as maxLen };
551
+ }
552
+ export { events_8 as events };
553
+ }
554
+ export { streams_8 as streams };
555
+ }
556
+ export { queueConfig_8 as queueConfig };
557
+ export namespace workerConfig_8 {
558
+ let concurrency_8: number;
559
+ export { concurrency_8 as concurrency };
560
+ export namespace limiter_8 {
561
+ let max_8: number;
562
+ export { max_8 as max };
563
+ let duration_8: number;
564
+ export { duration_8 as duration };
565
+ }
566
+ export { limiter_8 as limiter };
567
+ }
568
+ export { workerConfig_8 as workerConfig };
569
+ }
570
+ namespace REINDEX_QUEUE {
571
+ let id_9: string;
572
+ export { id_9 as id };
573
+ export namespace queueConfig_9 {
574
+ export namespace defaultJobOptions_9 {
575
+ let attempts_9: number;
576
+ export { attempts_9 as attempts };
577
+ export namespace backoff_9 {
578
+ let type_9: string;
579
+ export { type_9 as type };
580
+ let delay_9: number;
581
+ export { delay_9 as delay };
582
+ }
583
+ export { backoff_9 as backoff };
584
+ let removeOnComplete_9: number;
585
+ export { removeOnComplete_9 as removeOnComplete };
586
+ let removeOnFail_9: number;
587
+ export { removeOnFail_9 as removeOnFail };
588
+ }
589
+ export { defaultJobOptions_9 as defaultJobOptions };
590
+ export namespace streams_9 {
591
+ export namespace events_9 {
592
+ let maxLen_9: number;
593
+ export { maxLen_9 as maxLen };
594
+ }
595
+ export { events_9 as events };
596
+ }
597
+ export { streams_9 as streams };
598
+ }
599
+ export { queueConfig_9 as queueConfig };
600
+ export namespace workerConfig_9 {
601
+ let concurrency_9: number;
602
+ export { concurrency_9 as concurrency };
603
+ export namespace limiter_9 {
604
+ let max_9: number;
605
+ export { max_9 as max };
606
+ let duration_9: number;
607
+ export { duration_9 as duration };
608
+ }
609
+ export { limiter_9 as limiter };
610
+ }
611
+ export { workerConfig_9 as workerConfig };
612
+ }
527
613
  }
528
614
 
529
615
  interface PlatformContextContentItem {
@@ -524,6 +524,92 @@ declare namespace BASE_BULLMQ_CONFIG {
524
524
  }
525
525
  export { workerConfig_7 as workerConfig };
526
526
  }
527
+ namespace CONTENT_ELASTIC_SYNC_QUEUE {
528
+ let id_8: string;
529
+ export { id_8 as id };
530
+ export namespace queueConfig_8 {
531
+ export namespace defaultJobOptions_8 {
532
+ let attempts_8: number;
533
+ export { attempts_8 as attempts };
534
+ export namespace backoff_8 {
535
+ let type_8: string;
536
+ export { type_8 as type };
537
+ let delay_8: number;
538
+ export { delay_8 as delay };
539
+ }
540
+ export { backoff_8 as backoff };
541
+ let removeOnComplete_8: number;
542
+ export { removeOnComplete_8 as removeOnComplete };
543
+ let removeOnFail_8: number;
544
+ export { removeOnFail_8 as removeOnFail };
545
+ }
546
+ export { defaultJobOptions_8 as defaultJobOptions };
547
+ export namespace streams_8 {
548
+ export namespace events_8 {
549
+ let maxLen_8: number;
550
+ export { maxLen_8 as maxLen };
551
+ }
552
+ export { events_8 as events };
553
+ }
554
+ export { streams_8 as streams };
555
+ }
556
+ export { queueConfig_8 as queueConfig };
557
+ export namespace workerConfig_8 {
558
+ let concurrency_8: number;
559
+ export { concurrency_8 as concurrency };
560
+ export namespace limiter_8 {
561
+ let max_8: number;
562
+ export { max_8 as max };
563
+ let duration_8: number;
564
+ export { duration_8 as duration };
565
+ }
566
+ export { limiter_8 as limiter };
567
+ }
568
+ export { workerConfig_8 as workerConfig };
569
+ }
570
+ namespace REINDEX_QUEUE {
571
+ let id_9: string;
572
+ export { id_9 as id };
573
+ export namespace queueConfig_9 {
574
+ export namespace defaultJobOptions_9 {
575
+ let attempts_9: number;
576
+ export { attempts_9 as attempts };
577
+ export namespace backoff_9 {
578
+ let type_9: string;
579
+ export { type_9 as type };
580
+ let delay_9: number;
581
+ export { delay_9 as delay };
582
+ }
583
+ export { backoff_9 as backoff };
584
+ let removeOnComplete_9: number;
585
+ export { removeOnComplete_9 as removeOnComplete };
586
+ let removeOnFail_9: number;
587
+ export { removeOnFail_9 as removeOnFail };
588
+ }
589
+ export { defaultJobOptions_9 as defaultJobOptions };
590
+ export namespace streams_9 {
591
+ export namespace events_9 {
592
+ let maxLen_9: number;
593
+ export { maxLen_9 as maxLen };
594
+ }
595
+ export { events_9 as events };
596
+ }
597
+ export { streams_9 as streams };
598
+ }
599
+ export { queueConfig_9 as queueConfig };
600
+ export namespace workerConfig_9 {
601
+ let concurrency_9: number;
602
+ export { concurrency_9 as concurrency };
603
+ export namespace limiter_9 {
604
+ let max_9: number;
605
+ export { max_9 as max };
606
+ let duration_9: number;
607
+ export { duration_9 as duration };
608
+ }
609
+ export { limiter_9 as limiter };
610
+ }
611
+ export { workerConfig_9 as workerConfig };
612
+ }
527
613
  }
528
614
 
529
615
  interface PlatformContextContentItem {
package/dist/universal.js CHANGED
@@ -530,6 +530,7 @@ var BASE_BULLMQ_CONFIG = {
530
530
  },
531
531
  workerConfig: {
532
532
  concurrency: 1,
533
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
533
534
  limiter: {
534
535
  max: 20,
535
536
  // Max 5 jobs per...
@@ -624,6 +625,62 @@ var BASE_BULLMQ_CONFIG = {
624
625
  // ...60 seconds (higher throughput for chunking)
625
626
  }
626
627
  }
628
+ },
629
+ CONTENT_ELASTIC_SYNC_QUEUE: {
630
+ id: "content-elastic-sync-queue",
631
+ queueConfig: {
632
+ defaultJobOptions: {
633
+ attempts: 3,
634
+ backoff: {
635
+ type: "exponential",
636
+ delay: 2e3
637
+ },
638
+ removeOnComplete: 30,
639
+ removeOnFail: 100
640
+ },
641
+ streams: {
642
+ events: {
643
+ maxLen: 10
644
+ // Keep very low, cuz we dont really use historical stream events as of now
645
+ }
646
+ }
647
+ },
648
+ workerConfig: {
649
+ concurrency: 5,
650
+ limiter: {
651
+ max: 200,
652
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
653
+ duration: 6e4
654
+ // ...60 seconds (higher throughput for chunking)
655
+ }
656
+ }
657
+ },
658
+ REINDEX_QUEUE: {
659
+ id: "reindex-queue",
660
+ queueConfig: {
661
+ defaultJobOptions: {
662
+ attempts: 3,
663
+ backoff: {
664
+ type: "exponential",
665
+ delay: 2e3
666
+ },
667
+ removeOnComplete: 30,
668
+ removeOnFail: 100
669
+ },
670
+ streams: {
671
+ events: {
672
+ maxLen: 10
673
+ // Keep very low, cuz we dont really use historical stream events as of now
674
+ }
675
+ }
676
+ },
677
+ workerConfig: {
678
+ concurrency: 1,
679
+ limiter: {
680
+ max: 3,
681
+ duration: 6e4
682
+ }
683
+ }
627
684
  }
628
685
  };
629
686
 
@@ -495,6 +495,7 @@ var BASE_BULLMQ_CONFIG = {
495
495
  },
496
496
  workerConfig: {
497
497
  concurrency: 1,
498
+ // Cannot mess with this else duplicate options in tpl, maybe even duplicate tags
498
499
  limiter: {
499
500
  max: 20,
500
501
  // Max 5 jobs per...
@@ -589,6 +590,62 @@ var BASE_BULLMQ_CONFIG = {
589
590
  // ...60 seconds (higher throughput for chunking)
590
591
  }
591
592
  }
593
+ },
594
+ CONTENT_ELASTIC_SYNC_QUEUE: {
595
+ id: "content-elastic-sync-queue",
596
+ queueConfig: {
597
+ defaultJobOptions: {
598
+ attempts: 3,
599
+ backoff: {
600
+ type: "exponential",
601
+ delay: 2e3
602
+ },
603
+ removeOnComplete: 30,
604
+ removeOnFail: 100
605
+ },
606
+ streams: {
607
+ events: {
608
+ maxLen: 10
609
+ // Keep very low, cuz we dont really use historical stream events as of now
610
+ }
611
+ }
612
+ },
613
+ workerConfig: {
614
+ concurrency: 5,
615
+ limiter: {
616
+ max: 200,
617
+ // (lets always keep this same as content enhance & embed since it comes immediately after)
618
+ duration: 6e4
619
+ // ...60 seconds (higher throughput for chunking)
620
+ }
621
+ }
622
+ },
623
+ REINDEX_QUEUE: {
624
+ id: "reindex-queue",
625
+ queueConfig: {
626
+ defaultJobOptions: {
627
+ attempts: 3,
628
+ backoff: {
629
+ type: "exponential",
630
+ delay: 2e3
631
+ },
632
+ removeOnComplete: 30,
633
+ removeOnFail: 100
634
+ },
635
+ streams: {
636
+ events: {
637
+ maxLen: 10
638
+ // Keep very low, cuz we dont really use historical stream events as of now
639
+ }
640
+ }
641
+ },
642
+ workerConfig: {
643
+ concurrency: 1,
644
+ limiter: {
645
+ max: 3,
646
+ duration: 6e4
647
+ }
648
+ }
592
649
  }
593
650
  };
594
651
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.6.14",
6
+ "version": "1.8.0",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",