@okf/ootils 1.6.14 → 1.7.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,49 @@ 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
+ }
527
570
  }
528
571
 
529
572
  interface PlatformContextContentItem {
package/dist/browser.d.ts CHANGED
@@ -524,6 +524,49 @@ 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
+ }
527
570
  }
528
571
 
529
572
  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,35 @@ 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
+ }
627
657
  }
628
658
  };
629
659
 
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,35 @@ 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
+ }
592
622
  }
593
623
  };
594
624
 
package/dist/node.d.mts CHANGED
@@ -531,6 +531,49 @@ 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
+ }
534
577
  }
535
578
 
536
579
  interface PlatformContextContentItem {
package/dist/node.d.ts CHANGED
@@ -531,6 +531,49 @@ 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
+ }
534
577
  }
535
578
 
536
579
  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,35 @@ 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
+ }
283
313
  }
284
314
  };
285
315
  }
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,35 @@ 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
+ }
288
318
  }
289
319
  };
290
320
  }
@@ -524,6 +524,49 @@ 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
+ }
527
570
  }
528
571
 
529
572
  interface PlatformContextContentItem {
@@ -524,6 +524,49 @@ 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
+ }
527
570
  }
528
571
 
529
572
  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,35 @@ 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
+ }
627
657
  }
628
658
  };
629
659
 
@@ -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,35 @@ 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
+ }
592
622
  }
593
623
  };
594
624
 
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.7.0",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",