@nest-boot/schedule 7.3.8 → 8.0.0-beta.1

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.
Files changed (39) hide show
  1. package/dist/index.d.ts +5 -5
  2. package/dist/index.js +5 -21
  3. package/dist/index.js.map +1 -1
  4. package/dist/schedule-module-options.interface.d.ts +0 -10
  5. package/dist/schedule-module-options.interface.js +1 -2
  6. package/dist/schedule-options.interface.d.ts +0 -4
  7. package/dist/schedule-options.interface.js +1 -2
  8. package/dist/schedule.decorator.d.ts +1 -18
  9. package/dist/schedule.decorator.js +6 -29
  10. package/dist/schedule.decorator.js.map +1 -1
  11. package/dist/schedule.module-definition.d.ts +1 -1
  12. package/dist/schedule.module-definition.js +7 -11
  13. package/dist/schedule.module-definition.js.map +1 -1
  14. package/dist/schedule.module.d.ts +1 -18
  15. package/dist/schedule.module.js +20 -40
  16. package/dist/schedule.module.js.map +1 -1
  17. package/dist/schedule.processor.d.ts +2 -3
  18. package/dist/schedule.processor.js +14 -16
  19. package/dist/schedule.processor.js.map +1 -1
  20. package/dist/schedule.registry.d.ts +1 -30
  21. package/dist/schedule.registry.js +19 -45
  22. package/dist/schedule.registry.js.map +1 -1
  23. package/package.json +35 -27
  24. package/dist/index.spec.d.ts +0 -0
  25. package/dist/index.spec.js +0 -45
  26. package/dist/index.spec.js.map +0 -1
  27. package/dist/schedule.decorator.spec.d.ts +0 -1
  28. package/dist/schedule.decorator.spec.js +0 -108
  29. package/dist/schedule.decorator.spec.js.map +0 -1
  30. package/dist/schedule.module.spec.d.ts +0 -1
  31. package/dist/schedule.module.spec.js +0 -91
  32. package/dist/schedule.module.spec.js.map +0 -1
  33. package/dist/schedule.processor.spec.d.ts +0 -1
  34. package/dist/schedule.processor.spec.js +0 -197
  35. package/dist/schedule.processor.spec.js.map +0 -1
  36. package/dist/schedule.registry.spec.d.ts +0 -1
  37. package/dist/schedule.registry.spec.js +0 -233
  38. package/dist/schedule.registry.spec.js.map +0 -1
  39. package/dist/tsconfig.build.tsbuildinfo +0 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./schedule.decorator";
2
- export * from "./schedule.module";
3
- export * from "./schedule.registry";
4
- export * from "./schedule-module-options.interface";
5
- export * from "./schedule-options.interface";
1
+ export * from "./schedule.decorator.js";
2
+ export * from "./schedule.module.js";
3
+ export * from "./schedule.registry.js";
4
+ export * from "./schedule-module-options.interface.js";
5
+ export * from "./schedule-options.interface.js";
package/dist/index.js CHANGED
@@ -1,22 +1,6 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./schedule.decorator"), exports);
18
- __exportStar(require("./schedule.module"), exports);
19
- __exportStar(require("./schedule.registry"), exports);
20
- __exportStar(require("./schedule-module-options.interface"), exports);
21
- __exportStar(require("./schedule-options.interface"), exports);
1
+ export * from "./schedule.decorator.js";
2
+ export * from "./schedule.module.js";
3
+ export * from "./schedule.registry.js";
4
+ export * from "./schedule-module-options.interface.js";
5
+ export * from "./schedule-options.interface.js";
22
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,sEAAoD;AACpD,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC"}
@@ -1,17 +1,7 @@
1
1
  import { type RegisterQueueOptions } from "@nest-boot/bullmq";
2
2
  import { type ConnectionOptions } from "bullmq";
3
- /**
4
- * Configuration options for the schedule module.
5
- *
6
- * @remarks
7
- * Extends BullMQ queue options with schedule-specific settings
8
- * for controlling job processing behavior.
9
- */
10
3
  export interface ScheduleModuleOptions extends RegisterQueueOptions {
11
- /** Whether to automatically start processing scheduled jobs on module init. */
12
4
  autorun?: boolean;
13
- /** Maximum number of concurrent scheduled jobs to process. */
14
5
  concurrency?: number;
15
- /** Optional Redis connection options for the schedule queue. */
16
6
  connection?: ConnectionOptions;
17
7
  }
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=schedule-module-options.interface.js.map
@@ -1,10 +1,6 @@
1
1
  import { JobSchedulerTemplateOptions } from "bullmq";
2
- /** Options for configuring a scheduled job. */
3
2
  export interface ScheduleOptions extends JobSchedulerTemplateOptions {
4
- /** Type of schedule: `"cron"` for cron expressions or `"interval"` for millisecond intervals. */
5
3
  type: "cron" | "interval";
6
- /** Cron expression (for `"cron"` type) or millisecond interval (for `"interval"` type). */
7
4
  value: number | string;
8
- /** Timezone for cron expressions (defaults to `"UTC"`). */
9
5
  timezone?: string;
10
6
  }
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=schedule-options.interface.js.map
@@ -1,21 +1,4 @@
1
- import { type ScheduleOptions } from "./schedule-options.interface";
2
- /**
3
- * Decorator that registers a method as a scheduled job.
4
- * @param options - Schedule configuration (type, value, timezone, etc.)
5
- * @returns Method decorator
6
- */
1
+ import { type ScheduleOptions } from "./schedule-options.interface.js";
7
2
  export declare const Schedule: (options: ScheduleOptions) => <T>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => void;
8
- /**
9
- * Decorator that registers a method as a cron-scheduled job.
10
- * @param value - Cron expression (e.g. `"0 * * * *"`)
11
- * @param options - Additional schedule options (timezone, etc.)
12
- * @returns Method decorator
13
- */
14
3
  export declare const Cron: (value: string, options?: Omit<ScheduleOptions, "type" | "value">) => <T>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => void;
15
- /**
16
- * Decorator that registers a method as an interval-scheduled job.
17
- * @param value - Interval in milliseconds
18
- * @param options - Additional schedule options
19
- * @returns Method decorator
20
- */
21
4
  export declare const Interval: (value: number | string, options?: Omit<ScheduleOptions, "type" | "value">) => <T>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => void;
@@ -1,39 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Interval = exports.Cron = exports.Schedule = void 0;
4
- const common_1 = require("@nestjs/common");
5
- const schedule_module_definition_1 = require("./schedule.module-definition");
6
- /**
7
- * Decorator that registers a method as a scheduled job.
8
- * @param options - Schedule configuration (type, value, timezone, etc.)
9
- * @returns Method decorator
10
- */
11
- const Schedule = (options) => (target, propertyKey, descriptor) => {
12
- (0, common_1.SetMetadata)(schedule_module_definition_1.SCHEDULE_METADATA_KEY, options)(target, propertyKey, descriptor);
1
+ import { SetMetadata } from "@nestjs/common";
2
+ import { SCHEDULE_METADATA_KEY } from "./schedule.module-definition.js";
3
+ export const Schedule = (options) => (target, propertyKey, descriptor) => {
4
+ SetMetadata(SCHEDULE_METADATA_KEY, options)(target, propertyKey, descriptor);
13
5
  };
14
- exports.Schedule = Schedule;
15
- /**
16
- * Decorator that registers a method as a cron-scheduled job.
17
- * @param value - Cron expression (e.g. `"0 * * * *"`)
18
- * @param options - Additional schedule options (timezone, etc.)
19
- * @returns Method decorator
20
- */
21
- const Cron = (value, options) => (0, exports.Schedule)({
6
+ export const Cron = (value, options) => Schedule({
22
7
  type: "cron",
23
8
  value,
24
9
  ...(options ?? {}),
25
10
  });
26
- exports.Cron = Cron;
27
- /**
28
- * Decorator that registers a method as an interval-scheduled job.
29
- * @param value - Interval in milliseconds
30
- * @param options - Additional schedule options
31
- * @returns Method decorator
32
- */
33
- const Interval = (value, options) => (0, exports.Schedule)({
11
+ export const Interval = (value, options) => Schedule({
34
12
  type: "interval",
35
13
  value,
36
14
  ...(options ?? {}),
37
15
  });
38
- exports.Interval = Interval;
39
16
  //# sourceMappingURL=schedule.decorator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.decorator.js","sourceRoot":"","sources":["../src/schedule.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAE7C,6EAAqE;AAGrE;;;;GAIG;AACI,MAAM,QAAQ,GACnB,CAAC,OAAwB,EAAE,EAAE,CAC7B,CACE,MAAc,EACd,WAAmB,EACnB,UAAsC,EACtC,EAAE;IACF,IAAA,oBAAW,EAA0B,kDAAqB,EAAE,OAAO,CAAC,CAClE,MAAM,EACN,WAAW,EACX,UAAU,CACX,CAAC;AACJ,CAAC,CAAC;AAZS,QAAA,QAAQ,YAYjB;AAEJ;;;;;GAKG;AACI,MAAM,IAAI,GAAG,CAClB,KAAa,EACb,OAAiD,EACjD,EAAE,CACF,IAAA,gBAAQ,EAAC;IACP,IAAI,EAAE,MAAM;IACZ,KAAK;IACL,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;CACnB,CAAC,CAAC;AARQ,QAAA,IAAI,QAQZ;AAEL;;;;;GAKG;AACI,MAAM,QAAQ,GAAG,CACtB,KAAsB,EACtB,OAAiD,EACjD,EAAE,CACF,IAAA,gBAAQ,EAAC;IACP,IAAI,EAAE,UAAU;IAChB,KAAK;IACL,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;CACnB,CAAC,CAAC;AARQ,QAAA,QAAQ,YAQhB"}
1
+ {"version":3,"file":"schedule.decorator.js","sourceRoot":"","sources":["../src/schedule.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAQxE,MAAM,CAAC,MAAM,QAAQ,GACnB,CAAC,OAAwB,EAAE,EAAE,CAC7B,CACE,MAAc,EACd,WAAmB,EACnB,UAAsC,EACtC,EAAE;IACF,WAAW,CAA0B,qBAAqB,EAAE,OAAO,CAAC,CAClE,MAAM,EACN,WAAW,EACX,UAAU,CACX,CAAC;AACJ,CAAC,CAAC;AAQJ,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,KAAa,EACb,OAAiD,EACjD,EAAE,CACF,QAAQ,CAAC;IACP,IAAI,EAAE,MAAM;IACZ,KAAK;IACL,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;CACnB,CAAC,CAAC;AAQL,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,KAAsB,EACtB,OAAiD,EACjD,EAAE,CACF,QAAQ,CAAC;IACP,IAAI,EAAE,UAAU;IAChB,KAAK;IACL,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;CACnB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ScheduleModuleOptions } from "./schedule-module-options.interface";
1
+ import { type ScheduleModuleOptions } from "./schedule-module-options.interface.js";
2
2
  export declare const SCHEDULE_QUEUE_NAME = "schedule";
3
3
  export declare const SCHEDULE_METADATA_KEY: `${string}-${string}-${string}-${string}-${string}`;
4
4
  export declare const MODULE_OPTIONS_TOKEN: unique symbol;
@@ -1,13 +1,9 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ASYNC_OPTIONS_TYPE = exports.OPTIONS_TYPE = exports.BASE_MODULE_OPTIONS_TOKEN = exports.ConfigurableModuleClass = exports.MODULE_OPTIONS_TOKEN = exports.SCHEDULE_METADATA_KEY = exports.SCHEDULE_QUEUE_NAME = void 0;
5
- const common_1 = require("@nestjs/common");
6
- const crypto_1 = require("crypto");
7
- exports.SCHEDULE_QUEUE_NAME = "schedule";
8
- exports.SCHEDULE_METADATA_KEY = (0, crypto_1.randomUUID)();
9
- exports.MODULE_OPTIONS_TOKEN = Symbol("ScheduleModuleOptions");
10
- _a = new common_1.ConfigurableModuleBuilder()
1
+ import { ConfigurableModuleBuilder } from "@nestjs/common";
2
+ import { randomUUID } from "crypto";
3
+ export const SCHEDULE_QUEUE_NAME = "schedule";
4
+ export const SCHEDULE_METADATA_KEY = randomUUID();
5
+ export const MODULE_OPTIONS_TOKEN = Symbol("ScheduleModuleOptions");
6
+ export const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN: BASE_MODULE_OPTIONS_TOKEN, OPTIONS_TYPE, ASYNC_OPTIONS_TYPE, } = new ConfigurableModuleBuilder()
11
7
  .setClassMethodName("forRoot")
12
- .build(), exports.ConfigurableModuleClass = _a.ConfigurableModuleClass, exports.BASE_MODULE_OPTIONS_TOKEN = _a.MODULE_OPTIONS_TOKEN, exports.OPTIONS_TYPE = _a.OPTIONS_TYPE, exports.ASYNC_OPTIONS_TYPE = _a.ASYNC_OPTIONS_TYPE;
8
+ .build();
13
9
  //# sourceMappingURL=schedule.module-definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.module-definition.js","sourceRoot":"","sources":["../src/schedule.module-definition.ts"],"names":[],"mappings":";;;;AAAA,2CAA2D;AAC3D,mCAAoC;AAIvB,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAEjC,QAAA,qBAAqB,GAAG,IAAA,mBAAU,GAAE,CAAC;AAErC,QAAA,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAEvD,KAKT,IAAI,kCAAyB,EAAyB;KACvD,kBAAkB,CAAC,SAAS,CAAC;KAC7B,KAAK,EAAE,EANR,+BAAuB,+BACD,iCAAyB,4BAC/C,oBAAY,oBACZ,0BAAkB,yBAGT"}
1
+ {"version":3,"file":"schedule.module-definition.js","sourceRoot":"","sources":["../src/schedule.module-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAIpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,EAAE,CAAC;AAElD,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;AAEpE,MAAM,CAAC,MAAM,EACX,uBAAuB,EACvB,oBAAoB,EAAE,yBAAyB,EAC/C,YAAY,EACZ,kBAAkB,GACnB,GAAG,IAAI,yBAAyB,EAAyB;KACvD,kBAAkB,CAAC,SAAS,CAAC;KAC7B,KAAK,EAAE,CAAC"}
@@ -1,23 +1,6 @@
1
1
  import { type DynamicModule } from "@nestjs/common";
2
- import { ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, OPTIONS_TYPE } from "./schedule.module-definition";
3
- /**
4
- * Job scheduling module powered by BullMQ.
5
- *
6
- * @remarks
7
- * Provides cron-like job scheduling using BullMQ queues.
8
- * Supports decorator-based schedule registration and configurable concurrency.
9
- */
2
+ import { ASYNC_OPTIONS_TYPE, ConfigurableModuleClass, OPTIONS_TYPE } from "./schedule.module-definition.js";
10
3
  export declare class ScheduleModule extends ConfigurableModuleClass {
11
- /**
12
- * Registers the ScheduleModule with the given options.
13
- * @param options - Configuration options including connection and concurrency
14
- * @returns Dynamic module configuration
15
- */
16
4
  static forRoot(options: typeof OPTIONS_TYPE): DynamicModule;
17
- /**
18
- * Registers the ScheduleModule asynchronously with factory functions.
19
- * @param options - Async configuration options
20
- * @returns Dynamic module configuration
21
- */
22
5
  static forRootAsync(options: typeof ASYNC_OPTIONS_TYPE): DynamicModule;
23
6
  }
@@ -1,66 +1,46 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
4
  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;
6
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
6
  };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ScheduleModule = void 0;
10
- const bullmq_1 = require("@nest-boot/bullmq");
11
- const common_1 = require("@nestjs/common");
12
- const core_1 = require("@nestjs/core");
13
- const schedule_module_definition_1 = require("./schedule.module-definition");
14
- const schedule_processor_1 = require("./schedule.processor");
15
- const schedule_registry_1 = require("./schedule.registry");
16
- /**
17
- * Job scheduling module powered by BullMQ.
18
- *
19
- * @remarks
20
- * Provides cron-like job scheduling using BullMQ queues.
21
- * Supports decorator-based schedule registration and configurable concurrency.
22
- */
23
- let ScheduleModule = class ScheduleModule extends schedule_module_definition_1.ConfigurableModuleClass {
24
- /**
25
- * Registers the ScheduleModule with the given options.
26
- * @param options - Configuration options including connection and concurrency
27
- * @returns Dynamic module configuration
28
- */
7
+ import { BullModule } from "@nest-boot/bullmq";
8
+ import { Global, Logger, Module } from "@nestjs/common";
9
+ import { DiscoveryModule } from "@nestjs/core";
10
+ import { BASE_MODULE_OPTIONS_TOKEN, ConfigurableModuleClass, MODULE_OPTIONS_TOKEN, } from "./schedule.module-definition.js";
11
+ import { ScheduleProcessor } from "./schedule.processor.js";
12
+ import { ScheduleRegistry } from "./schedule.registry.js";
13
+ let ScheduleModule = class ScheduleModule extends ConfigurableModuleClass {
29
14
  static forRoot(options) {
30
15
  return super.forRoot(options);
31
16
  }
32
- /**
33
- * Registers the ScheduleModule asynchronously with factory functions.
34
- * @param options - Async configuration options
35
- * @returns Dynamic module configuration
36
- */
37
17
  static forRootAsync(options) {
38
18
  return super.forRootAsync(options);
39
19
  }
40
20
  };
41
- exports.ScheduleModule = ScheduleModule;
42
- exports.ScheduleModule = ScheduleModule = __decorate([
43
- (0, common_1.Global)(),
44
- (0, common_1.Module)({
21
+ ScheduleModule = __decorate([
22
+ Global(),
23
+ Module({
45
24
  imports: [
46
- core_1.DiscoveryModule,
47
- bullmq_1.BullModule.registerQueueAsync({
25
+ DiscoveryModule,
26
+ BullModule.registerQueueAsync({
48
27
  name: "schedule",
49
- inject: [schedule_module_definition_1.MODULE_OPTIONS_TOKEN],
28
+ inject: [MODULE_OPTIONS_TOKEN],
50
29
  useFactory: (options) => options,
51
30
  }),
52
31
  ],
53
32
  providers: [
54
- common_1.Logger,
55
- schedule_registry_1.ScheduleRegistry,
56
- schedule_processor_1.ScheduleProcessor,
33
+ Logger,
34
+ ScheduleRegistry,
35
+ ScheduleProcessor,
57
36
  {
58
- provide: schedule_module_definition_1.MODULE_OPTIONS_TOKEN,
59
- inject: [{ token: schedule_module_definition_1.BASE_MODULE_OPTIONS_TOKEN, optional: true }],
37
+ provide: MODULE_OPTIONS_TOKEN,
38
+ inject: [{ token: BASE_MODULE_OPTIONS_TOKEN, optional: true }],
60
39
  useFactory: (options) => options ?? {},
61
40
  },
62
41
  ],
63
- exports: [schedule_module_definition_1.MODULE_OPTIONS_TOKEN],
42
+ exports: [MODULE_OPTIONS_TOKEN],
64
43
  })
65
44
  ], ScheduleModule);
45
+ export { ScheduleModule };
66
46
  //# sourceMappingURL=schedule.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.module.js","sourceRoot":"","sources":["../src/schedule.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA+C;AAC/C,2CAA4E;AAC5E,uCAA+C;AAE/C,6EAMsC;AACtC,6DAAyD;AACzD,2DAAuD;AAGv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,GAErB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAgCnD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uBAAuB;IAMzD,MAAM,CAAU,OAAO,CAAC,OAA4B;QAClD,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAOD,MAAM,CAAU,YAAY,CAC1B,OAAkC;QAElC,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;CACF,CAAA;AApBY,cAAc;IAtB1B,MAAM,EAAE;IACR,MAAM,CAAC;QACN,OAAO,EAAE;YACP,eAAe;YACf,UAAU,CAAC,kBAAkB,CAAC;gBAC5B,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,CAAC,oBAAoB,CAAC;gBAC9B,UAAU,EAAE,CAAC,OAA8B,EAAE,EAAE,CAAC,OAAO;aACxD,CAAC;SACH;QACD,SAAS,EAAE;YACT,MAAM;YACN,gBAAgB;YAChB,iBAAiB;YACjB;gBACE,OAAO,EAAE,oBAAoB;gBAC7B,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,yBAAyB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gBAC9D,UAAU,EAAE,CAAC,OAA+B,EAAE,EAAE,CAAC,OAAO,IAAI,EAAE;aAC/D;SACF;QACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAChC,CAAC;GACW,cAAc,CAoB1B"}
@@ -1,12 +1,11 @@
1
1
  import { WorkerHost } from "@nest-boot/bullmq";
2
2
  import { OnApplicationBootstrap } from "@nestjs/common";
3
3
  import { Job } from "bullmq";
4
- import { ScheduleRegistry } from "./schedule.registry";
5
- import { ScheduleModuleOptions } from "./schedule-module-options.interface";
4
+ import { ScheduleRegistry } from "./schedule.registry.js";
5
+ import { type ScheduleModuleOptions } from "./schedule-module-options.interface.js";
6
6
  export declare class ScheduleProcessor extends WorkerHost implements OnApplicationBootstrap {
7
7
  private readonly scheduleRegistry;
8
8
  private readonly options?;
9
- /** Logger for worker lifecycle failures. @internal */
10
9
  private readonly logger;
11
10
  constructor(scheduleRegistry: ScheduleRegistry, options?: ScheduleModuleOptions | undefined);
12
11
  process(job: Job): Promise<void>;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -12,19 +11,18 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
13
  var ScheduleProcessor_1;
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ScheduleProcessor = void 0;
17
- const bullmq_1 = require("@nest-boot/bullmq");
18
- const common_1 = require("@nestjs/common");
19
- const schedule_module_definition_1 = require("./schedule.module-definition");
20
- const schedule_registry_1 = require("./schedule.registry");
21
- let ScheduleProcessor = ScheduleProcessor_1 = class ScheduleProcessor extends bullmq_1.WorkerHost {
14
+ import { Processor, WorkerHost } from "@nest-boot/bullmq";
15
+ import { Inject, Logger, Optional, } from "@nestjs/common";
16
+ import { MODULE_OPTIONS_TOKEN } from "./schedule.module-definition.js";
17
+ import { ScheduleRegistry } from "./schedule.registry.js";
18
+ let ScheduleProcessor = ScheduleProcessor_1 = class ScheduleProcessor extends WorkerHost {
19
+ scheduleRegistry;
20
+ options;
21
+ logger = new Logger(ScheduleProcessor_1.name);
22
22
  constructor(scheduleRegistry, options) {
23
23
  super();
24
24
  this.scheduleRegistry = scheduleRegistry;
25
25
  this.options = options;
26
- /** Logger for worker lifecycle failures. @internal */
27
- this.logger = new common_1.Logger(ScheduleProcessor_1.name);
28
26
  }
29
27
  async process(job) {
30
28
  await this.scheduleRegistry.get(job.name)?.handler();
@@ -41,11 +39,11 @@ let ScheduleProcessor = ScheduleProcessor_1 = class ScheduleProcessor extends bu
41
39
  }
42
40
  }
43
41
  };
44
- exports.ScheduleProcessor = ScheduleProcessor;
45
- exports.ScheduleProcessor = ScheduleProcessor = ScheduleProcessor_1 = __decorate([
46
- (0, bullmq_1.Processor)("schedule", { autorun: false }),
47
- __param(1, (0, common_1.Optional)()),
48
- __param(1, (0, common_1.Inject)(schedule_module_definition_1.MODULE_OPTIONS_TOKEN)),
49
- __metadata("design:paramtypes", [schedule_registry_1.ScheduleRegistry, Object])
42
+ ScheduleProcessor = ScheduleProcessor_1 = __decorate([
43
+ Processor("schedule", { autorun: false }),
44
+ __param(1, Optional()),
45
+ __param(1, Inject(MODULE_OPTIONS_TOKEN)),
46
+ __metadata("design:paramtypes", [ScheduleRegistry, Object])
50
47
  ], ScheduleProcessor);
48
+ export { ScheduleProcessor };
51
49
  //# sourceMappingURL=schedule.processor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.processor.js","sourceRoot":"","sources":["../src/schedule.processor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA0D;AAC1D,2CAKwB;AAGxB,6EAAoE;AACpE,2DAAuD;AAIhD,IAAM,iBAAiB,yBAAvB,MAAM,iBACX,SAAQ,mBAAU;IAMlB,YACmB,gBAAkC,EAGnD,OAAgD;QAEhD,KAAK,EAAE,CAAC;QALS,qBAAgB,GAAhB,gBAAgB,CAAkB;QAGlC,YAAO,GAAP,OAAO,CAAwB;QAPlD,sDAAsD;QACrC,WAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAS7D,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,GAAQ;QACpB,MAAM,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACv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CAAC,CAAA;qCAFM,gBAAgB;GAR1C,iBAAiB,CAoC7B"}
@@ -1,50 +1,21 @@
1
1
  import { OnApplicationBootstrap } from "@nestjs/common";
2
2
  import { DiscoveryService, MetadataScanner, Reflector } from "@nestjs/core";
3
3
  import { Queue } from "bullmq";
4
- import { type ScheduleOptions } from "./schedule-options.interface";
5
- /**
6
- * Registry that discovers and manages scheduled jobs at application startup.
7
- *
8
- * @remarks
9
- * Scans all controllers and providers for methods decorated with
10
- * {@link Schedule}, {@link Cron}, or {@link Interval}, then registers
11
- * them as BullMQ job schedulers. Removes stale schedulers that are no
12
- * longer defined in the codebase.
13
- */
4
+ import { type ScheduleOptions } from "./schedule-options.interface.js";
14
5
  export declare class ScheduleRegistry implements OnApplicationBootstrap {
15
6
  private readonly queue;
16
7
  private readonly reflector;
17
8
  private readonly discoveryService;
18
9
  private readonly metadataScanner;
19
- /** Logger instance for the schedule registry. @internal */
20
10
  private readonly logger;
21
- /** Map of schedule names to their handlers and options. @internal */
22
11
  private readonly schedules;
23
- /**
24
- * Creates a new ScheduleRegistry instance.
25
- * @param queue - BullMQ queue for managing scheduled jobs
26
- * @param reflector - NestJS reflector for reading decorator metadata
27
- * @param discoveryService - NestJS discovery service for scanning providers
28
- * @param metadataScanner - Scanner for extracting method metadata
29
- */
30
12
  constructor(queue: Queue, reflector: Reflector, discoveryService: DiscoveryService, metadataScanner: MetadataScanner);
31
- /**
32
- * Retrieves a registered schedule entry by name.
33
- * @param name - The schedule identifier (className.methodName)
34
- * @returns The schedule handler and options, or undefined
35
- */
36
13
  get(name: string): {
37
- /** Handler function bound to the original instance. */
38
14
  handler: () => Promise<void>;
39
- /** Schedule options from the decorator. */
40
15
  options: ScheduleOptions;
41
16
  } | undefined;
42
- /** Scans controllers and providers for schedule-decorated methods. @internal */
43
17
  private discoverySchedules;
44
- /** Removes job schedulers that are no longer defined. @internal */
45
18
  private cleanUnregisteredSchedules;
46
- /** Registers all discovered schedules as BullMQ job schedulers. @internal */
47
19
  private registerSchedules;
48
- /** Discovers all scheduled methods and registers them as BullMQ job schedulers. */
49
20
  onApplicationBootstrap(): Promise<void>;
50
21
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -12,49 +11,27 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
13
  var ScheduleRegistry_1;
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ScheduleRegistry = void 0;
17
- const bullmq_1 = require("@nest-boot/bullmq");
18
- const common_1 = require("@nestjs/common");
19
- const core_1 = require("@nestjs/core");
20
- const bullmq_2 = require("bullmq");
21
- const schedule_module_definition_1 = require("./schedule.module-definition");
22
- /**
23
- * Registry that discovers and manages scheduled jobs at application startup.
24
- *
25
- * @remarks
26
- * Scans all controllers and providers for methods decorated with
27
- * {@link Schedule}, {@link Cron}, or {@link Interval}, then registers
28
- * them as BullMQ job schedulers. Removes stale schedulers that are no
29
- * longer defined in the codebase.
30
- */
14
+ import { InjectQueue } from "@nest-boot/bullmq";
15
+ import { Logger } from "@nestjs/common";
16
+ import { DiscoveryService, MetadataScanner, Reflector } from "@nestjs/core";
17
+ import { Queue } from "bullmq";
18
+ import { SCHEDULE_METADATA_KEY, SCHEDULE_QUEUE_NAME, } from "./schedule.module-definition.js";
31
19
  let ScheduleRegistry = ScheduleRegistry_1 = class ScheduleRegistry {
32
- /**
33
- * Creates a new ScheduleRegistry instance.
34
- * @param queue - BullMQ queue for managing scheduled jobs
35
- * @param reflector - NestJS reflector for reading decorator metadata
36
- * @param discoveryService - NestJS discovery service for scanning providers
37
- * @param metadataScanner - Scanner for extracting method metadata
38
- */
20
+ queue;
21
+ reflector;
22
+ discoveryService;
23
+ metadataScanner;
24
+ logger = new Logger(ScheduleRegistry_1.name);
25
+ schedules = new Map();
39
26
  constructor(queue, reflector, discoveryService, metadataScanner) {
40
27
  this.queue = queue;
41
28
  this.reflector = reflector;
42
29
  this.discoveryService = discoveryService;
43
30
  this.metadataScanner = metadataScanner;
44
- /** Logger instance for the schedule registry. @internal */
45
- this.logger = new common_1.Logger(ScheduleRegistry_1.name);
46
- /** Map of schedule names to their handlers and options. @internal */
47
- this.schedules = new Map();
48
31
  }
49
- /**
50
- * Retrieves a registered schedule entry by name.
51
- * @param name - The schedule identifier (className.methodName)
52
- * @returns The schedule handler and options, or undefined
53
- */
54
32
  get(name) {
55
33
  return this.schedules.get(name);
56
34
  }
57
- /** Scans controllers and providers for schedule-decorated methods. @internal */
58
35
  discoverySchedules() {
59
36
  [
60
37
  ...this.discoveryService.getControllers(),
@@ -67,7 +44,7 @@ let ScheduleRegistry = ScheduleRegistry_1 = class ScheduleRegistry {
67
44
  .forEach((key) => {
68
45
  const instanceClassName = instance.constructor.name;
69
46
  if (typeof instanceClassName === "string") {
70
- const options = this.reflector.get(schedule_module_definition_1.SCHEDULE_METADATA_KEY, instance[key]);
47
+ const options = this.reflector.get(SCHEDULE_METADATA_KEY, instance[key]);
71
48
  if (typeof options !== "undefined") {
72
49
  this.schedules.set(`${instanceClassName}.${key}`, {
73
50
  handler: instance[key].bind(instance),
@@ -79,7 +56,6 @@ let ScheduleRegistry = ScheduleRegistry_1 = class ScheduleRegistry {
79
56
  }
80
57
  });
81
58
  }
82
- /** Removes job schedulers that are no longer defined. @internal */
83
59
  async cleanUnregisteredSchedules() {
84
60
  const jobSchedulers = await this.queue.getJobSchedulers();
85
61
  for (const jobScheduler of jobSchedulers) {
@@ -89,7 +65,6 @@ let ScheduleRegistry = ScheduleRegistry_1 = class ScheduleRegistry {
89
65
  }
90
66
  }
91
67
  }
92
- /** Registers all discovered schedules as BullMQ job schedulers. @internal */
93
68
  async registerSchedules() {
94
69
  for (const [name, { options: { type, value, timezone, ...jobOptions }, },] of this.schedules.entries()) {
95
70
  await this.queue.upsertJobScheduler(name, {
@@ -108,19 +83,18 @@ let ScheduleRegistry = ScheduleRegistry_1 = class ScheduleRegistry {
108
83
  this.logger.log(`Registered {${name}, ${type}, ${String(value)}}`);
109
84
  }
110
85
  }
111
- /** Discovers all scheduled methods and registers them as BullMQ job schedulers. */
112
86
  async onApplicationBootstrap() {
113
87
  this.discoverySchedules();
114
88
  await this.cleanUnregisteredSchedules();
115
89
  await this.registerSchedules();
116
90
  }
117
91
  };
118
- exports.ScheduleRegistry = ScheduleRegistry;
119
- exports.ScheduleRegistry = ScheduleRegistry = ScheduleRegistry_1 = __decorate([
120
- __param(0, (0, bullmq_1.InjectQueue)(schedule_module_definition_1.SCHEDULE_QUEUE_NAME)),
121
- __metadata("design:paramtypes", [bullmq_2.Queue,
122
- core_1.Reflector,
123
- core_1.DiscoveryService,
124
- core_1.MetadataScanner])
92
+ ScheduleRegistry = ScheduleRegistry_1 = __decorate([
93
+ __param(0, InjectQueue(SCHEDULE_QUEUE_NAME)),
94
+ __metadata("design:paramtypes", [Queue,
95
+ Reflector,
96
+ DiscoveryService,
97
+ MetadataScanner])
125
98
  ], ScheduleRegistry);
99
+ export { ScheduleRegistry };
126
100
  //# sourceMappingURL=schedule.registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schedule.registry.js","sourceRoot":"","sources":["../src/schedule.registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAAgD;AAChD,2CAAgE;AAChE,uCAA4E;AAC5E,mCAA+B;AAE/B,6EAGsC;AAGtC;;;;;;;;GAQG;AACH,IAAa,gBAAgB,wBAA7B,MAAa,gBAAgB;IAe3B;;;;;;OAMG;IACH,YAEE,KAA6B,EACZ,SAAoB,EACpB,gBAAkC,EAClC,eAAgC;QAHhC,UAAK,GAAL,KAAK,CAAO;QACZ,cAAS,GAAT,SAAS,CAAW;QACpB,qBAAgB,G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