@twin.org/background-task-scheduler 0.0.2-next.2 → 0.0.2-next.3

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.
@@ -4,17 +4,13 @@ var core = require('@twin.org/core');
4
4
  var loggingModels = require('@twin.org/logging-models');
5
5
 
6
6
  /**
7
- * Class for performing task operations in entity storage.
7
+ * Class for scheduling tasks.
8
8
  */
9
- class TaskSchedulerComponent {
10
- /**
11
- * The namespace supported by the task scheduler.
12
- */
13
- static NAMESPACE = "task-scheduler";
9
+ class TaskSchedulerService {
14
10
  /**
15
11
  * Runtime name for the class.
16
12
  */
17
- CLASS_NAME = "TaskSchedulerComponent";
13
+ CLASS_NAME = "TaskSchedulerService";
18
14
  /**
19
15
  * The logger for the task connector.
20
16
  * @internal
@@ -209,4 +205,4 @@ class TaskSchedulerComponent {
209
205
  }
210
206
  }
211
207
 
212
- exports.TaskSchedulerComponent = TaskSchedulerComponent;
208
+ exports.TaskSchedulerService = TaskSchedulerService;
@@ -2,17 +2,13 @@ import { Is, BaseError } from '@twin.org/core';
2
2
  import { LoggingConnectorFactory } from '@twin.org/logging-models';
3
3
 
4
4
  /**
5
- * Class for performing task operations in entity storage.
5
+ * Class for scheduling tasks.
6
6
  */
7
- class TaskSchedulerComponent {
8
- /**
9
- * The namespace supported by the task scheduler.
10
- */
11
- static NAMESPACE = "task-scheduler";
7
+ class TaskSchedulerService {
12
8
  /**
13
9
  * Runtime name for the class.
14
10
  */
15
- CLASS_NAME = "TaskSchedulerComponent";
11
+ CLASS_NAME = "TaskSchedulerService";
16
12
  /**
17
13
  * The logger for the task connector.
18
14
  * @internal
@@ -207,4 +203,4 @@ class TaskSchedulerComponent {
207
203
  }
208
204
  }
209
205
 
210
- export { TaskSchedulerComponent };
206
+ export { TaskSchedulerService };
@@ -1,3 +1,3 @@
1
1
  export * from "./models/ITaskSchedulerConfig";
2
2
  export * from "./models/ITaskSchedulerConstructorOptions";
3
- export * from "./taskScheduler";
3
+ export * from "./taskSchedulerService";
@@ -1,13 +1,9 @@
1
1
  import type { IScheduledTaskInfo, IScheduledTaskTime, ITaskSchedulerComponent } from "@twin.org/background-task-models";
2
2
  import type { ITaskSchedulerConstructorOptions } from "./models/ITaskSchedulerConstructorOptions";
3
3
  /**
4
- * Class for performing task operations in entity storage.
4
+ * Class for scheduling tasks.
5
5
  */
6
- export declare class TaskSchedulerComponent implements ITaskSchedulerComponent {
7
- /**
8
- * The namespace supported by the task scheduler.
9
- */
10
- static readonly NAMESPACE: string;
6
+ export declare class TaskSchedulerService implements ITaskSchedulerComponent {
11
7
  /**
12
8
  * Runtime name for the class.
13
9
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.2-next.3](https://github.com/twinfoundation/background-task/compare/background-task-scheduler-v0.0.2-next.2...background-task-scheduler-v0.0.2-next.3) (2025-07-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * rename task scheduler component to service ([f097a98](https://github.com/twinfoundation/background-task/commit/f097a988c9ee0795aa55d74deda616365ec4ffb1))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/background-task-models bumped from 0.0.2-next.2 to 0.0.2-next.3
16
+
3
17
  ## [0.0.2-next.2](https://github.com/twinfoundation/background-task/compare/background-task-scheduler-v0.0.2-next.1...background-task-scheduler-v0.0.2-next.2) (2025-07-09)
4
18
 
5
19
 
@@ -1,6 +1,6 @@
1
- # Class: TaskSchedulerComponent
1
+ # Class: TaskSchedulerService
2
2
 
3
- Class for performing task operations in entity storage.
3
+ Class for scheduling tasks.
4
4
 
5
5
  ## Implements
6
6
 
@@ -10,7 +10,7 @@ Class for performing task operations in entity storage.
10
10
 
11
11
  ### Constructor
12
12
 
13
- > **new TaskSchedulerComponent**(`options?`): `TaskSchedulerComponent`
13
+ > **new TaskSchedulerService**(`options?`): `TaskSchedulerService`
14
14
 
15
15
  Create a new instance of TaskSchedulerComponent.
16
16
 
@@ -24,18 +24,10 @@ The options for the scheduler.
24
24
 
25
25
  #### Returns
26
26
 
27
- `TaskSchedulerComponent`
27
+ `TaskSchedulerService`
28
28
 
29
29
  ## Properties
30
30
 
31
- ### NAMESPACE
32
-
33
- > `readonly` `static` **NAMESPACE**: `string` = `"task-scheduler"`
34
-
35
- The namespace supported by the task scheduler.
36
-
37
- ***
38
-
39
31
  ### CLASS\_NAME
40
32
 
41
33
  > `readonly` **CLASS\_NAME**: `string`
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Classes
4
4
 
5
- - [TaskSchedulerComponent](classes/TaskSchedulerComponent.md)
5
+ - [TaskSchedulerService](classes/TaskSchedulerService.md)
6
6
 
7
7
  ## Interfaces
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/background-task-scheduler",
3
- "version": "0.0.2-next.2",
3
+ "version": "0.0.2-next.3",
4
4
  "description": "Background task scheduler",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/background-task-models": "0.0.2-next.2",
17
+ "@twin.org/background-task-models": "0.0.2-next.3",
18
18
  "@twin.org/core": "next",
19
19
  "@twin.org/logging-models": "next",
20
20
  "@twin.org/nameof": "next"