@punks/backend-entity-manager 0.0.273 → 0.0.275

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/cjs/index.js CHANGED
@@ -23628,7 +23628,6 @@ const getIoCContext = () => {
23628
23628
  return _context;
23629
23629
  };
23630
23630
 
23631
- var EntityManagerModule_1;
23632
23631
  const ModuleData$9 = {
23633
23632
  imports: [exports.CustomDiscoveryModule, eventEmitter.EventEmitterModule],
23634
23633
  providers: [
@@ -23640,7 +23639,7 @@ const ModuleData$9 = {
23640
23639
  ],
23641
23640
  exports: [exports.EntityManagerRegistry, ...Services$1],
23642
23641
  };
23643
- exports.EntityManagerModule = EntityManagerModule_1 = class EntityManagerModule {
23642
+ exports.EntityManagerModule = class EntityManagerModule {
23644
23643
  constructor(registry) {
23645
23644
  this.registry = registry;
23646
23645
  }
@@ -23649,21 +23648,8 @@ exports.EntityManagerModule = EntityManagerModule_1 = class EntityManagerModule
23649
23648
  registry: this.registry,
23650
23649
  });
23651
23650
  }
23652
- static forRoot(providers) {
23653
- return {
23654
- module: EntityManagerModule_1,
23655
- ...ModuleData$9,
23656
- providers: [
23657
- ...ModuleData$9.providers,
23658
- {
23659
- provide: getEntityManagerProviderToken("OperationsLockRepository"),
23660
- useClass: providers.operationsLockRepository,
23661
- },
23662
- ],
23663
- };
23664
- }
23665
23651
  };
23666
- exports.EntityManagerModule = EntityManagerModule_1 = __decorate([
23652
+ exports.EntityManagerModule = __decorate([
23667
23653
  common.Module({
23668
23654
  imports: ModuleData$9.imports,
23669
23655
  providers: ModuleData$9.providers,
@@ -34069,6 +34055,7 @@ const JobTasks = [JobsMonitorTask, JobsSchedulerTask];
34069
34055
 
34070
34056
  var JobsModule_1;
34071
34057
  const ModuleData$7 = {
34058
+ import: [cqrs.CqrsModule],
34072
34059
  providers: [
34073
34060
  ...JobsProviders,
34074
34061
  ...JobTasks,
@@ -34088,7 +34075,7 @@ exports.JobsModule = JobsModule_1 = class JobsModule {
34088
34075
  this.jobsScheduler.register();
34089
34076
  await this.jobsProviderFactory.initialize();
34090
34077
  }
34091
- static forRoot(input, providers) {
34078
+ static forRoot(input) {
34092
34079
  return {
34093
34080
  module: JobsModule_1,
34094
34081
  ...ModuleData$7,
@@ -34098,14 +34085,6 @@ exports.JobsModule = JobsModule_1 = class JobsModule {
34098
34085
  provide: getEntityManagerProviderToken("JobsModuleSettings"),
34099
34086
  useValue: input,
34100
34087
  },
34101
- {
34102
- provide: getEntityManagerProviderToken("JobInstancesRepository"),
34103
- useClass: providers.jobInstancesRepository,
34104
- },
34105
- {
34106
- provide: getEntityManagerProviderToken("JobDefinitionsRepository"),
34107
- useClass: providers.jobDefinitionsRepository,
34108
- },
34109
34088
  ],
34110
34089
  };
34111
34090
  }