@punks/backend-entity-manager 0.0.393 → 0.0.394

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.
@@ -10,6 +10,7 @@ export declare class TasksInitializer implements IAppInitializer {
10
10
  private readonly logger;
11
11
  constructor(discover: CustomDiscoveryService, scheduler: TaskScheduler, registry: TasksRegistry);
12
12
  initialize(app: INestApplicationContext): Promise<void>;
13
+ private get tasksSettings();
13
14
  private registerCronJobs;
14
15
  private discoverTasks;
15
16
  }
@@ -1,7 +1,9 @@
1
- import { OnModuleDestroy } from "@nestjs/common";
1
+ import { DynamicModule, OnModuleDestroy } from "@nestjs/common";
2
2
  import { TaskScheduler } from "./providers/scheduler";
3
+ import { TasksModuleSettings } from "./settings";
3
4
  export declare class TasksModule implements OnModuleDestroy {
4
5
  private readonly scheduler;
5
6
  constructor(scheduler: TaskScheduler);
7
+ static forRoot(input: TasksModuleSettings): DynamicModule;
6
8
  onModuleDestroy(): void;
7
9
  }
@@ -0,0 +1,5 @@
1
+ import { AppInMemorySettings } from "../../../../../settings";
2
+ export type TasksModuleSettings = {
3
+ enabled?: boolean;
4
+ };
5
+ export declare const tasksSettings: AppInMemorySettings<TasksModuleSettings>;
package/dist/index.d.ts CHANGED
@@ -2903,9 +2903,22 @@ declare class TaskScheduler {
2903
2903
  stopAllTasks(): void;
2904
2904
  }
2905
2905
 
2906
+ declare class AppInMemorySettings<T> {
2907
+ private readonly name;
2908
+ private _instance;
2909
+ constructor(name: string);
2910
+ initialize(value: T): void;
2911
+ get value(): T;
2912
+ }
2913
+
2914
+ type TasksModuleSettings = {
2915
+ enabled?: boolean;
2916
+ };
2917
+
2906
2918
  declare class TasksModule implements OnModuleDestroy {
2907
2919
  private readonly scheduler;
2908
2920
  constructor(scheduler: TaskScheduler);
2921
+ static forRoot(input: TasksModuleSettings): DynamicModule;
2909
2922
  onModuleDestroy(): void;
2910
2923
  }
2911
2924
 
@@ -3356,14 +3369,6 @@ declare class AwsS3BucketError extends Error {
3356
3369
  constructor(message: string);
3357
3370
  }
3358
3371
 
3359
- declare class AppInMemorySettings<T> {
3360
- private readonly name;
3361
- private _instance;
3362
- constructor(name: string);
3363
- initialize(value: T): void;
3364
- get value(): T;
3365
- }
3366
-
3367
3372
  type AwsBucketPaths$1 = {
3368
3373
  filesUpload: string;
3369
3374
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.393",
3
+ "version": "0.0.394",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",