@dudousxd/nestjs-durable 0.20.0 → 0.22.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.
package/dist/index.cjs CHANGED
@@ -342,8 +342,8 @@ DurableWorkerModule = _ts_decorate([
342
342
  ], DurableWorkerModule);
343
343
 
344
344
  // src/durable.module.ts
345
- var import_nestjs_durable_core7 = require("@dudousxd/nestjs-durable-core");
346
- var import_common7 = require("@nestjs/common");
345
+ var import_nestjs_durable_core8 = require("@dudousxd/nestjs-durable-core");
346
+ var import_common8 = require("@nestjs/common");
347
347
  var import_core4 = require("@nestjs/core");
348
348
 
349
349
  // src/durable-step.registrar.ts
@@ -484,7 +484,7 @@ EntityService = _ts_decorate3([
484
484
  ])
485
485
  ], EntityService);
486
486
 
487
- // src/timer-poller.ts
487
+ // src/retention-poller.ts
488
488
  var import_nestjs_durable_core4 = require("@dudousxd/nestjs-durable-core");
489
489
  var import_common4 = require("@nestjs/common");
490
490
  function _ts_decorate4(decorators, target, key, desc) {
@@ -504,6 +504,113 @@ function _ts_param3(paramIndex, decorator) {
504
504
  };
505
505
  }
506
506
  __name(_ts_param3, "_ts_param");
507
+ var DEFAULT_SWEEP_INTERVAL_MS = 6e4;
508
+ var DEFAULT_BATCH_SIZE = 1e3;
509
+ var MAX_BATCHES_PER_POLICY = 100;
510
+ function validateRetention(retention) {
511
+ const seen = /* @__PURE__ */ new Set();
512
+ for (const policy of retention.policies) {
513
+ if (policy.statuses.length === 0) {
514
+ throw new Error("durable retention: each policy must list at least one status");
515
+ }
516
+ if (policy.maxAge == null && policy.maxCount == null) {
517
+ throw new Error("durable retention: each policy must set maxAge and/or maxCount");
518
+ }
519
+ if (policy.maxAge != null) (0, import_nestjs_durable_core4.parseDuration)(policy.maxAge);
520
+ for (const status of policy.statuses) {
521
+ if (!import_nestjs_durable_core4.TERMINAL_RUN_STATUSES.includes(status)) {
522
+ throw new Error(`durable retention: status "${status}" is not terminal; only ${import_nestjs_durable_core4.TERMINAL_RUN_STATUSES.join(", ")} can be pruned`);
523
+ }
524
+ if (seen.has(status)) {
525
+ throw new Error(`durable retention: status "${status}" appears in more than one policy; status sets must be disjoint`);
526
+ }
527
+ seen.add(status);
528
+ }
529
+ }
530
+ }
531
+ __name(validateRetention, "validateRetention");
532
+ var RetentionPoller = class {
533
+ static {
534
+ __name(this, "RetentionPoller");
535
+ }
536
+ store;
537
+ options;
538
+ timer;
539
+ sweeping = false;
540
+ constructor(store, options) {
541
+ this.store = store;
542
+ this.options = options;
543
+ }
544
+ async onApplicationBootstrap() {
545
+ if (this.options.worker === false) return;
546
+ const retention = this.options.retention;
547
+ if (!retention || retention.policies.length === 0) return;
548
+ validateRetention(retention);
549
+ if (typeof this.store.pruneTerminalRuns !== "function") {
550
+ console.warn("[nestjs-durable] `retention` is configured but the store adapter does not implement pruneTerminalRuns; retention is disabled.");
551
+ return;
552
+ }
553
+ await this.sweep();
554
+ const intervalMs = retention.sweepInterval != null ? (0, import_nestjs_durable_core4.parseDuration)(retention.sweepInterval) : DEFAULT_SWEEP_INTERVAL_MS;
555
+ if (intervalMs > 0) {
556
+ this.timer = setInterval(() => void this.sweep(), intervalMs);
557
+ this.timer.unref?.();
558
+ }
559
+ }
560
+ onModuleDestroy() {
561
+ if (this.timer) clearInterval(this.timer);
562
+ }
563
+ async sweep() {
564
+ if (this.sweeping) return;
565
+ const retention = this.options.retention;
566
+ const prune = this.store.pruneTerminalRuns;
567
+ if (!retention || typeof prune !== "function") return;
568
+ this.sweeping = true;
569
+ try {
570
+ const batchSize = retention.batchSize ?? DEFAULT_BATCH_SIZE;
571
+ const now = Date.now();
572
+ for (const policy of retention.policies) {
573
+ for (let batch = 0; batch < MAX_BATCHES_PER_POLICY; batch++) {
574
+ const deleted = await prune.call(this.store, policy, now, batchSize);
575
+ if (deleted < batchSize) break;
576
+ }
577
+ }
578
+ } finally {
579
+ this.sweeping = false;
580
+ }
581
+ }
582
+ };
583
+ RetentionPoller = _ts_decorate4([
584
+ (0, import_common4.Injectable)(),
585
+ _ts_param3(0, (0, import_common4.Inject)(import_nestjs_durable_core4.STATE_STORE_CANONICAL)),
586
+ _ts_param3(1, (0, import_common4.Inject)(import_nestjs_durable_core4.DURABLE_OPTIONS_CANONICAL)),
587
+ _ts_metadata4("design:type", Function),
588
+ _ts_metadata4("design:paramtypes", [
589
+ typeof StateStore === "undefined" ? Object : StateStore,
590
+ typeof DurableModuleOptions === "undefined" ? Object : DurableModuleOptions
591
+ ])
592
+ ], RetentionPoller);
593
+
594
+ // src/timer-poller.ts
595
+ var import_nestjs_durable_core5 = require("@dudousxd/nestjs-durable-core");
596
+ var import_common5 = require("@nestjs/common");
597
+ function _ts_decorate5(decorators, target, key, desc) {
598
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
599
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
600
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
601
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
602
+ }
603
+ __name(_ts_decorate5, "_ts_decorate");
604
+ function _ts_metadata5(k, v) {
605
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
606
+ }
607
+ __name(_ts_metadata5, "_ts_metadata");
608
+ function _ts_param4(paramIndex, decorator) {
609
+ return function(target, key) {
610
+ decorator(target, key, paramIndex);
611
+ };
612
+ }
613
+ __name(_ts_param4, "_ts_param");
507
614
  var TimerPoller = class {
508
615
  static {
509
616
  __name(this, "TimerPoller");
@@ -541,19 +648,19 @@ var TimerPoller = class {
541
648
  await this.engine.sweepTimeouts();
542
649
  const schedules = this.options.schedules;
543
650
  if (schedules && schedules.length > 0) {
544
- await (0, import_nestjs_durable_core4.runSchedules)(this.engine, schedules, Date.now());
651
+ await (0, import_nestjs_durable_core5.runSchedules)(this.engine, schedules, Date.now());
545
652
  }
546
653
  } finally {
547
654
  this.polling = false;
548
655
  }
549
656
  }
550
657
  };
551
- TimerPoller = _ts_decorate4([
552
- (0, import_common4.Injectable)(),
553
- _ts_param3(1, (0, import_common4.Inject)(import_nestjs_durable_core4.DURABLE_OPTIONS_CANONICAL)),
554
- _ts_metadata4("design:type", Function),
555
- _ts_metadata4("design:paramtypes", [
556
- typeof import_nestjs_durable_core4.WorkflowEngine === "undefined" ? Object : import_nestjs_durable_core4.WorkflowEngine,
658
+ TimerPoller = _ts_decorate5([
659
+ (0, import_common5.Injectable)(),
660
+ _ts_param4(1, (0, import_common5.Inject)(import_nestjs_durable_core5.DURABLE_OPTIONS_CANONICAL)),
661
+ _ts_metadata5("design:type", Function),
662
+ _ts_metadata5("design:paramtypes", [
663
+ typeof import_nestjs_durable_core5.WorkflowEngine === "undefined" ? Object : import_nestjs_durable_core5.WorkflowEngine,
557
664
  typeof DurableModuleOptions === "undefined" ? Object : DurableModuleOptions
558
665
  ])
559
666
  ], TimerPoller);
@@ -562,8 +669,8 @@ TimerPoller = _ts_decorate4([
562
669
  var CONTEXT_ACCESSOR = Symbol.for("@dudousxd/nestjs-context:accessor");
563
670
 
564
671
  // src/workflow.registrar.ts
565
- var import_nestjs_durable_core5 = require("@dudousxd/nestjs-durable-core");
566
- var import_common5 = require("@nestjs/common");
672
+ var import_nestjs_durable_core6 = require("@dudousxd/nestjs-durable-core");
673
+ var import_common6 = require("@nestjs/common");
567
674
  var import_core3 = require("@nestjs/core");
568
675
 
569
676
  // src/input-validation.ts
@@ -606,23 +713,23 @@ function isStepInterceptor(target) {
606
713
  __name(isStepInterceptor, "isStepInterceptor");
607
714
 
608
715
  // src/workflow.registrar.ts
609
- function _ts_decorate5(decorators, target, key, desc) {
716
+ function _ts_decorate6(decorators, target, key, desc) {
610
717
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
611
718
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
612
719
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
613
720
  return c > 3 && r && Object.defineProperty(target, key, r), r;
614
721
  }
615
- __name(_ts_decorate5, "_ts_decorate");
616
- function _ts_metadata5(k, v) {
722
+ __name(_ts_decorate6, "_ts_decorate");
723
+ function _ts_metadata6(k, v) {
617
724
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
618
725
  }
619
- __name(_ts_metadata5, "_ts_metadata");
620
- function _ts_param4(paramIndex, decorator) {
726
+ __name(_ts_metadata6, "_ts_metadata");
727
+ function _ts_param5(paramIndex, decorator) {
621
728
  return function(target, key) {
622
729
  decorator(target, key, paramIndex);
623
730
  };
624
731
  }
625
- __name(_ts_param4, "_ts_param");
732
+ __name(_ts_param5, "_ts_param");
626
733
  var WorkflowRegistrar = class {
627
734
  static {
628
735
  __name(this, "WorkflowRegistrar");
@@ -675,11 +782,11 @@ var WorkflowRegistrar = class {
675
782
  const validateInput = meta.validateInput ?? (meta.inputSchema ? classValidatorInput(meta.inputSchema) : void 0);
676
783
  const eventBatch = meta.debounce ? {
677
784
  mode: "debounce",
678
- windowMs: (0, import_nestjs_durable_core5.parseDuration)(meta.debounce)
785
+ windowMs: (0, import_nestjs_durable_core6.parseDuration)(meta.debounce)
679
786
  } : meta.batch ? {
680
787
  mode: "batch",
681
788
  maxSize: meta.batch.maxSize,
682
- windowMs: (0, import_nestjs_durable_core5.parseDuration)(meta.batch.within)
789
+ windowMs: (0, import_nestjs_durable_core6.parseDuration)(meta.batch.within)
683
790
  } : void 0;
684
791
  const workflowCtor = workflow.constructor;
685
792
  this.engine.register(meta.name, meta.version, (ctx, input) => workflow.run(ctx, input), {
@@ -699,7 +806,7 @@ var WorkflowRegistrar = class {
699
806
  this.engine.register(dlqName, meta.version, inline);
700
807
  deadLetterByWorkflow.set(meta.name, dlqName);
701
808
  } else if (meta.deadLetterWorkflow) {
702
- deadLetterByWorkflow.set(meta.name, (0, import_nestjs_durable_core5.workflowName)(meta.deadLetterWorkflow));
809
+ deadLetterByWorkflow.set(meta.name, (0, import_nestjs_durable_core6.workflowName)(meta.deadLetterWorkflow));
703
810
  }
704
811
  });
705
812
  this.installDeadLetterRouting(deadLetterByWorkflow);
@@ -721,7 +828,7 @@ var WorkflowRegistrar = class {
721
828
  * a `dlq:<runId>` id, so re-recovery never double-dispatches.
722
829
  */
723
830
  installDeadLetterRouting(byWorkflow) {
724
- const fallback = this.options.deadLetterWorkflow ? (0, import_nestjs_durable_core5.workflowName)(this.options.deadLetterWorkflow) : void 0;
831
+ const fallback = this.options.deadLetterWorkflow ? (0, import_nestjs_durable_core6.workflowName)(this.options.deadLetterWorkflow) : void 0;
725
832
  if (byWorkflow.size === 0 && !fallback) return;
726
833
  this.engine.onDead((run) => {
727
834
  const target = byWorkflow.get(run.workflow) ?? fallback;
@@ -735,15 +842,15 @@ var WorkflowRegistrar = class {
735
842
  });
736
843
  }
737
844
  };
738
- WorkflowRegistrar = _ts_decorate5([
739
- (0, import_common5.Injectable)(),
740
- _ts_param4(3, (0, import_common5.Inject)(import_nestjs_durable_core5.STATE_STORE_CANONICAL)),
741
- _ts_param4(4, (0, import_common5.Inject)(import_nestjs_durable_core5.DURABLE_OPTIONS_CANONICAL)),
742
- _ts_metadata5("design:type", Function),
743
- _ts_metadata5("design:paramtypes", [
845
+ WorkflowRegistrar = _ts_decorate6([
846
+ (0, import_common6.Injectable)(),
847
+ _ts_param5(3, (0, import_common6.Inject)(import_nestjs_durable_core6.STATE_STORE_CANONICAL)),
848
+ _ts_param5(4, (0, import_common6.Inject)(import_nestjs_durable_core6.DURABLE_OPTIONS_CANONICAL)),
849
+ _ts_metadata6("design:type", Function),
850
+ _ts_metadata6("design:paramtypes", [
744
851
  typeof import_core3.DiscoveryService === "undefined" ? Object : import_core3.DiscoveryService,
745
852
  typeof import_core3.MetadataScanner === "undefined" ? Object : import_core3.MetadataScanner,
746
- typeof import_nestjs_durable_core5.WorkflowEngine === "undefined" ? Object : import_nestjs_durable_core5.WorkflowEngine,
853
+ typeof import_nestjs_durable_core6.WorkflowEngine === "undefined" ? Object : import_nestjs_durable_core6.WorkflowEngine,
747
854
  typeof StateStore === "undefined" ? Object : StateStore,
748
855
  typeof DurableModuleOptions === "undefined" ? Object : DurableModuleOptions
749
856
  ])
@@ -751,19 +858,19 @@ WorkflowRegistrar = _ts_decorate5([
751
858
 
752
859
  // src/workflow.service.ts
753
860
  var import_node_crypto = require("crypto");
754
- var import_nestjs_durable_core6 = require("@dudousxd/nestjs-durable-core");
755
- var import_common6 = require("@nestjs/common");
756
- function _ts_decorate6(decorators, target, key, desc) {
861
+ var import_nestjs_durable_core7 = require("@dudousxd/nestjs-durable-core");
862
+ var import_common7 = require("@nestjs/common");
863
+ function _ts_decorate7(decorators, target, key, desc) {
757
864
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
758
865
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
759
866
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
760
867
  return c > 3 && r && Object.defineProperty(target, key, r), r;
761
868
  }
762
- __name(_ts_decorate6, "_ts_decorate");
763
- function _ts_metadata6(k, v) {
869
+ __name(_ts_decorate7, "_ts_decorate");
870
+ function _ts_metadata7(k, v) {
764
871
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
765
872
  }
766
- __name(_ts_metadata6, "_ts_metadata");
873
+ __name(_ts_metadata7, "_ts_metadata");
767
874
  var WorkflowService = class {
768
875
  static {
769
876
  __name(this, "WorkflowService");
@@ -803,22 +910,22 @@ var WorkflowService = class {
803
910
  return this.engine.publishEvent(name, payload, opts);
804
911
  }
805
912
  };
806
- WorkflowService = _ts_decorate6([
807
- (0, import_common6.Injectable)(),
808
- _ts_metadata6("design:type", Function),
809
- _ts_metadata6("design:paramtypes", [
810
- typeof import_nestjs_durable_core6.WorkflowEngine === "undefined" ? Object : import_nestjs_durable_core6.WorkflowEngine
913
+ WorkflowService = _ts_decorate7([
914
+ (0, import_common7.Injectable)(),
915
+ _ts_metadata7("design:type", Function),
916
+ _ts_metadata7("design:paramtypes", [
917
+ typeof import_nestjs_durable_core7.WorkflowEngine === "undefined" ? Object : import_nestjs_durable_core7.WorkflowEngine
811
918
  ])
812
919
  ], WorkflowService);
813
920
 
814
921
  // src/durable.module.ts
815
- function _ts_decorate7(decorators, target, key, desc) {
922
+ function _ts_decorate8(decorators, target, key, desc) {
816
923
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
817
924
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
818
925
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
819
926
  return c > 3 && r && Object.defineProperty(target, key, r), r;
820
927
  }
821
- __name(_ts_decorate7, "_ts_decorate");
928
+ __name(_ts_decorate8, "_ts_decorate");
822
929
  function resolveAccessor(moduleRef) {
823
930
  try {
824
931
  return moduleRef.get(CONTEXT_ACCESSOR, {
@@ -864,13 +971,13 @@ var DurableModule = class _DurableModule {
864
971
  }
865
972
  static forRoot(options) {
866
973
  return _DurableModule.build({
867
- provide: import_nestjs_durable_core7.DURABLE_OPTIONS_CANONICAL,
974
+ provide: import_nestjs_durable_core8.DURABLE_OPTIONS_CANONICAL,
868
975
  useValue: options
869
976
  });
870
977
  }
871
978
  static forRootAsync(options) {
872
979
  return _DurableModule.build({
873
- provide: import_nestjs_durable_core7.DURABLE_OPTIONS_CANONICAL,
980
+ provide: import_nestjs_durable_core8.DURABLE_OPTIONS_CANONICAL,
874
981
  useFactory: options.useFactory,
875
982
  inject: options.inject ?? []
876
983
  });
@@ -885,41 +992,41 @@ var DurableModule = class _DurableModule {
885
992
  providers: [
886
993
  optionsProvider,
887
994
  {
888
- provide: import_nestjs_durable_core7.STATE_STORE_CANONICAL,
995
+ provide: import_nestjs_durable_core8.STATE_STORE_CANONICAL,
889
996
  useFactory: /* @__PURE__ */ __name((options) => options.store, "useFactory"),
890
997
  inject: [
891
- import_nestjs_durable_core7.DURABLE_OPTIONS_CANONICAL
998
+ import_nestjs_durable_core8.DURABLE_OPTIONS_CANONICAL
892
999
  ]
893
1000
  },
894
1001
  {
895
- provide: import_nestjs_durable_core7.TRANSPORT_CANONICAL,
1002
+ provide: import_nestjs_durable_core8.TRANSPORT_CANONICAL,
896
1003
  useFactory: /* @__PURE__ */ __name((options) => options.transport ?? null, "useFactory"),
897
1004
  inject: [
898
- import_nestjs_durable_core7.DURABLE_OPTIONS_CANONICAL
1005
+ import_nestjs_durable_core8.DURABLE_OPTIONS_CANONICAL
899
1006
  ]
900
1007
  },
901
1008
  // Legacy back-compat aliases (deprecated tokens still resolve to the same instances):
902
1009
  {
903
- provide: import_nestjs_durable_core7.STATE_STORE,
904
- useExisting: import_nestjs_durable_core7.STATE_STORE_CANONICAL
1010
+ provide: import_nestjs_durable_core8.STATE_STORE,
1011
+ useExisting: import_nestjs_durable_core8.STATE_STORE_CANONICAL
905
1012
  },
906
1013
  {
907
- provide: import_nestjs_durable_core7.TRANSPORT,
908
- useExisting: import_nestjs_durable_core7.TRANSPORT_CANONICAL
1014
+ provide: import_nestjs_durable_core8.TRANSPORT,
1015
+ useExisting: import_nestjs_durable_core8.TRANSPORT_CANONICAL
909
1016
  },
910
1017
  {
911
- provide: import_nestjs_durable_core7.DURABLE_OPTIONS,
912
- useExisting: import_nestjs_durable_core7.DURABLE_OPTIONS_CANONICAL
1018
+ provide: import_nestjs_durable_core8.DURABLE_OPTIONS,
1019
+ useExisting: import_nestjs_durable_core8.DURABLE_OPTIONS_CANONICAL
913
1020
  },
914
1021
  {
915
- provide: import_nestjs_durable_core7.WorkflowEngine,
1022
+ provide: import_nestjs_durable_core8.WorkflowEngine,
916
1023
  useFactory: /* @__PURE__ */ __name(async (store, transport, opts, moduleRef) => {
917
1024
  const primary = transport ?? opts.transports?.[0]?.transport;
918
1025
  const accessor = resolveAccessor(moduleRef);
919
1026
  const context = opts.context ?? (accessor ? () => carrierFromAccessor(accessor) : void 0);
920
1027
  const runtime = accessor ? await resolveContextRuntime() : void 0;
921
1028
  const rehydrate = runtime && ((carrier, fn) => carrier && Object.keys(carrier).length > 0 ? runtime.deserialize(carrier, fn) : fn());
922
- const engine = new import_nestjs_durable_core7.WorkflowEngine({
1029
+ const engine = new import_nestjs_durable_core8.WorkflowEngine({
923
1030
  store,
924
1031
  transport: transport ?? void 0,
925
1032
  transports: opts.transports,
@@ -946,9 +1053,9 @@ var DurableModule = class _DurableModule {
946
1053
  return engine;
947
1054
  }, "useFactory"),
948
1055
  inject: [
949
- import_nestjs_durable_core7.STATE_STORE_CANONICAL,
950
- import_nestjs_durable_core7.TRANSPORT_CANONICAL,
951
- import_nestjs_durable_core7.DURABLE_OPTIONS_CANONICAL,
1056
+ import_nestjs_durable_core8.STATE_STORE_CANONICAL,
1057
+ import_nestjs_durable_core8.TRANSPORT_CANONICAL,
1058
+ import_nestjs_durable_core8.DURABLE_OPTIONS_CANONICAL,
952
1059
  import_core4.ModuleRef
953
1060
  ]
954
1061
  },
@@ -956,23 +1063,24 @@ var DurableModule = class _DurableModule {
956
1063
  EntityService,
957
1064
  WorkflowRegistrar,
958
1065
  DurableStepRegistrar,
959
- TimerPoller
1066
+ TimerPoller,
1067
+ RetentionPoller
960
1068
  ],
961
1069
  exports: [
962
1070
  WorkflowService,
963
1071
  EntityService,
964
- import_nestjs_durable_core7.WorkflowEngine,
965
- import_nestjs_durable_core7.STATE_STORE,
966
- import_nestjs_durable_core7.STATE_STORE_CANONICAL,
967
- import_nestjs_durable_core7.TRANSPORT,
968
- import_nestjs_durable_core7.TRANSPORT_CANONICAL,
969
- import_nestjs_durable_core7.DURABLE_OPTIONS_CANONICAL
1072
+ import_nestjs_durable_core8.WorkflowEngine,
1073
+ import_nestjs_durable_core8.STATE_STORE,
1074
+ import_nestjs_durable_core8.STATE_STORE_CANONICAL,
1075
+ import_nestjs_durable_core8.TRANSPORT,
1076
+ import_nestjs_durable_core8.TRANSPORT_CANONICAL,
1077
+ import_nestjs_durable_core8.DURABLE_OPTIONS_CANONICAL
970
1078
  ]
971
1079
  };
972
1080
  }
973
1081
  };
974
- DurableModule = _ts_decorate7([
975
- (0, import_common7.Module)({})
1082
+ DurableModule = _ts_decorate8([
1083
+ (0, import_common8.Module)({})
976
1084
  ], DurableModule);
977
1085
  // Annotate the CommonJS export names for ESM import in node:
978
1086
  0 && (module.exports = {